/* Repairphone SEO Booster — modern front office design */

.rpsb-seo-blocks {
  --rpsb-font: inherit;
  --rpsb-ink: #0b1220;
  --rpsb-muted: #5b6475;
  --rpsb-line: rgb(15 23 42 / 8%);
  --rpsb-surface: rgb(255 255 255 / 92%);
  --rpsb-surface-solid: #ffffff;
  --rpsb-surface-soft: #f4f7fb;
  --rpsb-accent: #2563eb;
  --rpsb-accent-2: #4f46e5;
  --rpsb-accent-soft: rgb(37 99 235 / 10%);
  --rpsb-accent-dark: #1d4ed8;
  --rpsb-success: #059669;
  --rpsb-success-soft: rgb(5 150 105 / 10%);
  --rpsb-warm: #d97706;
  --rpsb-teal: #0d9488;
  --rpsb-radius-sm: 12px;
  --rpsb-radius: 18px;
  --rpsb-radius-lg: 24px;
  --rpsb-radius-xl: 28px;
  --rpsb-shadow-sm: 0 1px 2px rgb(15 23 42 / 4%);
  --rpsb-shadow: 0 10px 30px rgb(15 23 42 / 6%), 0 2px 8px rgb(15 23 42 / 4%);
  --rpsb-shadow-hover: 0 18px 40px rgb(37 99 235 / 12%), 0 6px 16px rgb(15 23 42 / 6%);
  --rpsb-blur: saturate(180%) blur(18px);
  --rpsb-gap: 1rem;
  --rpsb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rpsb-content-max: var(--rp-home-block-max, 1560px);
  --rpsb-gutter: clamp(14px, 2vw, 28px);

  font-family: var(--rpsb-font);
  color: var(--rpsb-ink);
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.rpsb-seo-blocks__bg {
  position: relative;
  width: 100%;
  padding: clamp(2.25rem, 5vw, 4rem) 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgb(37 99 235 / 14%) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 95% 0%, rgb(79 70 229 / 10%) 0%, transparent 52%),
    linear-gradient(180deg, #f7f9fc 0%, #fbfcfe 55%, #f7f9fc 100%);
  border-top: 1px solid rgb(37 99 235 / 8%);
}

.rpsb-seo-blocks__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(rgb(15 23 42 / 5%) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 35%), transparent 90%);
}

.rpsb-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--rpsb-content-max);
  margin: 0 auto;
  padding: 0 var(--rpsb-gutter);
  display: flex;
  flex-direction: column;
  gap: calc(var(--rpsb-gap) * 1.15);
}

/* Intro bento: hero + stats */
.rpsb-intro-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rpsb-gap);
}

@media (min-width: 992px) {
  .rpsb-intro-panel:has(.rpsb-hero):has(.rpsb-stats) {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    align-items: stretch;
  }

  .rpsb-intro-panel:has(.rpsb-hero):has(.rpsb-stats) .rpsb-stats {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }
}

/* Hero */
.rpsb-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--rpsb-radius-xl);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%) 0%, rgb(248 250 255 / 88%) 100%);
  border: 1px solid rgb(255 255 255 / 80%);
  box-shadow: var(--rpsb-shadow);
  backdrop-filter: var(--rpsb-blur);
}

.rpsb-hero__glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: min(320px, 55%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 99 235 / 18%) 0%, transparent 68%);
  pointer-events: none;
}

.rpsb-hero__content {
  position: relative;
  z-index: 1;
}

.rpsb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rpsb-accent-dark);
  background: var(--rpsb-accent-soft);
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 999px;
}

.rpsb-eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rpsb-accent);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 18%);
}

.rpsb-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--rpsb-ink);
}

.rpsb-lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  color: var(--rpsb-muted);
  font-weight: 400;
}

/* Stats */
.rpsb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rpsb-gap);
  margin: 0;
}

@media (max-width: 767px) {
  .rpsb-stats {
    grid-template-columns: 1fr;
  }
}

.rpsb-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  text-align: left;
  background: var(--rpsb-surface);
  border: 1px solid var(--rpsb-line);
  border-radius: var(--rpsb-radius);
  box-shadow: var(--rpsb-shadow-sm);
  backdrop-filter: var(--rpsb-blur);
  transition: transform 0.28s var(--rpsb-ease), box-shadow 0.28s var(--rpsb-ease), border-color 0.28s ease;
}

.rpsb-stat:hover {
  transform: translateY(-2px);
  border-color: rgb(37 99 235 / 14%);
  box-shadow: var(--rpsb-shadow);
}

.rpsb-stat__icon {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  background: var(--rpsb-accent-soft) center / 1.25rem 1.25rem no-repeat;
}

.rpsb-stat--time .rpsb-stat__icon {
  background-color: rgb(37 99 235 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.rpsb-stat--warranty .rpsb-stat__icon {
  background-color: rgb(79 70 229 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V7l8-4z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.rpsb-stat--price .rpsb-stat__icon {
  background-color: rgb(37 99 235 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 5.5a6.5 6.5 0 1 0 0 13'/%3E%3Cpath d='M7 10h10M7 14h8'/%3E%3C/svg%3E");
}

.rpsb-stat__body {
  min-width: 0;
  flex: 1;
}

.rpsb-meta-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rpsb-muted);
}

.rpsb-meta-value {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--rpsb-ink);
}

.rpsb-stat--price .rpsb-meta-value {
  color: var(--rpsb-accent-dark);
}

/* Content grid */
.rpsb-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--rpsb-gap);
}

.rpsb-card {
  position: relative;
  grid-column: span 12;
  background: var(--rpsb-surface-solid);
  border: 1px solid var(--rpsb-line);
  border-radius: var(--rpsb-radius-lg);
  box-shadow: var(--rpsb-shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--rpsb-ease), box-shadow 0.3s var(--rpsb-ease), border-color 0.3s ease;
}

.rpsb-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rpsb-accent), var(--rpsb-accent-2));
  opacity: 0.85;
}

.rpsb-card:hover {
  transform: translateY(-3px);
  border-color: rgb(37 99 235 / 12%);
  box-shadow: var(--rpsb-shadow-hover);
}

@media (min-width: 768px) {
  .rpsb-card--symptoms,
  .rpsb-card--technical,
  .rpsb-card--includes {
    grid-column: span 6;
  }

  .rpsb-card--trust {
    grid-column: span 12;
  }
}

.rpsb-card--symptoms::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.rpsb-card--technical::before {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.rpsb-card--includes::before {
  background: linear-gradient(90deg, #14b8a6, #0d9488);
}

.rpsb-card--process::before {
  background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.rpsb-card--trust::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.rpsb-card--featured,
.rpsb-card--madrid {
  background:
    linear-gradient(160deg, rgb(255 255 255 / 98%) 0%, rgb(239 246 255 / 92%) 100%);
  border-color: rgb(37 99 235 / 12%);
}

.rpsb-card--featured::before,
.rpsb-card--madrid::before {
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #059669 100%);
}

.rpsb-card__header {
  padding: 1.4rem 1.4rem 0;
}

.rpsb-card__body {
  padding: 1.4rem;
}

.rpsb-card--faqs {
  padding-bottom: 0.25rem;
}

.rpsb-card--faqs::before {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.rpsb-card--faqs .rpsb-card__header {
  padding-bottom: 0.35rem;
}

/* Typography */
.rpsb-seo-blocks .rpsb-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--rpsb-ink);
}

.rpsb-seo-blocks .rpsb-title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rpsb-accent), rgb(37 99 235 / 20%));
}

.rpsb-seo-blocks .rpsb-title--subsection {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 700;
}

.rpsb-seo-blocks .rpsb-title--subsection::after {
  width: 2rem;
  height: 2px;
}

.rpsb-subtitle,
.rpsb-seo-blocks .rpsb-card__body > p,
.rpsb-seo-blocks .rpsb-card__body p:first-of-type {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--rpsb-muted);
}

.rpsb-subtitle {
  margin-top: -0.25rem;
}

.rpsb-intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.rpsb-intent-item {
  padding: 1rem;
  background: rgb(248 250 252 / 76%);
  border: 1px solid rgb(15 23 42 / 7%);
  border-radius: var(--rpsb-radius);
}

.rpsb-intent-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--rpsb-ink);
}

.rpsb-intent-item p {
  margin: 0;
  color: var(--rpsb-muted);
  line-height: 1.68;
}

.rpsb-benefit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.rpsb-benefit-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  color: var(--rpsb-accent-dark);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
  background: rgb(37 99 235 / 8%);
  border: 1px solid rgb(37 99 235 / 10%);
  border-radius: 999px;
}

.rpsb-benefit-strip span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 0.42rem;
  background: var(--rpsb-success);
  border-radius: 999px;
}

@media (min-width: 768px) {
  .rpsb-intent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Lists */
.rpsb-list.rpsb-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.rpsb-list.rpsb-check-list li {
  position: relative;
  margin: 0;
  padding: 0.82rem 0.95rem 0.82rem 2.75rem;
  line-height: 1.55;
  font-size: 0.94rem;
  color: var(--rpsb-ink);
  background: var(--rpsb-surface-soft);
  border: 1px solid rgb(15 23 42 / 5%);
  border-radius: var(--rpsb-radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rpsb-list.rpsb-check-list li:hover {
  background: #fff;
  border-color: rgb(37 99 235 / 10%);
}

.rpsb-list.rpsb-check-list li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  background: var(--rpsb-success) center / 0.65rem 0.65rem no-repeat;
  border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2l3 3 6-6.5'/%3E%3C/svg%3E");
  box-shadow: 0 4px 10px rgb(5 150 105 / 22%);
}

/* Spec grid */
.rpsb-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rpsb-spec-grid li {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--rpsb-surface-soft);
  border: 1px solid rgb(15 23 42 / 5%);
  border-radius: var(--rpsb-radius-sm);
  line-height: 1.45;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rpsb-spec-grid li:hover {
  background: #fff;
  border-color: rgb(37 99 235 / 10%);
}

.rpsb-spec-grid li strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rpsb-muted);
}

.rpsb-list,
.rpsb-tech-list {
  margin: 0;
  padding-left: 1.1rem;
}

.rpsb-list li,
.rpsb-tech-list li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  color: var(--rpsb-ink);
}

/* Trust */
.rpsb-card--trust {
  background:
    radial-gradient(circle at 92% 0%, rgb(245 158 11 / 13%), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #fffaf0 100%);
  border-color: rgb(217 119 6 / 13%);
}

.rpsb-rating-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--rpsb-ink);
  background: var(--rpsb-success-soft);
  border: 1px solid rgb(5 150 105 / 14%);
  border-radius: 999px;
}

.rpsb-rating-badge strong {
  font-size: 1.05rem;
  color: var(--rpsb-success);
}

.rpsb-trust-intro {
  max-width: 72ch;
}

.rpsb-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .rpsb-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .rpsb-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rpsb-trust-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-height: 100%;
  padding: 1rem;
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(15 23 42 / 6%);
  border-radius: var(--rpsb-radius);
  box-shadow: 0 10px 24px rgb(15 23 42 / 4%);
}

.rpsb-trust-item__icon,
.rpsb-info-box__icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: var(--rpsb-accent-soft) center / 1.25rem 1.25rem no-repeat;
}

.rpsb-trust-item h3 {
  margin: 0 0 0.28rem;
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--rpsb-ink);
}

.rpsb-trust-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--rpsb-muted);
}

.rpsb-trust-item--tech .rpsb-trust-item__icon {
  background-color: rgb(37 99 235 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L4 17l3 3 5.7-5.7a4 4 0 0 0 5-5l-2.4 2.4-3-3 2.4-2.4z'/%3E%3C/svg%3E");
}

.rpsb-trust-item--shield .rpsb-trust-item__icon {
  background-color: rgb(5 150 105 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V7l8-4z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.rpsb-trust-item--diagnosis .rpsb-trust-item__icon {
  background-color: rgb(79 70 229 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E");
}

.rpsb-trust-item--parts .rpsb-trust-item__icon {
  background-color: rgb(13 148 136 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10H7z'/%3E%3Cpath d='M4 10h3M17 10h3M4 14h3M17 14h3M10 4v3M14 4v3M10 17v3M14 17v3'/%3E%3C/svg%3E");
}

.rpsb-trust-item--speed .rpsb-trust-item__icon {
  background-color: rgb(217 119 6 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 10-13h-7l0-7z'/%3E%3C/svg%3E");
}

.rpsb-trust-item--madrid .rpsb-trust-item__icon {
  background-color: rgb(220 38 38 / 9%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 0 0-14 0c0 5.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.rpsb-trust-item--appointment .rpsb-trust-item__icon {
  background-color: rgb(14 165 233 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16M8 14h4M8 17h8'/%3E%3C/svg%3E");
}

.rpsb-trust-item--experience .rpsb-trust-item__icon {
  background-color: rgb(124 58 237 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.5 6.1.9-4.4 4.3 1 6.1L12 16.9 6.6 19.8l1-6.1-4.4-4.3 6.1-.9L12 3z'/%3E%3C/svg%3E");
}

/* Notice */
.rpsb-card--notice::before {
  background: linear-gradient(90deg, #2563eb, #0d9488);
}

.rpsb-info-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: linear-gradient(135deg, rgb(239 246 255 / 92%), #fff);
  border: 1px solid rgb(37 99 235 / 14%);
  border-radius: var(--rpsb-radius);
}

.rpsb-info-box--apple .rpsb-info-box__icon {
  background-color: rgb(37 99 235 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8h.01M11 12h1v4h1'/%3E%3C/svg%3E");
}

.rpsb-info-box__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 800;
  color: var(--rpsb-ink);
}

.rpsb-info-box p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--rpsb-muted);
}

/* Local info */
.rpsb-info-list,
.rpsb-local-meta {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.rpsb-info-list li,
.rpsb-local-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  line-height: 1.55;
  font-size: 0.94rem;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(15 23 42 / 6%);
  border-radius: var(--rpsb-radius-sm);
}

.rpsb-info-list li strong,
.rpsb-local-meta li strong {
  min-width: 6.5rem;
  color: var(--rpsb-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* FAQ */
.rpsb-accordion {
  padding: 0 1.25rem 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.rpsb-faq-item {
  margin: 0;
  border: 1px solid rgb(15 23 42 / 6%);
  border-radius: var(--rpsb-radius-sm);
  background: var(--rpsb-surface-soft);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rpsb-faq-item[open] {
  background: #fff;
  border-color: rgb(37 99 235 / 16%);
  box-shadow: 0 8px 22px rgb(37 99 235 / 8%);
}

.rpsb-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.05rem;
  font-weight: 650;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--rpsb-ink);
  list-style: none;
  user-select: none;
}

.rpsb-faq-question::-webkit-details-marker {
  display: none;
}

.rpsb-faq-question__text {
  flex: 1;
}

.rpsb-faq-icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgb(37 99 235 / 12%);
  position: relative;
  transition: transform 0.25s var(--rpsb-ease), background 0.25s ease;
}

.rpsb-faq-item[open] .rpsb-faq-icon {
  background: var(--rpsb-accent-soft);
}

.rpsb-faq-icon::before,
.rpsb-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 2px;
  background: var(--rpsb-accent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--rpsb-ease), opacity 0.25s ease;
}

.rpsb-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.rpsb-faq-item[open] .rpsb-faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.rpsb-faq-answer {
  padding: 0 1.05rem 1.05rem;
  color: var(--rpsb-muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.rpsb-faq-answer p {
  margin: 0;
  padding-top: 0.15rem;
}

/* Links */
.rpsb-links-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--rpsb-gap);
}

.rpsb-card--internal {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgb(37 99 235 / 12%), transparent 34%),
    radial-gradient(circle at 96% 8%, rgb(5 150 105 / 10%), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgb(37 99 235 / 12%);
}

.rpsb-card--internal > * {
  position: relative;
  z-index: 1;
}

.rpsb-card--related,
.rpsb-card--internal {
  grid-column: span 12;
}

@media (min-width: 992px) {
  .rpsb-card--internal {
    grid-column: span 12;
  }
}

.rpsb-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1.35rem;
}

.rpsb-links-subtitle {
  max-width: 62ch;
  margin: -0.2rem 0 1rem;
  color: var(--rpsb-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.rpsb-link-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 5.25rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: var(--rpsb-ink);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(248 250 252 / 94%));
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: var(--rpsb-radius);
  box-shadow: 0 8px 22px rgb(15 23 42 / 5%);
  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.rpsb-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  background: linear-gradient(90deg, var(--rpsb-accent) 0 4px, transparent 4px);
  transform: scaleY(0.34);
  transform-origin: left center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.rpsb-link-card:hover,
.rpsb-link-card:focus-visible {
  color: var(--rpsb-accent-dark);
  background:
    linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgb(37 99 235 / 28%);
  box-shadow: 0 12px 28px rgb(37 99 235 / 10%), 0 4px 12px rgb(15 23 42 / 5%);
  transform: translateY(-2px);
  outline: none;
}

.rpsb-link-card:hover::before,
.rpsb-link-card:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.rpsb-link-card--soft {
  background: #fff;
}

.rpsb-link-card__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 3.05rem;
  height: 3.05rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--rpsb-accent-soft) center / 1.45rem 1.45rem no-repeat;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 85%),
    0 6px 14px rgb(15 23 42 / 5%);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.rpsb-link-card:hover .rpsb-link-card__icon,
.rpsb-link-card:focus-visible .rpsb-link-card__icon {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 90%),
    0 8px 18px rgb(37 99 235 / 10%);
}

.rpsb-link-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.rpsb-link-card__label {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.rpsb-link-card__meta {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--rpsb-muted);
}

.rpsb-link-card__arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--rpsb-accent);
  background: #fff;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 13px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rpsb-link-card:hover .rpsb-link-card__arrow,
.rpsb-link-card:focus-visible .rpsb-link-card__arrow {
  color: var(--rpsb-accent-dark);
  background: rgb(37 99 235 / 12%);
  border-color: rgb(37 99 235 / 20%);
}

.rpsb-link-card--pantalla .rpsb-link-card__icon,
.rpsb-link-card--pantalla_original .rpsb-link-card__icon {
  background-color: rgb(37 99 235 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.2'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
}

.rpsb-link-card--pantalla_original .rpsb-link-card__icon {
  background-color: rgb(79 70 229 / 11%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.2'/%3E%3Cpath d='M9.5 12l1.7 1.7 3.5-4'/%3E%3C/svg%3E");
}

.rpsb-link-card--bateria .rpsb-link-card__icon {
  background-color: rgb(5 150 105 / 11%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='15' height='10' rx='2'/%3E%3Cpath d='M19 10h1.5v4H19M11 9l-2 3h3l-2 3'/%3E%3C/svg%3E");
}

.rpsb-link-card--conector_carga .rpsb-link-card__icon {
  background-color: rgb(13 148 136 / 11%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7v5a5 5 0 0 0 10 0V7'/%3E%3Cpath d='M9 7V3M15 7V3M12 17v4'/%3E%3C/svg%3E");
}

.rpsb-link-card--tapa .rpsb-link-card__icon {
  background-color: rgb(217 119 6 / 11%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3' width='10' height='18' rx='2'/%3E%3Cpath d='M10 6h4M10 18h4'/%3E%3C/svg%3E");
}

.rpsb-link-card--funda .rpsb-link-card__icon {
  background-color: rgb(124 58 237 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M9 6h6v12H9z'/%3E%3C/svg%3E");
}

.rpsb-link-card--cristal_templado .rpsb-link-card__icon {
  background-color: rgb(14 165 233 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-2.8 8-7 10-4.2-2-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.rpsb-link-card--service .rpsb-link-card__icon {
  background-color: rgb(37 99 235 / 10%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 4v5c0 4.2-2.8 7.7-7 9-4.2-1.3-7-4.8-7-9V7l7-4z'/%3E%3Cpath d='M9 12h6M12 9v6'/%3E%3C/svg%3E");
}

.rpsb-internal-cta {
  padding: 0.35rem 1.25rem 1.25rem;
}

.rpsb-cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--rpsb-ink);
  background: linear-gradient(135deg, #fff 0%, var(--rpsb-accent-soft) 100%);
  border: 1px solid rgb(37 99 235 / 14%);
  border-radius: var(--rpsb-radius);
  box-shadow: var(--rpsb-shadow-sm);
  transition: transform 0.25s var(--rpsb-ease), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rpsb-cta-button:hover,
.rpsb-cta-button:focus-visible {
  color: var(--rpsb-accent-dark);
  background: #fff;
  border-color: rgb(37 99 235 / 22%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(37 99 235 / 12%);
  outline: none;
}

.rpsb-cta-button__arrow {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rpsb-accent);
  background: #fff;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 10px;
  transition: transform 0.25s var(--rpsb-ease), background 0.25s ease, color 0.25s ease;
}

.rpsb-cta-button__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.rpsb-cta-button__highlight {
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--rpsb-accent-dark);
}

.rpsb-cta-button__subtitle {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--rpsb-muted);
}

.rpsb-cta-button:hover .rpsb-cta-button__arrow,
.rpsb-cta-button:focus-visible .rpsb-cta-button__arrow {
  transform: translateX(2px);
  background: var(--rpsb-accent-soft);
}

/* Placement variants */
.rpsb-placement-ProductAdditionalInfo,
.rpsb-placement-ProductPriceBlock {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.25rem;
}

.rpsb-placement-ProductAdditionalInfo .rpsb-seo-blocks__bg,
.rpsb-placement-ProductPriceBlock .rpsb-seo-blocks__bg {
  padding: 1rem 0 0;
  background: transparent;
  border: 0;
}

.rpsb-placement-ProductAdditionalInfo .rpsb-seo-blocks__bg::before,
.rpsb-placement-ProductPriceBlock .rpsb-seo-blocks__bg::before {
  display: none;
}

.rpsb-layout-compact .rpsb-hero,
.rpsb-layout-compact .rpsb-stat {
  box-shadow: var(--rpsb-shadow-sm);
}

.rpsb-placement-ProductExtraContent,
#product_accordion .rpsb-seo-blocks {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

.rpsb-placement-ProductExtraContent .rpsb-seo-blocks__bg,
#product_accordion .rpsb-seo-blocks__bg {
  padding: 0;
  background: transparent;
  border: 0;
}

.rpsb-placement-ProductExtraContent .rpsb-seo-blocks__bg::before,
#product_accordion .rpsb-seo-blocks__bg::before {
  display: none;
}

#product_accordion .rpsb-container {
  max-width: 100%;
  padding: 0;
  gap: 0.85rem;
}

@media (min-width: 1200px) {
  .rpsb-link-grid--related,
  .rpsb-link-grid--internal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rpsb-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--rpsb-accent-soft);
  color: var(--rpsb-accent-dark);
  border-radius: 999px;
}

.rpsb-madrid p {
  line-height: 1.72;
  color: var(--rpsb-muted);
}

@media (prefers-reduced-motion: reduce) {
  .rpsb-card,
  .rpsb-link-card,
  .rpsb-stat,
  .rpsb-faq-icon,
  .rpsb-faq-icon::before,
  .rpsb-faq-icon::after {
    animation: none;
    transition: none;
  }
}
