/* ==========================================================================
   GEA — Planes familiares Villa María
   Fase 2. Tokens según .rules/design.md
   ========================================================================== */

:root {
  /* Color */
  --c-primary: #f4631e;
  --c-primary-hover: #d9531a;
  --c-primary-ink: #c4470f;    /* naranja para TEXTO sobre claro: 4,5:1 sobre surface */
  --c-primary-soft: #ffa96e;
  --c-navy: #10375c;
  --c-navy-deep: #0b2a47;
  --c-ink-soft: #3a5673;       /* texto secundario sobre claro: 7:1 sobre surface */
  --c-teal: #309898;
  --c-yellow: #f3c623;
  --c-surface: #f4f6ff;
  --c-white: #ffffff;
  --c-dark: #0d0d10;
  --c-line: rgba(16, 55, 92, 0.14);
  --c-error: #b42318;
  --gradient: linear-gradient(60deg, #ff4723, #fe9b25);

  /* Tipografía */
  --font-display: "forma-djr-deck", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --fs-display: clamp(48px, 7vw, 96px);
  --fs-h1: clamp(40px, 5.5vw, 72px);
  --fs-h2: clamp(32px, 4vw, 52px);
  --fs-h3: clamp(22px, 2.4vw, 32px);
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;

  /* Radios */
  --r-pill: 999px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Layout */
  --container: 1280px;
  --gutter: 20px;
  --section-gap: 64px;
  --header-h: 72px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-header: cubic-bezier(0.38, 0.005, 0.215, 1);
  --dur-micro: 0.25s;

  --shadow-soft: 0 24px 60px -24px rgba(16, 55, 92, 0.25);
  --shadow-photo: 0 40px 80px -40px rgba(16, 55, 92, 0.45);

  /* Banda de highlight: forma del "subrayado" del manual */
  --hl-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 214.42 82.12' preserveAspectRatio='none'%3E%3Cpath d='M213.73,0c1.55,10.14,0,66.92,0,66.92L2.02,82.12S-2.53,6.08,2.02,6.08,213.73,0,213.73,0'/%3E%3C/svg%3E");
}

@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 80px; --section-gap: 120px; } }

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-navy);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-primary-soft); color: var(--c-navy); }

:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; background: var(--c-navy); color: var(--c-white);
  border-radius: var(--r-pill); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-gap); }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Tipografía ------------------------------------------------------------ */
.display, .h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.03em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.12; }
.h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
/* Máscara para el revelado por líneas: deja aire para descendentes y la banda */
.line { display: block; overflow: clip; padding: 0.06em 0.12em 0.1em; margin: -0.06em -0.12em -0.1em; }
.line__inner { display: block; }
.lead { font-size: var(--fs-body-lg); color: var(--c-ink-soft); max-width: 46ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-ink-soft); margin-bottom: 20px;
}
.eyebrow .icon { color: var(--c-primary); }
.eyebrow__mark { width: 18px; height: 18px; fill: var(--c-primary); }
.disclaimer { font-size: 12px; color: var(--c-ink-soft); }

/* Highlight strip (firma de campaña) ------------------------------------ */
.hl { position: relative; display: inline-block; padding: 0 0.16em; isolation: isolate; white-space: nowrap; }
.hl__bg {
  position: absolute; inset: 0.04em -0.06em -0.08em; z-index: -1;
  background: var(--hl-bg);
  -webkit-mask: var(--hl-mask) center / 100% 100% no-repeat;
  mask: var(--hl-mask) center / 100% 100% no-repeat;
  transform: rotate(-1.2deg);
}
.hl__text { position: relative; }
.hl--orange { --hl-bg: var(--c-primary); color: var(--c-white); }
.hl--navy { --hl-bg: var(--c-navy); color: var(--c-white); }
.hl--yellow { --hl-bg: var(--c-yellow); color: var(--c-navy); }

/* Botones --------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 32px;
  background: var(--c-primary); color: var(--c-white);
  font-family: var(--font-body); font-weight: 700; font-size: 19px; line-height: 1.1;
  text-decoration: none; text-align: center;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
/* Hover tipo shader: mesh gradient en movimiento + franja de luz (shimmer) + grano.
   Solo CSS, sin seguir al cursor. Los colores salen de la paleta del shader oscuro. */
.btn::before {
  content: ""; position: absolute; inset: -60% -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 20% 30%, #ff4723 0%, transparent 70%),
    radial-gradient(35% 55% at 80% 70%, #a6300c 0%, transparent 70%),
    radial-gradient(30% 50% at 60% 20%, rgba(254, 155, 37, 0.3) 0%, transparent 70%),
    var(--c-primary-hover);
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 28%, rgba(255, 240, 225, 0.12) 38%, rgba(255, 244, 232, 0.45) 45%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 244, 232, 0.45) 55%, rgba(255, 240, 225, 0.12) 62%, transparent 72%) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27120%27 height=%27120%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.32 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
  background-size: 300% 100%, 120px 120px;
  background-position: 150% 0, 0 0;
  opacity: 0; mix-blend-mode: overlay; transition: opacity 0.4s var(--ease-out);
}
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn:hover, .btn:focus-visible { box-shadow: 0 14px 30px -14px rgba(255, 71, 35, 0.85); }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; animation: btn-mesh 5s ease-in-out infinite alternate; }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; animation: btn-shimmer 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.btn:hover .icon, .btn:focus-visible .icon { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
@keyframes btn-mesh {
  0%   { transform: translate3d(-6%, 4%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, -6%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-3%, 6%, 0) rotate(-6deg) scale(1.02); }
}
@keyframes btn-shimmer {
  0%        { background-position: 150% 0, 0 0; }
  70%, 100% { background-position: -50% 0, 0 0; }
}
.btn--sm { min-height: 44px; padding: 10px 22px; }
.btn--block { width: 100%; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform 0.3s var(--ease-header), background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { background: rgba(244, 246, 255, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--c-line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; text-decoration: none; border-radius: var(--r-sm); }
.brand__logo { height: 46px; width: auto; }
@media (min-width: 768px) { .brand__logo { height: 56px; } }
@media (max-width: 380px) { .site-header .btn--sm { padding: 10px 16px; } .brand__logo { height: 40px; } }

/* Media frames ---------------------------------------------------------- */
.media-frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--c-primary-soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.media-frame:hover img { transform: scale(1.03); }
/* Tratamiento de campaña: halos naranjas (oscurecer) */
.media-frame__texture {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 100% 0%, rgba(255, 71, 35, 0.32), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(254, 155, 37, 0.28), transparent 70%);
  mix-blend-mode: darken;
}

/* Trazos de luz --------------------------------------------------------- */
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trail path { fill: none; stroke: url(#trail-grad); stroke-linecap: round; }
.trail__line { stroke-width: 2.4; }
.trail__line--thin { stroke-width: 1.2; opacity: 0.8; }
.trail__glow { stroke-width: 10; opacity: 0.55; filter: url(#trail-glow); }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--c-surface) url("../images/texturas/degradado-2.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero__bg canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.trail--hero { z-index: -1; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title { margin-bottom: 28px; }
.hero__lead { margin-bottom: 20px; }
.hero__promo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 32px; line-height: 1.3; color: var(--c-navy); margin-bottom: 28px; }
@media (max-width: 959px) { .hero__promo { font-size: 26px; line-height: 1; } }
.hero__promo sup { color: var(--c-primary-ink); }
.hero__promo-spark { width: 18px; height: 27px; fill: var(--c-primary); flex: none; }
.hero__disclaimer { margin-top: 20px; }

.hero__media { position: relative; padding: 0 0 56px 0; }
.hero__main { aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-photo); border-radius: var(--r-xl); }
.hero__main img { object-position: 60% 50%; }
.hero__aside {
  position: absolute; left: -4px; bottom: 0; width: 42%; aspect-ratio: 4 / 3;
  border: 5px solid var(--c-white); border-radius: var(--r-lg); box-shadow: var(--shadow-photo);
}
.promo-badge {
  position: absolute; right: -6px; top: -22px;
  width: 112px; aspect-ratio: 114.32 / 118.65; display: grid; place-items: center;
  color: var(--c-primary);
}
.promo-badge__shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 14px 22px rgba(244, 99, 30, 0.4)); }
.promo-badge__big { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; line-height: 1; color: var(--c-white); }


@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
  .hero__main { aspect-ratio: 4 / 3.6; max-height: 70svh; width: 100%; }
  .hero__media { padding: 0; }
  .hero__aside { width: 38%; left: -16%; bottom: -36px; }
  .promo-badge { width: 160px; right: -28px; top: -40px; }
  .promo-badge__big { font-size: 54px; }
}

/* Propuesta de valor ---------------------------------------------------- */
.value { position: relative; padding-top: var(--section-gap); }
.value__intro { display: grid; gap: 32px; margin-bottom: 72px; }
.value__intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
@media (min-width: 960px) { .value__intro { grid-template-columns: 1.5fr 1fr; align-items: end; column-gap: 64px; } }
.value__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 7.4vw, 112px); line-height: 0.98; letter-spacing: -0.035em; max-width: 13ch; }
.value__sub { max-width: 22ch; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; color: var(--c-navy); padding-bottom: 0.3em; }

.expand { position: relative; }
.expand__stage { position: relative; padding-inline: var(--gutter); }
.expand__frame { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4 / 5; color: var(--c-white); }
.expand__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.expand__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 42, 71, 0) 35%, rgba(11, 42, 71, 0.55) 62%, rgba(11, 42, 71, 0.9) 100%), linear-gradient(90deg, rgba(11, 42, 71, 0.45), rgba(11, 42, 71, 0) 60%); }
.expand__content { position: absolute; inset: auto 0 0; display: grid; gap: 24px; justify-items: start; padding-block: 40px; }
.expand__claim { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.035em; }
.expand .stat__value { color: var(--c-white); }
.expand .stat__prefix { color: var(--c-primary-soft); }
.expand .stat__label { color: rgba(255, 255, 255, 0.9); }
@media (min-width: 768px) {
  .expand__frame { aspect-ratio: 16 / 9; }
  .expand__content { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .expand__claim { grid-column: 1 / -1; }
}
/* Con JS y motion: el escenario queda fijo y la foto crece hasta ocupar la pantalla */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .js .expand__stage { height: 100svh; padding: 0; }
  .js .expand__frame { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
}

/* Stat ------------------------------------------------------------------ */
.stat { display: grid; gap: 4px; }
.stat__value { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; color: var(--c-navy); font-variant-numeric: tabular-nums; }
.stat__prefix { color: var(--c-primary-ink); font-weight: 500; }
.stat__label { color: var(--c-ink-soft); font-size: var(--fs-body-lg); }

.stat--ring { position: relative; width: 240px; aspect-ratio: 1; place-content: center; text-align: center; padding: 32px; }
.stat__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.stat__ring circle { fill: none; stroke-width: 3; }
.stat__ring-track { stroke: var(--c-line); }
.stat__ring-bar { stroke: var(--c-primary); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.stat__ring circle.stat__ring-dot { fill: var(--c-primary); stroke: none; transform-origin: 60px 60px; }
.stat--ring .stat__value { font-size: 76px; }
.stat--ring .stat__label { font-size: var(--fs-small); max-width: 14ch; margin-inline: auto; }

/* Section head / CTA ---------------------------------------------------- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .h2 { margin-bottom: 16px; }
.section-cta { display: flex; justify-content: center; margin-top: 56px; }

/* Beneficios (bento) ---------------------------------------------------- */
.bento { display: grid; gap: 16px; }
.bento__item {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: start; gap: 12px;
  min-height: 180px; padding: 28px; border-radius: var(--r-lg);
  background: var(--c-white); border: 1px solid var(--c-line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.bento__item--feature, .bento__item--photo { clip-path: inset(0 round var(--r-lg)); }
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.bento__item p { color: var(--c-ink-soft); }
.bento__icon {
  width: 44px; height: 44px; margin-bottom: 12px; color: var(--c-primary);
  fill: none; stroke: currentColor; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}
.bento__icon-dot { fill: currentColor; stroke: none; }
.bento__item:hover .bento__icon { transform: translateY(-3px) rotate(-6deg); }
.bento__media { position: absolute; inset: 0; z-index: -2; }
.bento__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.bento__item:hover .bento__media img { transform: scale(1.03); }
.bento__item--feature, .bento__item--photo { color: var(--c-white); border-color: transparent; align-content: end; background: var(--c-navy); }
.bento__item--feature::after, .bento__item--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 42, 71, 0) 25%, rgba(11, 42, 71, 0.9) 100%);
}
.bento__item--feature .bento__icon, .bento__item--photo .bento__icon { color: var(--c-primary-soft); }
.bento__item--feature { min-height: 420px; }
.bento__item--photo { min-height: 260px; }
.bento__body { display: grid; gap: 8px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento__item--feature { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); gap: 20px; }
  .bento__item--feature { grid-column: span 2; grid-row: span 2; padding: 44px; }
  .bento__item--feature .h3 { max-width: 18ch; font-size: clamp(28px, 2.8vw, 40px); }
}

/* Planes ---------------------------------------------------------------- */
.plans__head { display: grid; gap: 24px; max-width: none; }
@media (min-width: 900px) { .plans__head { grid-template-columns: 1fr auto; align-items: end; } }
.plans__promo { display: flex; gap: 14px; align-items: flex-start; max-width: 380px; }
.plans__promo > span { display: grid; gap: 4px; }
.plans__promo strong { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); font-weight: 700; color: var(--c-primary-ink); line-height: 1.15; }
.plans__promo-spark { width: 26px; height: 38px; fill: var(--c-primary); flex: none; }
.plans__grid { display: grid; gap: 24px; }
.plan {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 32px;
  padding: 32px 28px; border-radius: var(--r-xl);
  background: var(--c-white); border: 1px solid var(--c-line);
}
.plan__name { font-family: var(--font-display); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.plan__num { display: block; font-size: 88px; }
@media (max-width: 899px) { .plan__num { font-size: 60px; } }
.plan__brand { display: block; font-size: var(--fs-small); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: 12px; }
.plan__list { display: grid; gap: 14px; }
.plan__list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; }
.plan__list .icon { color: var(--c-primary); margin-top: 3px; }
.plan--dark { background: var(--c-navy); color: var(--c-white); border-color: transparent; }
.plan--dark .plan__brand { color: rgba(255, 255, 255, 0.78); }
.plan--dark .plan__list li { color: rgba(255, 255, 255, 0.92); }
.plan--dark .plan__list .icon { color: var(--c-primary-soft); }
.plan--dark :focus-visible { outline-color: var(--c-white); }
.plan__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(255, 71, 35, 0.5), transparent 70%),
    radial-gradient(50% 35% at 0% 100%, rgba(254, 155, 37, 0.22), transparent 70%);
}
@media (min-width: 900px) { .plans__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } .plan { padding: 48px; } }
/* Acordeón de planes en mobile: el JS suma .plan--collapsible solo por debajo de 900px */
.plan__head { position: relative; }
.plan--collapsible { gap: 0; }
.plan--collapsible .plan__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.plan--collapsible .plan__toggle:not([hidden]) {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--c-surface); color: var(--c-navy); cursor: pointer;
  transition: background-color var(--dur-micro), transform 0.3s var(--ease-out);
}
.plan--collapsible .plan__toggle::after { content: ""; position: absolute; inset: -32px -28px; } /* toda la cabecera es clickeable */
.plan--collapsible .plan__toggle:active { transform: scale(0.94); }
.plan--dark.plan--collapsible .plan__toggle:not([hidden]) { background: rgba(255, 255, 255, 0.12); color: var(--c-white); }
.plan__chevron { width: 22px; height: 22px; fill: currentColor; transition: transform 0.5s var(--ease-out); }
.plan__toggle[aria-expanded="true"] .plan__chevron { transform: rotate(180deg); }
.plan--collapsible .plan__body { display: grid; grid-template-rows: 1fr; margin-bottom: 28px; transition: grid-template-rows 0.55s var(--ease-out); }
.plan--collapsible .plan__body-inner { min-height: 0; overflow: hidden; padding-top: 28px; transition: opacity 0.4s var(--ease-out), visibility 0s; }
.plan--collapsible.is-collapsed .plan__body { grid-template-rows: 0fr; }
.plan--collapsible.is-collapsed .plan__body-inner { opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.55s; }
@media (prefers-reduced-motion: reduce) { .plan--collapsible .plan__body, .plan--collapsible .plan__body-inner, .plan__chevron { transition: none; } }

/* Prestadores ----------------------------------------------------------- */
.providers__head { display: grid; gap: 40px; align-items: center; margin-bottom: 64px; }
.providers__head .h2 { margin-bottom: 16px; }
@media (min-width: 900px) { .providers__head { grid-template-columns: 1fr auto; } }

.marquee {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  cursor: grab;
}
.marquee:active { cursor: grabbing; }
.marquee .swiper-wrapper { transition-timing-function: linear !important; margin: 0; }
.marquee__item {
  width: auto !important; height: 120px; padding: 0 40px;
  display: grid; place-items: center;
  border-radius: var(--r-lg); background: var(--c-white); border: 1px solid var(--c-line);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.marquee__item:hover { border-color: rgba(244, 99, 30, 0.4); box-shadow: var(--shadow-soft); }
.marquee__item img { height: 64px; width: auto; max-width: 220px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.logo-ph { font-weight: 600; font-size: 17px; color: var(--c-navy); white-space: nowrap; user-select: none; }
.marquee:not(.swiper-initialized) .swiper-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-inline: var(--gutter); }

/* Contacto -------------------------------------------------------------- */
.contact { isolation: isolate; overflow: clip; background: var(--c-white); }
.contact:focus { outline: none; }
.contact__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 42% at 100% 0%, rgba(244, 99, 30, 0.55), rgba(255, 169, 110, 0.25) 45%, transparent 75%),
    radial-gradient(34% 40% at 0% 100%, rgba(254, 155, 37, 0.4), rgba(255, 169, 110, 0.15) 50%, transparent 78%),
    var(--c-surface);
}
.contact__grid { display: grid; gap: 48px; align-items: start; }
.contact__title { position: relative; margin-bottom: 20px; }
.contact__quote, .contact__intro .eyebrow { display: none; }
.contact__media { margin-top: 40px; aspect-ratio: 3 / 2; max-width: 520px; display: none; }
@media (min-width: 1024px) { .contact__media { display: block; } }
.form-card { position: relative; padding: 28px 20px; border-radius: var(--r-xl); background: var(--c-white); box-shadow: 0 40px 100px -40px rgba(16, 55, 92, 0.35); border: 1px solid var(--c-line); }
@media (min-width: 768px) { .form-card { padding: 44px; } }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
}

.form__grid { display: grid; gap: 20px; margin-bottom: 28px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 15px; }
.field__optional { font-weight: 400; color: var(--c-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 10px;
  border: 1.5px solid rgba(16, 55, 92, 0.28); border-radius: var(--r-sm);
  background: var(--c-surface); font-size: 16px;
  transition: border-color var(--dur-micro), background-color var(--dur-micro), box-shadow var(--dur-micro);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(16, 55, 92, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-navy); background: var(--c-white); box-shadow: 0 0 0 4px rgba(244, 99, 30, 0.18); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__hint { display: none; }
.field__error { font-size: 13px; font-weight: 500; color: var(--c-error); }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--c-navy); border-bottom: 2px solid var(--c-navy);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.form-success { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 48px 8px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__check { width: 88px; height: 88px; margin-bottom: 8px; }
.form-success__check circle, .form-success__check path { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success__ring { stroke: var(--c-teal); }
.form-success__tick { stroke: var(--c-primary); }
.form-success p { color: var(--c-ink-soft); max-width: 36ch; }

/* FAQ ------------------------------------------------------------------- */
.faq__grid { display: grid; gap: 40px; }
.faq__title { margin-bottom: 32px; font-size: clamp(40px, 5vw, 72px); }
.media-frame--faq { aspect-ratio: 3 / 2; }
.faq__intro { margin-bottom: 24px; font-size: 20px; color: var(--c-navy); }
.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 17px; line-height: 1.35;
  transition: color 0.3s;
}
.accordion__item summary:hover { color: var(--c-primary-ink); }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { width: 22px; height: 22px; fill: var(--c-primary); flex: none; transition: transform 0.4s var(--ease-out); }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); }
.accordion__body { overflow: hidden; }
.accordion__body p { padding: 0 40px 26px 0; color: var(--c-ink-soft); }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 1fr 1.65fr; gap: 80px; }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .accordion__item summary { font-size: 17px; }
}

/* Esquinas que se aplanan al llegar arriba (wisprflow) ------------------ */
.js [data-corners] { border-radius: var(--corner-top, 0px) var(--corner-top, 0px) 0 0; }

/* CTA final ------------------------------------------------------------- */
.final-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--c-dark); color: var(--c-white); padding-block: calc(var(--section-gap) * 1.4); }
.final-cta__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(45% 60% at 85% 100%, rgba(255, 71, 35, 0.55), transparent 70%),
    radial-gradient(35% 50% at 10% 0%, rgba(254, 155, 37, 0.3), transparent 70%),
    var(--c-dark);
}
.final-cta__bg canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.trail--final { z-index: -1; }
.final-cta__mark { position: absolute; right: 8%; top: 16%; width: clamp(64px, 9vw, 140px); height: auto; aspect-ratio: 125.2 / 118.65; fill: var(--c-primary); z-index: -1; }
.final-cta__inner { position: relative; display: grid; gap: 48px; justify-items: start; }
.final-cta__title { font-size: clamp(48px, 8vw, 120px); }
.final-cta :focus-visible { outline-color: var(--c-white); }

/* Footer ---------------------------------------------------------------- */
.site-footer { padding-block: 64px 32px; background: var(--c-white); font-size: var(--fs-small); color: var(--c-ink-soft); }
.site-footer__brand { margin-bottom: 40px; }
.site-footer__logo { height: 48px; width: auto; }
.regulatory { display: grid; gap: 24px; align-items: center; padding-block: 28px; border-block: 1px solid var(--c-line); margin-bottom: 24px; }
.regulatory__seals { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.seal { height: 72px; width: auto; }
.seal--sss { height: 44px; }
.regulatory__legend { max-width: 80ch; }
@media (min-width: 768px) { .regulatory { grid-template-columns: auto 1fr; gap: 48px; } }

/* Estados iniciales de la intro (solo con JS y sin reduced-motion) ----- */
@media (prefers-reduced-motion: no-preference) {
  /* Solo hasta que arranca GSAP (agrega .anim-ready y fija sus propios estados) */
  .js:not(.anim-ready) [data-hero-line] { transform: translateY(115%); }
  .js:not(.anim-ready) [data-hero-item], .js:not(.anim-ready) [data-hero-badge], .js:not(.anim-ready) [data-hero-frame] { opacity: 0; }
  .js:not(.anim-ready) .hero .hl__bg { clip-path: inset(0 100% 0 0); }
}

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .btn:active, .bento__item:hover { transform: none; }
  .btn:hover::after, .btn:focus-visible::after { opacity: 0; } /* sin franja que se mueve: queda el mesh quieto */
  .media-frame:hover img, .bento__item:hover .bento__media img { transform: none; }
}

/* Velo claro detrás del texto del hero: garantiza contraste AA sobre el shader */
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 80% at 18% 52%, rgba(244, 246, 255, 0.92) 0%, rgba(244, 246, 255, 0.7) 45%, rgba(244, 246, 255, 0) 80%);
}
/* Velo oscuro detrás del título del CTA final */
.final-cta__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 80% at 20% 50%, rgba(13, 13, 16, 0.75), rgba(13, 13, 16, 0) 75%);
}

/* Check del mensaje de éxito que se dibuja */
.form-success__ring, .form-success__tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) .form-success__ring { animation: draw 0.9s var(--ease-out) both; }
  .form-success:not([hidden]) .form-success__tick { animation: draw 0.6s var(--ease-out) 0.5s both; }
  .form-success:not([hidden]) > :not(svg) { animation: rise 0.7s var(--ease-out) 0.3s both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) {
  .hero__bg::after { background: linear-gradient(180deg, rgba(244, 246, 255, 0.9) 0%, rgba(244, 246, 255, 0.82) 50%, rgba(244, 246, 255, 0) 72%); }
}
