/* =========================================================================
   Koordina · styles.css
   Orden: reset (inline) -> tokens (:root) -> secciones.
   Estilo: moderno (audaz, titulares grandes, motion fade-up-scale, hover lift+glow).
   Paleta: Koordina Navy Glass (dark) — navy profundo + acento cyan->violeta (OKLCH).
   Anima SOLO transform/opacity/filter. Tokens via custom properties.
   ========================================================================= */

/* ----------------------------- RESET (inline) ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; font-family: var(--font-body); color: var(--text); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ------------------------------- TOKENS ---------------------------------- */
:root {
  /* Paleta (OKLCH) — Koordina Navy Glass dark */
  --surface: oklch(15.1% 0.030 261.9);
  --surface-2: oklch(19.3% 0.040 261.4);
  --text: oklch(98.4% 0.003 247.9);
  --text-soft: oklch(80% 0.028 262.0);
  --muted: oklch(63.1% 0.041 262.0);
  --line: oklch(25.8% 0.053 261.9);
  --accent: oklch(75.4% 0.139 232.7);
  --cta: oklch(62.7% 0.233 303.9);

  /* Gradiente de acento cyan -> violeta */
  --accent-grad: linear-gradient(135deg, oklch(75.4% 0.139 232.7) 0%, oklch(68.5% 0.148 237.3) 50%, oklch(62.7% 0.233 303.9) 100%);

  /* Glass / superficies translucidas */
  --glass-bg: oklch(19.3% 0.040 261.4 / 0.55);
  --glass-border: oklch(75.4% 0.139 232.7 / 0.16);
  --glow-cyan: oklch(75.4% 0.139 232.7 / 0.32);
  --glow-violet: oklch(62.7% 0.233 303.9 / 0.30);

  /* Tipografia */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --text-hero: clamp(2.2rem, 1.4rem + 3.2vw, 4rem);
  --text-h2: clamp(2rem, 1.1rem + 3.4vw, 3.6rem);
  --text-h3: clamp(1.25rem, 1rem + 0.9vw, 1.6rem);
  --text-lead: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);

  /* Spacing / ritmo (moderno: generoso) */
  --space-section: clamp(5rem, 4rem + 6vw, 12rem);
  --space-block: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem);
  --container: 82rem;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Icono check (mask) para checklists */
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 400ms;
  /* Reveal (Emil Kowalski): strong ease-out + duracion larga para entrada con caracter fisico */
  --ease-reveal: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-reveal: 700ms;
}

/* ------------------------------ LAYOUT BASE ------------------------------ */
body { overflow-x: hidden; }
body.is-menu-open { overflow: hidden; }

main { display: block; }

section { position: relative; }

.servicios, .proceso, .porque, .stack, .faq, .contacto {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--space-section);
}

/* Encabezado de seccion */
.section-head { max-width: 46rem; margin-bottom: var(--space-block); }
.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-lead {
  margin-top: 1.1rem;
  font-size: var(--text-lead);
  color: var(--muted);
  max-width: 42rem;
}

/* ------------------------------- BOTONES --------------------------------- */
.btn {
  --btn-pad-y: 0.78rem;
  --btn-pad-x: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), filter var(--duration) var(--ease), background var(--duration) var(--ease);
  will-change: transform;
}
.btn--lg { --btn-pad-y: 1.02rem; --btn-pad-x: 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  color: oklch(15.1% 0.030 261.9);
  background: var(--accent-grad);
  box-shadow: 0 10px 30px -12px var(--glow-violet), 0 0 0 1px var(--glass-border);
}
.btn--primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow: 0 18px 44px -14px var(--glow-violet), 0 0 0 1px oklch(75.4% 0.139 232.7 / 0.4);
}
.btn--primary:active { transform: translateY(-1px); }

.btn--ghost {
  color: var(--text);
  background: var(--glass-bg);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px -18px var(--glow-cyan);
}
.btn--ghost:active { transform: translateY(-1px); }

/* --------------------------------- NAV ----------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background var(--duration) var(--ease), backdrop-filter var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
}
.nav.is-scrolled {
  background: oklch(15.1% 0.030 261.9 / 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px oklch(0% 0 0 / 0.9);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-right: auto;
}
.nav__logo-mark {
  width: 14px; height: 14px;
  border-radius: 5px;
  background: var(--accent-grad);
  box-shadow: 0 0 16px -2px var(--glow-cyan);
}
.nav__links { display: none; list-style: none; gap: 1.6rem; align-items: center; }
.nav__link {
  font-size: 0.96rem;
  color: var(--muted);
  position: relative;
  transition: color var(--duration) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }

@media (min-width: 64rem) {
  .nav__links, .nav__cta { display: inline-flex; }
}

/* Burger */
.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-left: auto;
}
.nav__burger-line {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.nav__burger.is-active .nav__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-active .nav__burger-line:nth-child(2) { opacity: 0; }
.nav__burger.is-active .nav__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 64rem) { .nav__burger { display: none; } }

/* Panel movil */
.nav__mobile {
  position: fixed;
  inset: 64px var(--gutter) auto var(--gutter);
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  background: oklch(15.1% 0.030 261.9 / 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px oklch(0% 0 0 / 0.85);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.nav__mobile.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nav__mobile-link {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav__mobile-link:hover { background: var(--surface-2); color: var(--accent); }
.nav__mobile-cta { margin-top: 0.5rem; }
@media (min-width: 64rem) { .nav__mobile { display: none; } }

/* --------------------------------- HERO ---------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--gutter);
  padding-top: clamp(7rem, 5rem + 9vw, 12rem);
  padding-bottom: var(--space-section);
  overflow: clip;
  isolation: isolate;
}
/* Capa de fondo: imagen abstracta + objeto 3D Vanta. Solo decora -> no captura el puntero. */
.hero__bg {
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  overflow: clip;
}
/* Scrim: capa oscura sobre la imagen (detras del texto) para subir el contraste
   y que el titulo/subcopy se lean claros aunque la imagen tenga zonas brillantes.
   Mas denso a la izquierda/abajo, donde vive el contenido del hero. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 11, 24, 0.82) 0%, rgba(5, 11, 24, 0.55) 45%, rgba(5, 11, 24, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 11, 24, 0.55) 0%, rgba(5, 11, 24, 0) 55%);
}
.hero__bg-img,
.hero__3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg-img {
  object-fit: cover;
  opacity: 0.85;
  /* mascara para fundir el borde inferior con la pagina */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
/* El canvas de Vanta se monta dentro de #hero-3d; aparece encima de la imagen al cargar. */
.hero__3d > canvas {
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.hero__3d.is-active > canvas { opacity: 0.9; }
.hero__3d.is-active + .hero__glow,
.hero__bg:has(.is-active) ~ .hero__glow { opacity: 0.6; }
.hero__glow {
  position: absolute;
  top: -18%; left: 50%;
  width: min(72rem, 120vw);
  aspect-ratio: 1.6 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(45% 55% at 30% 40%, var(--glow-cyan), transparent 70%),
    radial-gradient(45% 55% at 72% 55%, var(--glow-violet), transparent 70%);
  filter: blur(20px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: var(--container); margin-inline: auto; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
.hero__title-accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: var(--text-lead);
  color: var(--text);
  max-width: 44rem;
}
.hero__body {
  margin-top: 1rem;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 42rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero__micro {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
/* Movil: en iOS Safari el hero se veia "cortado abajo" porque la barra inferior
   flotante de Safari come parte de 100dvh y tapaba el ultimo CTA. Usamos SOLO svh
   (small viewport height = altura garantizada con las barras visibles, la mas chica)
   como piso, sin override dvh. Ademas el hero puede crecer si el contenido pide mas.
   Padding-top moderado (el navbar fijo no necesita el despeje grande del desktop) y
   padding-bottom generoso para el aire abajo. */
@media (max-width: 40rem) {
  .hero {
    min-height: 100svh;
    /* Bajar todo el bloque (titulo + texto + CTA): mas padding-top con flex-start
       empuja el contenido hacia abajo. padding-bottom mantiene aire bajo los CTA. */
    justify-content: flex-start;
    padding-top: clamp(9rem, 6rem + 16vw, 13rem);
    padding-bottom: clamp(4rem, 3rem + 6vw, 6rem);
  }
  /* Subir el encuadre de la imagen de fondo en movil (mostrar mas de la parte
     superior). object-position Y menor = imagen mas arriba. */
  .hero__bg-img {
    object-position: 50% 12%;
  }
}

/* ------------------------------ SERVICIOS -------------------------------- */
/* Grid de servicios: cards con foto-arriba (ricas). 1 col en movil para que la
   foto y el texto sean legibles; 2 por fila desde tablet en adelante. */
.serv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
}
@media (min-width: 37rem) {
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
}

.serv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: clip;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  will-change: transform;
}
.serv-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: inherit;
  background: var(--accent-grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--duration) var(--ease);
  pointer-events: none;
}
.serv-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border);
  box-shadow: 0 24px 60px -28px var(--glow-violet);
}
.serv-card:hover::before { transform: scaleY(1); }

/* Badge: pill arriba a la izquierda (no margin-left:auto), un item por card */
.serv-card__badge {
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: oklch(75.4% 0.139 232.7 / 0.12);
  border: 1px solid var(--glass-border);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.serv-card__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
  transition: transform var(--duration) var(--ease);
}
.serv-card:hover .serv-card__icon,
.serv-card:focus-visible .serv-card__icon { transform: translateY(-2px) scale(1.05); }

/* Header de la card: texto (badge + titulo) a la izquierda, foto grande arriba
   a la derecha. Fila con la foto alineada al top del bloque de texto. */
.serv-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.serv-card__headtext {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
/* iconpic: foto 3D que reemplaza al icono SVG, grande (~124px)
   posicionada arriba a la derecha del titulo. */
.serv-card__iconpic {
  display: block;
  width: clamp(92px, 7rem + 1.6vw, 124px);
  height: clamp(92px, 7rem + 1.6vw, 124px);
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: clip;
  border: 1px solid var(--glass-border);
  transition: transform var(--duration) var(--ease);
}
.serv-card__iconpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.serv-card:hover .serv-card__iconpic,
.serv-card:focus-visible .serv-card__iconpic { transform: translateY(-2px) scale(1.05); }

/* ---- Layout de card con foto grande (2 variantes, probar 2 y 2) ----
   Base (mobile / <64rem): columna simple — texto arriba, foto grande abajo.
   La foto deja de ser el crop chico de 124px: ocupa el ancho de su lado. */
.serv-card__text { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.serv-card--iconpic .serv-card__head { flex: 0; } /* head ya solo lleva el headtext */

.serv-card--split .serv-card__iconpic,
.serv-card--stack .serv-card__iconpic {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;          /* foto entera, ratio natural del hero-<slug> (no crop 1:1) */
  border-radius: var(--radius);
}
.serv-card--split .serv-card__iconpic img,
.serv-card--stack .serv-card__iconpic img { aspect-ratio: 3 / 2; }

/* STACK (foto arriba): la foto va PRIMERO (arriba), el texto debajo. */
.serv-card--stack { flex-direction: column; }
.serv-card--stack .serv-card__iconpic { order: -1; }

@media (min-width: 64rem) {
  /* SPLIT (foto derecha): card en 2 columnas — texto izq, foto der ocupando el alto.
     La card pasa a grid; el ::before (barra de acento) sigue absolute, no afecta. */
  .serv-card--split {
    display: grid;
    grid-template-columns: 1fr minmax(9rem, 15rem);
    align-items: stretch;
    gap: clamp(1rem, 0.5rem + 1vw, 1.75rem);
  }
  .serv-card--split .serv-card__iconpic {
    height: 100%;
    aspect-ratio: auto;          /* que llene el alto de la card, no un ratio fijo */
    align-self: stretch;
  }
  .serv-card--split .serv-card__iconpic img { aspect-ratio: auto; height: 100%; }
  .serv-card--split .serv-card__more { margin-top: auto; }

  /* STACK en desktop: foto arriba grande, texto debajo (columna). */
  .serv-card--stack .serv-card__iconpic { aspect-ratio: 16 / 9; }
}

.serv-card__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-h3);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}
.serv-card__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
  margin: 0;
}
.serv-card__body {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  letter-spacing: -0.003em;
  text-wrap: pretty;
  margin: 0;
}

/* Checklist: 4 items con check (cuando la card lo lleva) */
.serv-card__list { list-style: none; display: grid; gap: 0.7rem; margin: 0.2rem 0 0; padding: 0; }
.serv-card__list > li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.4;
}
.serv-card__list > li::before {
  content: "";
  position: absolute; left: 0; top: 0.18em;
  width: 1.05rem; height: 1.05rem;
  background-color: var(--accent);
  -webkit-mask: var(--check-mask) center / contain no-repeat;
  mask: var(--check-mask) center / contain no-repeat;
}

.serv-card__more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.serv-card:hover .serv-card__more,
.serv-card:focus-visible .serv-card__more { text-decoration: underline; text-underline-offset: 3px; }
.serv-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------- PROCESO --------------------------------- */
.proceso-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
  counter-reset: step;
}
@media (min-width: 48rem) { .proceso-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .proceso-grid { grid-template-columns: repeat(4, 1fr); } }

.proceso-step {
  position: relative;
  padding: clamp(1.3rem, 1rem + 0.9vw, 1.8rem);
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  will-change: transform;
}
.proceso-step:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border);
  box-shadow: 0 20px 50px -30px var(--glow-cyan);
}
.proceso-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem);
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.8rem;
}
/* Imagen 3D del paso: banner redondeado arriba del titulo, tras el numero.
   object-fit cover para llenar sin deformar; aspect fijo = sin CLS. */
.proceso-step__pic,
.porque-card__pic {
  display: block;
  margin-bottom: 1rem;
}
.proceso-step__pic img,
.porque-card__pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.proceso-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.proceso-step__body { color: var(--muted); font-size: 1.02rem; }

.proceso__cta, .porque__cta { margin-top: var(--space-block); }

/* -------------------------------- PORQUE --------------------------------- */
.porque-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
}
@media (min-width: 56rem) { .porque-grid { grid-template-columns: repeat(3, 1fr); } }

.porque-card {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.2rem);
  background: linear-gradient(165deg, oklch(19.3% 0.040 261.4 / 0.6), oklch(15.1% 0.030 261.9 / 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  will-change: transform;
}
.porque-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border);
  box-shadow: 0 24px 60px -30px var(--glow-violet);
}
.porque-card__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.porque-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--text);
  margin-bottom: 0.6rem;
}
.porque-card__body { color: var(--muted); font-size: 1.02rem; }

/* --------------------------------- STACK --------------------------------- */
/* Layout 2-col como produccion: head sticky a la izquierda + grid a la derecha */
.stack__inner { display: block; }
@media (min-width: 64rem) {
  .stack__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: start;
  }
  .stack .section-head {
    position: sticky;
    top: clamp(6rem, 5rem + 4vw, 9rem);
    margin-bottom: 0;
  }
  /* Grilla de chips centrada verticalmente en la fila (head izq es alto por el
     titulo; los chips son pocos y quedaban pegados arriba). align-self centra solo
     la columna derecha sin afectar el head sticky. */
  .stack-grid {
    align-self: center;
  }
}
.stack-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.stack-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  will-change: transform;
}
.stack-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px -20px var(--glow-cyan);
}
.stack-chip.cyan { color: var(--accent); }
.stack-chip.violet { color: var(--cta); }

/* ---------------------------------- FAQ ---------------------------------- */
.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-inline: auto;
}
/* FAQ centrado al medio de la pagina */
.faq .section-head {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  overflow: clip;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.faq-item:hover { border-color: var(--glass-border); }
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 20px 50px -36px var(--glow-cyan);
}
.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  list-style: none;
}
.faq-item__summary::-webkit-details-marker { display: none; }
/* El focus-visible global (outline accent con offset:3px) dibujaba una linea cyan
   recta bajo el summary porque el item tiene overflow:clip (recorta el ring exterior
   dejando solo el borde inferior visible como linea). Ring propio hacia ADENTRO
   (offset negativo) + radius del item: sigue la forma redondeada, no una linea. */
.faq-item__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.faq-item__summary:focus:not(:focus-visible) { outline: none; }
.faq-item__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--text);
  line-height: 1.3;
}
.faq-item__icon {
  position: relative;
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.faq-item__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-item__icon::after { opacity: 0; transform: translateY(-50%) rotate(0deg); }
.faq__answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 48rem;
}

/* -------------------------------- CONTACTO ------------------------------- */
.contacto { overflow: clip; }
.contacto__glow {
  position: absolute;
  inset: auto -10% -30% auto;
  width: min(50rem, 100vw);
  aspect-ratio: 1.4 / 1;
  background: radial-gradient(50% 60% at 60% 50%, var(--glow-violet), transparent 70%);
  filter: blur(24px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}
.contacto__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .contacto__inner:not(.contacto__inner--stack) { grid-template-columns: 1fr 1fr; }
}
/* Variante apilada: pitch -> WhatsApp (CTA primario) -> formulario colapsado */
.contacto__inner--stack {
  max-width: 40rem;
  margin-inline: auto;
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.contacto__pitch .btn { margin-top: 2rem; }

/* ---- WhatsApp: CTA primario ---- */
.contacto__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.contacto__wa-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.04 2c-5.46 0-9.9 4.44-9.9 9.9 0 1.75.46 3.45 1.32 4.95L2 22l5.3-1.38a9.9 9.9 0 0 0 4.73 1.2h.01c5.46 0 9.9-4.44 9.9-9.9S17.5 2 12.04 2Zm5.8 14.04c-.24.68-1.4 1.3-1.94 1.34-.5.05-1.13.07-1.82-.11-.42-.13-.96-.31-1.65-.61-2.9-1.25-4.8-4.17-4.94-4.36-.15-.19-1.19-1.58-1.19-3.02 0-1.44.76-2.14 1.03-2.44.27-.3.59-.37.79-.37.2 0 .39.002.56.01.18.008.42-.07.66.5.24.58.82 2.02.89 2.17.07.15.12.32.02.51-.1.19-.15.31-.29.48-.15.17-.3.38-.43.51-.15.15-.3.31-.13.6.17.29.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.35 1.46.29.15.46.12.63-.07.17-.2.73-.85.92-1.14.2-.29.39-.24.66-.15.27.1 1.72.81 2.01.96.29.15.49.22.56.34.07.12.07.7-.17 1.38Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.04 2c-5.46 0-9.9 4.44-9.9 9.9 0 1.75.46 3.45 1.32 4.95L2 22l5.3-1.38a9.9 9.9 0 0 0 4.73 1.2h.01c5.46 0 9.9-4.44 9.9-9.9S17.5 2 12.04 2Zm5.8 14.04c-.24.68-1.4 1.3-1.94 1.34-.5.05-1.13.07-1.82-.11-.42-.13-.96-.31-1.65-.61-2.9-1.25-4.8-4.17-4.94-4.36-.15-.19-1.19-1.58-1.19-3.02 0-1.44.76-2.14 1.03-2.44.27-.3.59-.37.79-.37.2 0 .39.002.56.01.18.008.42-.07.66.5.24.58.82 2.02.89 2.17.07.15.12.32.02.51-.1.19-.15.31-.29.48-.15.17-.3.38-.43.51-.15.15-.3.31-.13.6.17.29.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.35 1.46.29.15.46.12.63-.07.17-.2.73-.85.92-1.14.2-.29.39-.24.66-.15.27.1 1.72.81 2.01.96.29.15.49.22.56.34.07.12.07.7-.17 1.38Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Formulario colapsado en <details> ---- */
.contacto__details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.contacto__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 0.8rem + 0.6vw, 1.4rem) clamp(1.25rem, 1rem + 1vw, 2rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.contacto__summary::-webkit-details-marker { display: none; }
.contacto__summary:hover { background: var(--surface-2); color: var(--accent); }
.contacto__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}
.contacto__summary-text { letter-spacing: 0.01em; }
.contacto__summary-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  position: relative;
  transition: transform var(--duration) var(--ease);
}
.contacto__summary-icon::before,
.contacto__summary-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.contacto__summary-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.contacto__details[open] .contacto__summary-icon { transform: rotate(45deg); }
.contacto__details[open] .contacto__summary {
  border-bottom: 1px solid var(--glass-border);
}
.contacto__details .contacto__form-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  padding-top: 1.25rem;
}
@media (prefers-reduced-motion: no-preference) {
  .contacto__details[open] .contacto__form-wrap {
    animation: contacto-reveal var(--duration) var(--ease) both;
  }
}
@keyframes contacto-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.contacto__reaseguros {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.8rem;
}
.contacto__reaseguros > div {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
  font-size: 1rem;
}
.contacto__reaseguros > div::before {
  content: "";
  position: absolute; left: 0; top: 0.15em;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--accent-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 76% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 76% no-repeat;
}

.contacto__form-wrap {
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -40px var(--glow-violet);
}
.contacto__form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--text);
}
.contacto__form-sub { margin-top: 0.5rem; color: var(--muted); font-size: 0.96rem; }
.contacto__form { margin-top: 1.6rem; display: grid; gap: 1rem; }

.field { display: grid; gap: 0.4rem; }
.field__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
}
.field__input {
  font: inherit;
  color: var(--text);
  background: oklch(15.1% 0.030 261.9 / 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  width: 100%;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.field__input::placeholder { color: oklch(63.1% 0.041 262.0 / 0.7); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(75.4% 0.139 232.7 / 0.2);
}
.field__input--area { resize: vertical; min-height: 6.5rem; }
.field__note { font-size: 0.84rem; color: var(--muted); }

.cf-turnstile { min-height: 1px; }

/* Slot de error: solo destaca cuando tiene contenido */
.form-error {
  color: oklch(70% 0.18 25);
  font-size: 0.9rem;
  min-height: 0;
}
.form-error:empty { display: none; }

/* Estados del form (los aplica submit.js) */
.contacto__form.is-sending .btn[type="submit"] { opacity: 0.7; }
.contacto__form-foot {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--accent);
  display: none;
}
.contacto__form.is-sent .contacto__form-foot { display: block; }

/* -------------------------------- FOOTER --------------------------------- */
.footer {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 48rem) {
  .footer__top { grid-template-columns: 1.6fr 1fr auto; }
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}
.footer__tagline {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 24rem;
  font-size: 0.98rem;
}
.footer__nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__link {
  color: var(--muted);
  font-size: 0.96rem;
  width: fit-content;
  transition: color var(--duration) var(--ease);
}
.footer__link:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ------------------------- REVEAL (Emil Kowalski: blur + lift) ----------- */
/* Entrada con caracter fisico: distancia corta (16px) + duracion larga (700ms)
   + blur de entrada (10px->0) + strong ease-out. Se siente "pesado", no un salto.
   --ease-reveal y --dur-reveal son tokens propios del reveal (ver :root). */
/* Estado final con .is-visible EN EL PROPIO child (no en la seccion): el JS lo
   agrega por elemento — a cada card de grilla cuando ELLA entra en viewport, y a
   los titulos/lead cuando su seccion entra. Asi la animacion siempre se ve al
   llegar (no corre con stagger acumulado fuera de vista). */
[data-reveal-child] {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity var(--dur-reveal) var(--ease-reveal),
    transform var(--dur-reveal) var(--ease-reveal),
    filter var(--dur-reveal) var(--ease-reveal);
  will-change: transform, opacity, filter;
}
[data-reveal-child].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: auto; /* soltar capas de compositor tras revelar */
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced motion = mas gentil, no cero: conserva opacity, quita movimiento y blur. */
  [data-reveal-child] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 200ms var(--ease-reveal);
  }
}

/* =========================================================================
   PAGINAS DE SERVICIO (servicio-*.html)
   Reusan tokens, glass, container y gutter. Comparten esta misma hoja.
   Secciones: svc-hero -> svc-features -> svc-steps -> svc-form-sec.
   Animan SOLO transform/opacity/filter (reveal heredado de [data-reveal]).
   ========================================================================= */
.svc-hero, .svc-features, .svc-steps, .svc-form-sec {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--space-section);
}

/* ---- Breadcrumb a inicio ---- */
.svc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.svc-breadcrumb a {
  color: var(--muted);
  transition: color var(--duration) var(--ease);
}
.svc-breadcrumb a:hover { color: var(--accent); }
.svc-breadcrumb [aria-current="page"] { color: var(--text); }
.svc-breadcrumb-sep { color: var(--line); }

/* ---- Hero del servicio ---- */
.svc-hero {
  padding-top: clamp(7rem, 5rem + 9vw, 11rem);
  overflow: clip;
}
.svc-hero__glow {
  position: absolute;
  top: -22%; left: 50%;
  width: min(64rem, 120vw);
  aspect-ratio: 1.6 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(45% 55% at 32% 40%, var(--glow-cyan), transparent 70%),
    radial-gradient(45% 55% at 70% 55%, var(--glow-violet), transparent 70%);
  filter: blur(22px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}
/* Movil: imagen arriba, texto debajo, centrado (una columna).
   Desktop (>=64rem): texto a la izquierda, imagen a la derecha, acotada. */
.svc-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  align-items: center;
  justify-items: center;
  text-align: center;
}
.svc-hero__visual { width: 100%; max-width: 34rem; }
.svc-hero__copy { max-width: 46rem; }
/* breadcrumb/actions centrados en movil (una columna) */
.svc-hero__copy .svc-breadcrumb { justify-content: center; }
.svc-hero__actions { justify-content: center; }

@media (min-width: 64rem) {
  .svc-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    justify-items: stretch;
    text-align: left;
    gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  }
  /* texto izquierda, foto derecha */
  .svc-hero__copy { order: 1; max-width: none; justify-self: start; }
  .svc-hero__visual { order: 2; width: 100%; max-width: 30rem; justify-self: end; }
  .svc-hero__copy .svc-breadcrumb { justify-content: flex-start; }
  .svc-hero__actions { justify-content: flex-start; }
  .svc-hero__lead { margin-inline: 0; }
}
.svc-hero__kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  margin-bottom: 1.4rem;
}
.svc-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
.svc-hero__title-accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-hero__lead {
  margin-top: 1.4rem;
  font-size: var(--text-lead);
  color: var(--text);
  max-width: 40rem;
}
.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}
.svc-hero__price { margin-top: 1.2rem; font-size: 0.95rem; color: var(--muted); }
.svc-hero__price strong { color: var(--accent); font-weight: 600; }

/* Visual del hero: imagen si existe, placeholder elegante si no */
.svc-hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: clip;
  background: linear-gradient(160deg, oklch(19.3% 0.040 261.4 / 0.7), oklch(15.1% 0.030 261.9 / 0.55));
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px -42px var(--glow-violet);
}
.svc-hero__visual img { width: 100%; height: auto; }
.svc-hero__placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.svc-hero__placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 30% 25%, var(--glow-cyan), transparent 65%),
    radial-gradient(60% 60% at 75% 80%, var(--glow-violet), transparent 65%);
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
}
.svc-hero__placeholder-mark {
  width: clamp(4rem, 2rem + 8vw, 7rem);
  height: clamp(4rem, 2rem + 8vw, 7rem);
  border-radius: var(--radius-lg);
  background: var(--accent-grad);
  box-shadow: 0 0 60px -8px var(--glow-cyan);
}

/* ---- Features (qué incluye) — split icon-list editorial, sin caja de card ---- */
.svc-feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 1.2rem + 2vw, 3rem) clamp(2rem, 1.4rem + 2.5vw, 4rem);
}
@media (min-width: 56rem) { .svc-feat-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-feat-grid--4 { }

/* cada feature = marcador a la izquierda + título/body a la derecha, en fila */
.svc-feat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(1rem, 0.7rem + 0.8vw, 1.5rem);
  align-items: start;
  padding-bottom: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
/* última fila de cada columna sin borde inferior */
.svc-feat:nth-last-child(-n + 1),
.svc-feat:nth-last-child(2):nth-child(odd) { border-bottom: none; padding-bottom: 0; }
@media (max-width: 55.99rem) {
  .svc-feat:last-child { border-bottom: none; padding-bottom: 0; }
  .svc-feat:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); padding-bottom: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem); }
}

/* marcador circular con número (no card, no fondo grande) */
.svc-feat__num {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.6rem, 2.2rem + 1vw, 3.2rem);
  height: clamp(2.6rem, 2.2rem + 1vw, 3.2rem);
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.15rem);
  line-height: 1;
  background-clip: padding-box;
  color: var(--accent);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.svc-feat:hover .svc-feat__num {
  border-color: var(--accent);
  box-shadow: 0 0 18px -2px var(--glow-cyan);
}
.svc-feat__title {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--text);
  margin: 0 0 0.4rem;
  align-self: center;
}
.svc-feat__body { grid-column: 2; color: var(--text-soft); font-size: 1.12rem; line-height: 1.6; margin: 0; }

/* Foto 3D del beneficio (glass render, mismo lenguaje visual que steps/hero).
   Va en la columna del texto (col 2), bajo el body, casi centrada (corrida un cachito
   a la izquierda con position:relative para no chocar con el transform del hover), aspect 3/2. */
.svc-feat__pic {
  grid-column: 2;
  display: block;
  position: relative;
  right: 1rem;
  margin-top: clamp(0.85rem, 0.6rem + 0.6vw, 1.25rem);
  margin-inline: auto;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: clip;
  border: 1px solid var(--glass-border);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.svc-feat__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-feat:hover .svc-feat__pic {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ---- Steps (cómo funciona) — vertical timeline ---- */
.svc-steps__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  padding-left: clamp(2.5rem, 2rem + 1vw, 3.5rem);
}
/* Connector line: runs down the center of the number circles, behind them.
   Insets at top/bottom so it spans from the first circle center to the last. */
.svc-steps__grid::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: clamp(1.3rem, 1rem + 0.5vw, 1.75rem);
  width: 2px;
  background: var(--accent-grad);
  opacity: 0.45;
  border-radius: 1px;
  z-index: 0;
}

.svc-step {
  position: relative;
  z-index: 1;
}
.svc-step__num {
  position: absolute;
  top: 0;
  left: calc(-1 * clamp(2.5rem, 2rem + 1vw, 3.5rem));
  width: clamp(2.4rem, 2.1rem + 0.8vw, 3rem);
  height: clamp(2.4rem, 2.1rem + 0.8vw, 3rem);
  transform: translateX(-50%);
  margin-left: clamp(1.3rem, 1rem + 0.5vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--glass-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.05rem);
  line-height: 1;
  background-clip: padding-box;
  z-index: 2;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
/* Gradient-filled number text inside the circle */
.svc-step__num {
  color: var(--accent);
}
.svc-step:hover .svc-step__num {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow-cyan), 0 0 18px -2px var(--glow-cyan);
}
.svc-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.svc-step__body { color: var(--muted); font-size: 1.02rem; }

/* Foto 3D del paso (glass render, reuso del lenguaje visual de los hero).
   Movil: apilada bajo el texto, ancho completo, aspect 3/2.
   Desktop (>=64rem): el step pasa a 2-col (texto izq / foto der acotada). */
.svc-step__pic {
  display: block;
  margin-top: 1rem;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: clip;
  border: 1px solid var(--glass-border);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.svc-step__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-step:hover .svc-step__pic {
  transform: translateY(-2px);
  border-color: var(--accent);
}
@media (min-width: 64rem) {
  /* 2-col: texto (titulo+body pegados, al top) izq / foto der (al top). El num sigue
     absolute sobre la linea del timeline, no participa del grid de columnas. */
  .svc-step {
    display: grid;
    grid-template-columns: 1fr minmax(14rem, 20rem);
    align-items: start;
    column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  }
  .svc-step__title { grid-column: 1; grid-row: 1; }
  .svc-step__body  { grid-column: 1; grid-row: 2; align-self: start; }
  .svc-step__pic   { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: start; }
}

/* ---- CTA final + form colapsado ---- */
.svc-form-sec { position: relative; overflow: clip; }
.svc-form-sec__glow {
  position: absolute;
  bottom: -30%; left: 50%;
  width: min(60rem, 120vw);
  aspect-ratio: 1.8 / 1;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 50%, var(--glow-violet), transparent 70%);
  filter: blur(26px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.svc-form-sec__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.svc-form-sec__reaseguros {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.svc-form-sec__reaseguros > div {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
  font-size: 1rem;
}
.svc-form-sec__reaseguros > div::before {
  content: "";
  position: absolute; left: 0; top: 0.15em;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--accent-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 76% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 76% no-repeat;
}

/* =========================================================================
   PAGINA LEGAL (privacidad.html)
   Contenedor centrado y angosto para lectura comoda. Reusa tokens, container
   y gutter. Anima SOLO transform/opacity/filter (reveal heredado).
   ========================================================================= */
.legal {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--space-section);
}
.legal__head {
  margin-bottom: var(--space-block);
}
.legal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}
.legal__meta {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.legal__body {
  color: var(--muted);
  font-size: 1.05rem;
}
.legal__body > p {
  margin-top: 1rem;
}
.legal__body > p:first-child {
  margin-top: 0;
}
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2.4rem;
}
.legal__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: opacity var(--duration) var(--ease);
}
.legal__body a:hover,
.legal__body a:focus-visible {
  opacity: 0.75;
}
.legal__cta {
  margin-top: var(--space-block);
}

/* ---- Servicios relacionados (enlazado interno entre paginas de servicio) ---- */
.svc-related {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: var(--space-section);
}
.svc-related__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--text);
  margin: 0 0 var(--space-block);
}
.svc-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 0.7rem + 1vw, 1.5rem);
}
@media (min-width: 48rem) {
  .svc-related__grid { grid-template-columns: repeat(3, 1fr); }
}
.svc-related__card {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.svc-related__card:hover,
.svc-related__card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
}
