/* ============================================================
   RTB Group · Auditoría de Ciberseguridad
   Marca real: tema claro (blanco/slate) + rojo Vodafone.
   Tipografías reales del sitio: Montserrat (titulares) + Roboto (cuerpo).
   ============================================================ */

:root {
  /* Superficies (tema claro, como rtbgroup.es) */
  --bg:        #ffffff;
  --bg-soft:   #F2F5F7;   /* gris claro de secciones (color global del sitio) */
  --bg-lav:    #f9f6fe;   /* lavanda muy claro del sitio para respiros */
  --surface:   #ffffff;
  --border:    #e6e8ee;
  --border-2:  #eef1f4;

  /* Texto neutro (negro roto / grises sin azul) */
  --text:    #2d2f33;
  --heading: #15161b;   /* casi negro, sin azul */
  --muted:   #6c6e74;
  --muted-2: #94969c;

  /* Acento de marca: rojo Vodafone */
  --brand:      #E60000;
  --brand-deep: #C40000;
  --brand-soft: #ffeaea;
  --brand-glow: rgba(230, 0, 0, 0.30);

  /* Acento oscuro para hero/mapa (tono "centro de operaciones") */
  --ink:     #0e0e10;
  --ink-2:   #1a1a1c;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --maxw: 1320px;
  --pad: 16px;

  --font:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  --display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;

  --shadow:    0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 6px 22px rgba(15, 23, 42, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* el atributo hidden siempre oculta (aunque .btn ponga display) */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.container {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad);
}
@media (min-width: 768px)  { :root { --pad: 20px; } }
/* El ancho útil crece con la pantalla para no dejar márgenes enormes en monitores grandes */
@media (min-width: 1280px) { :root { --maxw: 1320px; --pad: 28px; } }
@media (min-width: 1600px) { :root { --maxw: 1480px; --pad: 40px; } }
@media (min-width: 1920px) { :root { --maxw: 1660px; --pad: 48px; } }
@media (min-width: 2400px) { :root { --maxw: 1860px; } }

/* ---------- Accesibilidad: foco y skip-link ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #1763d6; outline-offset: 2px; border-radius: 6px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff;
  font-weight: 700; padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============================ TIPOGRAFÍA ============================ */
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.4em;
  font-weight: 700; color: var(--heading);
}

/* Titulares principales en MAYÚSCULA semi-bold, como la web del cliente */
h1, .section-title, .band-title {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.18rem; font-weight: 700; }

/* Subrayado de acento a la izquierda, como la web del cliente */
.section-title { position: relative; max-width: 46rem; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 3px;
  background: var(--brand); margin: 18px 0 0;
}
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); padding: 7px 14px; border-radius: 999px; margin: 0 0 18px;
}

/* ============================ BOTONES ============================ */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 13px 24px;
  font-family: var(--display); font-size: 1.04rem; font-weight: 700; line-height: 1.1;
  border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  text-align: center;
}
.btn-sm { --h: 44px; padding: 10px 18px; font-size: 0.96rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost { background: #fff; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); transform: translateY(-2px); }
.btn-ghost:active { transform: scale(0.97); }

/* botón fantasma sobre fondo oscuro (hero) */
.hero .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.16); }

.btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.section-cta { margin-top: 38px; text-align: left; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
#form { scroll-margin-top: 84px; }
.header-cta { white-space: nowrap; }
/* En móvil el header no es fijo (evita que tape el h1 al hacer scroll); el CTA flotante cubre la conversión */
@media (max-width: 979px) { .site-header { position: static !important; } }
@media (max-width: 560px) { .header-cta { display: none; } .header-inner { justify-content: center; } }

/* ============================ HERO (banda oscura de acento) ============================ */
.hero {
  position: relative; overflow: hidden; color: #f0f0f2;
  background: radial-gradient(120% 130% at 80% 0%, #1c1c1f 0%, var(--ink) 55%, #060608 100%);
  padding: clamp(64px, 7vw, 110px) 0 clamp(52px, 6vw, 84px);
}
@media (max-width: 979px) {
  .hero { padding-top: 56px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.24; }
  .hero .eyebrow { display: inline-block; font-size: 0.72rem; line-height: 1.4; white-space: normal; max-width: 100%; }
  .hero .eyebrow .eyebrow-sep { display: none; }
  .hero .eyebrow .eyebrow-l2 { display: block; }
}
.hero h1 { color: #fff; margin-top: 10px; }
.hero-glow { display: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 25%, #000 40%, transparent 100%);
          mask-image: radial-gradient(85% 75% at 50% 25%, #000 40%, transparent 100%);
  animation: heroGrid 16s linear infinite;   /* la rejilla se desplaza despacio */
}
@keyframes heroGrid { to { background-position: 48px 48px, 48px 48px; } }
/* barrido de luz diagonal que cruza el fondo */
.hero::after {
  content: ""; position: absolute; inset: -50% -20%; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.05) 50%, transparent 62%);
  transform: translateX(-30%);
  animation: heroSweep 9s ease-in-out infinite;
}
@keyframes heroSweep {
  0%, 100% { transform: translateX(-32%); opacity: 0.5; }
  50%      { transform: translateX(32%);  opacity: 1; }
}
.hero-grid { z-index: 1; }   /* contenido por encima del barrido */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}
.hero-grid { position: relative; display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
}
.hero-copy { max-width: none; }
.hero .eyebrow { background: rgba(230,0,0,0.2); color: #ffffff; border: 1px solid rgba(255,80,80,0.45); }
.hero .lead { margin: 0 0 26px; color: #e3e3e6; }
.hero-bullets { display: grid; gap: 13px; margin: 0 0 30px; }
.hero-bullet { position: relative; padding-left: 34px; color: #eaeaed; font-size: 1.03rem; }
.hero-bullet::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 23px; height: 23px; display: grid; place-items: center;
  background: var(--brand); color: #fff; border-radius: 50%; font-size: 0.78rem; font-weight: 900;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { justify-content: flex-start; text-align: left; }
/* Hero: contenido largo en desktop, simplificado en móvil */
.hero-mobile { display: none; }
@media (max-width: 979px) {
  .hero-desktop { display: none; }
  .hero-bullets.hero-mobile { display: grid; }
  .h1-tail { display: none; }
}

/* ---- Form card ---- */
.hero-form-col { position: relative; }
.form-card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow);
  color: var(--text);
}
.form-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.form-subtitle { color: var(--muted); font-size: 0.98rem; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--display); font-size: 0.86rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.field input, .tel-group select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font);
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .tel-group select:focus { border-color: #1763d6; box-shadow: 0 0 0 3px rgba(23,99,214,0.12); }
.field input[aria-invalid="true"] { border-color: var(--brand); background: var(--brand-soft); }
.tel-group { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }

.error { display: block; color: var(--brand-deep); font-size: 0.85rem; margin-top: 6px; font-weight: 600; }
.error:empty { display: none; }
.error::before { content: "⚠ "; }
.error:empty::before { content: ""; }
.error-global { margin-top: 12px; font-size: 0.95rem; }
.form-privacy { color: var(--muted-2); font-size: 0.8rem; margin: 14px 0 0; line-height: 1.5; }

/* ---- Cuestionario multi-paso ---- */
.quiz-progress { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 4px 0 10px; }
.quiz-bar { display: block; height: 100%; width: 12.5%; background: var(--brand); border-radius: 999px; transition: width 0.35s var(--ease); }
.quiz-count { font-family: var(--display); font-size: 0.78rem; font-weight: 600; color: var(--muted); margin: 0 0 14px; letter-spacing: 0.02em; }

.quiz-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-q { font-family: var(--display); font-weight: 700; font-size: 1.18rem; color: var(--heading); padding: 0; margin: 0 0 14px; line-height: 1.3; }
.quiz-q:focus-visible { outline: none; }
.quiz-help { color: var(--muted); font-size: 0.9rem; margin: -8px 0 12px; }
.quiz-input {
  width: 100%; min-height: 50px; padding: 13px 14px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font);
}
.quiz-input::placeholder { color: var(--muted-2); }
.quiz-input:focus { border-color: #1763d6; box-shadow: 0 0 0 3px rgba(23,99,214,0.12); }
.quiz-input[aria-invalid="true"] { border-color: var(--brand); background: var(--brand-soft); }
.quiz-select {
  width: 100%; min-height: 50px; padding: 13px 40px 13px 14px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6e74' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.quiz-select:focus { border-color: #1763d6; box-shadow: 0 0 0 3px rgba(23,99,214,0.12); outline: none; }
.quiz-select[aria-invalid="true"] { border-color: var(--brand); background-color: var(--brand-soft); }

/* Opciones tipo píldora con badge de letra */
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  background: #fff; cursor: pointer; transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.opt:hover { border-color: #c9ccd6; background: #fafbfc; }
.opt-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-radio {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #c4c9d4; background: #fff; position: relative; transition: border-color 0.18s var(--ease);
}
.opt-text { font-size: 1rem; color: var(--heading); font-weight: 500; }
.opt.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.opt.is-selected .opt-radio { border-color: var(--brand); }
.opt.is-selected .opt-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand); }
.opt-input:focus-visible + .opt-radio { outline: 3px solid #1763d6; outline-offset: 2px; }

/* Consentimiento */
.quiz-privacy { display: inline-block; color: var(--brand-deep); font-size: 0.9rem; font-weight: 600; margin: 0 0 12px; }
.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 8px 0; }
.consent-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--border); background: #fff; position: relative; transition: 0.18s var(--ease); }
.consent.is-selected .consent-box { background: var(--brand); border-color: var(--brand); }
.consent.is-selected .consent-box::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.consent-text { font-weight: 600; color: var(--heading); }
.consent-input:focus-visible + .consent-box { outline: 3px solid #1763d6; outline-offset: 2px; }

/* Navegación */
.quiz-nav { display: flex; align-items: stretch; gap: 10px; margin-top: 18px; }
.quiz-nav #quiz-next { flex: 1; }
.quiz-nav #quiz-back {
  flex: 0 0 auto; background: var(--bg-soft); border-color: #d4d9e1; color: var(--heading);
  padding-left: 16px; padding-right: 18px;
}
.quiz-nav #quiz-back:hover { background: #e7ebf0; }

/* Panel de descarte */
.quiz-discard { text-align: center; padding: 8px 4px; }
.discard-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.quiz-discard h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--heading); margin: 0 0 12px; }
.quiz-discard h2:focus-visible { outline: none; }
.quiz-discard p { color: var(--muted); margin: 0 0 22px; }

/* ============================ SECCIÓN GENÉRICA ============================ */
section { padding: clamp(56px, 8vw, 100px) 0; }

/* ============================ AUTORIDAD (blanco roto) ============================ */
.autoridad { background: #f4f3f1; color: var(--text); padding: clamp(40px, 5vw, 64px) 0; }
.band-title { text-align: center; color: var(--heading); font-size: clamp(0.98rem, 1.7vw, 1.3rem); margin: 0 auto 32px; }
.autoridad-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .autoridad-grid { grid-template-columns: repeat(3, 1fr); } }
.autoridad-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 32px 24px; border-radius: var(--radius); font-weight: 500; color: var(--text);
  /* glass claro */
  background: rgba(255,255,255,0.65);
  border: 1px solid #ffffff;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.autoridad-ico { display: grid; place-items: center; color: var(--brand); }
.autoridad-ico svg { width: 38px; height: 38px; display: block; stroke-width: 1.9; }
.autoridad-text { font-size: 1rem; line-height: 1.5; }

/* ============================ AGITACIÓN (mapa izq · contenido der) ============================ */
/* negro roto con una variación sutil para que el glass de las cards tenga profundidad */
.agitacion { background: radial-gradient(115% 120% at 78% 0%, #1c1c1f 0%, #0e0e10 55%, #060608 100%); color: #e3e3e6; }
.agitacion .section-title { color: #fff; }
/* el bloque usa todo el ancho hasta los márgenes laterales */
.agitacion .attack-map-wrap { max-width: none; display: grid; gap: 32px; align-items: stretch; }
@media (min-width: 980px) { .agitacion .attack-map-wrap { grid-template-columns: 2fr 3fr; gap: 48px; } }

/* Mapa: más grande, ocupa toda la altura de la columna */
.attack-map {
  position: relative; width: 100%; min-height: 460px; height: 100%; aspect-ratio: auto;
  background: radial-gradient(85% 85% at 50% 38%, #1a1a1d, #060608);
  border: 1px solid #2a2a2e; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 979px) { .attack-map { min-height: 0; height: auto; aspect-ratio: 16 / 11; } }
.attack-map canvas { position: absolute; inset: 0; }

/* Contenido derecho: título + cards + CTA */
.agitacion-content { display: flex; flex-direction: column; justify-content: center; }
.agitacion-content .section-title { margin-bottom: 22px; }
.agitacion-datos { display: grid; gap: 14px; }
.dato {
  position: relative; padding: 18px 20px 18px 22px;
  border: 1px solid rgba(255,255,255,0.16); border-left: 4px solid var(--brand); border-radius: 12px;
  font-size: 1.02rem; color: #e3e3e6;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.dato:first-child { font-weight: 600; color: #fff; }
.agitacion-content .section-cta { margin-top: 24px; }

/* ============================ SOLUCIÓN (fondo oscuro, 2 columnas) ============================ */
.solucion {
  background: radial-gradient(120% 130% at 80% 0%, #1c1c1f 0%, var(--ink) 55%, #060608 100%);
  color: #e3e3e6;
}
.solucion .section-title { color: #fff; margin-bottom: 24px; }
.solucion .section-title::after { display: none; }   /* sin línea en esta sección */
.solucion .section-title .hl-red { color: var(--brand); }   /* resalta "si estás protegido" */
.solucion-sticky { padding: clamp(56px, 8vw, 100px) 0; }
.solucion-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .solucion-layout { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
}
.solucion-aside .section-cta { margin-top: 28px; }

/* Puntos de progreso (solo modo scrolly desktop) */
.solucion-dots { display: none; gap: 10px; margin: 4px 0 4px; }
.solucion-dots button {
  width: 30px; height: 5px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.22); transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.solucion-dots button.active { background: var(--brand); width: 44px; }

/* Cards — glassmorphism */
.solucion-grid { display: grid; gap: 18px; }
.solucion-row {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center;
  padding: 26px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.solucion-ico { display: grid; place-items: center; color: var(--brand); }
.solucion-ico svg { width: 32px; height: 32px; display: block; stroke-width: 1.9; }
.solucion-card-title { color: #fff; margin: 2px 0 8px; font-size: 1.18rem; }
.solucion-card-text { color: #d6d6da; margin: 0; font-size: 1rem; }

/* ---- Modo scrolly: sección fijada, una card cada vez (desktop) ---- */
@media (min-width: 900px) {
  .solucion.is-scrolly { position: relative; padding: 0; }
  .solucion.is-scrolly .solucion-sticky {
    position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0; overflow: hidden;
  }
  /* las dos columnas a la misma altura; izquierda centrada verticalmente */
  .solucion.is-scrolly .solucion-layout { align-items: stretch; }
  .solucion.is-scrolly .solucion-aside { display: flex; flex-direction: column; justify-content: center; }
  /* ventana que recorta el deslizamiento (carrusel vertical) */
  .solucion.is-scrolly .solucion-grid { gap: 0; align-self: stretch; overflow: hidden; }
  .solucion.is-scrolly .solucion-row {
    grid-area: 1 / 1; align-self: stretch; align-content: center;  /* card alta, contenido centrado */
    padding: 40px 32px;
    transform: translateY(115%); pointer-events: none;   /* esperando abajo */
    transition: transform 0.6s var(--ease);
  }
  .solucion.is-scrolly .solucion-row.active { transform: translateY(0); pointer-events: auto; }
  .solucion.is-scrolly .solucion-row.above { transform: translateY(-115%); }  /* ya pasada, sale por arriba */
}
@media (prefers-reduced-motion: reduce) {
  .solucion.is-scrolly .solucion-row { transition: none; }
}
/* Salvaguarda móvil: nunca pin/altura gigante; cards apiladas y visibles */
@media (max-width: 899px) {
  .solucion .section-cta { display: none; }   /* CTA oculto en móvil en esta sección */
  .solucion .section-title { text-align: center; max-width: none; margin-inline: auto; }
  .solucion .section-title::after { display: none; }   /* sin línea en móvil */
  /* cards: icono arriba y todo centrado */
  .solucion-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .solucion, .solucion.is-scrolly { height: auto !important; padding: clamp(56px, 8vw, 100px) 0; }
  .solucion.is-scrolly .solucion-sticky { position: static; height: auto; padding: 0; overflow: visible; }
  .solucion.is-scrolly .solucion-grid { overflow: visible; gap: 18px; }
  .solucion.is-scrolly .solucion-row { position: static; grid-area: auto; transform: none !important; opacity: 1 !important; pointer-events: auto; }
}
@media (max-width: 520px) {
  .solucion-row { padding: 22px 18px; }
}

/* ============================ PRUEBA SOCIAL ============================ */
.prueba-social { background: var(--bg-lav); }
.prueba-social .section-title { text-align: center; margin: 0 auto 44px; }
.prueba-social .section-title::after { margin-inline: auto; }
.resenas-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .resenas-grid { grid-template-columns: repeat(3, 1fr); } }
/* Móvil: carrusel horizontal, una reseña por vez (swipe) */
@media (max-width: 759px) {
  .resenas-grid {
    grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .resenas-grid::-webkit-scrollbar { display: none; }
  .resena { scroll-snap-align: center; }
}
.resena {
  background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
}
.resena::before { content: "★★★★★"; color: #f5b400; letter-spacing: 2px; font-size: 0.98rem; }
.resena-text { margin: 0; color: var(--text); font-size: 1rem; }
.resena-autor { margin: 0; color: var(--heading); font-weight: 700; font-size: 0.92rem; }

/* ============================ PROCESO (timeline · cards glass) ============================ */
.proceso { background: #f4f3f1; }   /* blanco roto, como Autoridad */
.proceso .section-title { text-align: center; margin: 0 auto 48px; }
.proceso .section-title::after { margin-inline: auto; }
.proceso-timeline { max-width: 820px; margin-inline: auto; position: relative; display: grid; gap: 34px; }
/* línea base (track) tenue */
.proceso-timeline::before {
  content: ""; position: absolute; left: 26px; top: 20px; bottom: 20px; width: 3px; border-radius: 3px;
  background: rgba(230,0,0,0.16);
}
/* línea de progreso que avanza con el scroll */
.proceso-timeline::after {
  content: ""; position: absolute; left: 26px; top: 20px; width: 3px; border-radius: 3px;
  height: var(--fill, 0px); max-height: calc(100% - 40px); background: var(--brand);
}
.paso { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: center; }
.paso-num {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: #fff;
  background: var(--brand); border: 4px solid #f4f3f1;   /* separa el badge de la línea */
  opacity: 0.4; transform: scale(0.9); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.paso.reached .paso-num { opacity: 1; transform: scale(1); }
.paso-text {
  margin: 0; color: var(--text); font-size: 1.02rem;
  padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,0.65); border: 1px solid #fff; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.paso-text b { color: var(--heading); }
.proceso .section-cta { text-align: center; }
@media (max-width: 520px) {
  .proceso-timeline::before { left: 22px; }
  .paso { grid-template-columns: 46px 1fr; gap: 14px; }
  .paso-num { width: 46px; height: 46px; font-size: 1.05rem; }
}

/* ============================ EQUIPO (fondo oscuro) ============================ */
.equipo { background: var(--ink); color: #e3e3e6; }
.equipo .section-title { color: #fff; }
.equipo-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .equipo-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.equipo-photo-placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px dashed rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04); display: grid; place-items: center; color: #b0b0b6;
  text-align: center; font-size: 0.9rem; background-size: cover; background-position: center;
}
.equipo-photo-placeholder.has-photo {
  border: none;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
}
.equipo-p { color: #d6d6da; margin: 0 0 16px; font-size: 1.05rem; }
.equipo-p:last-child { margin-bottom: 0; }

/* ============================ FAQs ============================ */
.faqs { background: var(--bg); }
.faqs-inner { max-width: 1120px; margin-inline: auto; }
.faqs .section-title { text-align: center; margin: 0 auto 40px; }
.faqs .section-title::after { margin-inline: auto; }
.faqs .section-cta { text-align: center; }
.accordion { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.faq-item.open { border-color: rgba(230,0,0,0.4); box-shadow: var(--shadow-sm); }
.faq-head { margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; color: var(--heading); cursor: pointer; text-align: left;
  padding: 18px 20px; font-family: var(--display); font-size: 1.05rem; font-weight: 700;
}
.faq-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform 0.25s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-panel { padding: 0 20px 20px; }
.faq-a { margin: 0; color: var(--muted); font-size: 1rem; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink); color: #e3e3e6; padding: 60px 0 0; }
.site-footer.slim { padding: 30px 0; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.footer-logo { height: 48px; width: 48px; object-fit: contain; margin-bottom: 14px; }
.footer-tag { color: #cdcdd2; font-weight: 600; margin: 0 0 18px; }
.footer-contact { display: grid; gap: 10px; margin-bottom: 18px; }
.footer-contact li { color: #e3e3e6; font-size: 0.96rem; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-label { display: block; color: #a2a2a8; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
  text-decoration: none; color: #eaeef4; font-size: 0.88rem; font-weight: 600;
}
.social-link:hover { background: rgba(255,255,255,0.14); }
.footer-h { font-family: var(--display); color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.footer-map { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); background: #0e0e10; }
.footer-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(100%) contrast(1.08) brightness(0.97);
}
.footer-bottom {
  margin-top: 44px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.site-footer.slim .footer-bottom { margin-top: 0; border-top: none; justify-content: center; }
.footer-bottom p { margin: 0; color: #b9b9bf; font-size: 0.88rem; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #e3e3e6; font-size: 0.88rem; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ============================ STICKY CTA (mobile) ============================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: none;
  transform: translateY(120%); opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.sticky-cta.show { transform: translateY(0); opacity: 1; }
.sticky-cta .btn { font-size: 0.96rem; line-height: 1.2; padding-top: 11px; padding-bottom: 11px; }
@media (min-width: 768px) { .sticky-cta { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ============================ GRACIAS ============================ */
.gracias-main {
  position: relative; min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px);
  display: grid; place-items: center; padding: 60px 0; overflow: hidden;
  color: #f0f0f2;
  background: radial-gradient(120% 130% at 80% 0%, #1c1c1f 0%, var(--ink) 55%, #060608 100%);
}
.gracias-card { max-width: 720px; text-align: center; position: relative; }
.gracias-card h1 { color: #fff; }
.gracias-card .lead { color: #e3e3e6; margin: 0 auto 30px; max-width: 64ch; }
.gracias-check {
  width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--brand);
}

/* ============================ REVEAL ON SCROLL ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* variante: entra desde la derecha */
.reveal-right { transform: translateX(48px); }
/* entrada escalonada de los datos (uno a uno) */
.agitacion-datos .dato:nth-child(1) { transition-delay: 0.05s; }
.agitacion-datos .dato:nth-child(2) { transition-delay: 0.17s; }
.agitacion-datos .dato:nth-child(3) { transition-delay: 0.29s; }
.agitacion-datos .dato:nth-child(4) { transition-delay: 0.41s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .solucion-card, .btn { transition: none; }
}
