/* =========================================================
   CELYA Estrena — estilos
   Paleta y tipografías tomadas del Manual de Marca 2025.
   ========================================================= */

/* ---------- Tipografías (auto-alojadas en /fonts, subset latin) ----------
   Poppins 600/700/800 y Work Sans 400/500/600 de @fontsource 5.3.0 (licencia
   OFL en /fonts). Mientras cargan se ve un respaldo del sistema escalado para
   ocupar lo mismo (size-adjust medido con el texto de la página), así el
   cambio de fuente casi no mueve el layout: Arial en escritorio e iOS, Roboto
   en Android. Los anchos en ch sí cambian con la fuente: usa em (ver README).
   Si cambias el texto o las fuentes, vuelve a calibrar (ver README). */
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/poppins-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/work-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/work-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/work-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Respaldos calibrados. Los pesos 600+ usan la versión Bold del respaldo. */
@font-face {
  font-family: "Poppins Fallback Arial";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 103.3%; ascent-override: 101.7%; descent-override: 33.9%; line-gap-override: 9.7%;
}
@font-face {
  font-family: "Poppins Fallback Arial";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 106.6%; ascent-override: 98.5%; descent-override: 32.8%; line-gap-override: 9.4%;
}
@font-face {
  font-family: "Poppins Fallback Arial";
  font-weight: 800;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 93.9%; ascent-override: 111.8%; descent-override: 37.3%; line-gap-override: 10.6%;
}
@font-face {
  font-family: "Work Sans Fallback Arial";
  font-weight: 400 500;
  src: local("Arial"), local("ArialMT");
  size-adjust: 109.2%; ascent-override: 85.2%; descent-override: 22.3%; line-gap-override: 0%;
}
@font-face {
  font-family: "Work Sans Fallback Arial";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 102.6%; ascent-override: 90.6%; descent-override: 23.7%; line-gap-override: 0%;
}
@font-face {
  font-family: "Poppins Fallback Roboto";
  font-weight: 600;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 112%; ascent-override: 93.8%; descent-override: 31.3%; line-gap-override: 8.9%;
}
@font-face {
  font-family: "Poppins Fallback Roboto";
  font-weight: 700;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 112.9%; ascent-override: 93%; descent-override: 31%; line-gap-override: 8.9%;
}
@font-face {
  font-family: "Poppins Fallback Roboto";
  font-weight: 800;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 97.5%; ascent-override: 107.7%; descent-override: 35.9%; line-gap-override: 10.3%;
}
@font-face {
  font-family: "Work Sans Fallback Roboto";
  font-weight: 400;
  src: local("Roboto"), local("Roboto Regular"), local("Roboto-Regular");
  size-adjust: 110.6%; ascent-override: 84.1%; descent-override: 22%; line-gap-override: 0%;
}
@font-face {
  font-family: "Work Sans Fallback Roboto";
  font-weight: 500;
  src: local("Roboto"), local("Roboto Regular"), local("Roboto-Regular");
  size-adjust: 109.4%; ascent-override: 85%; descent-override: 22.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "Work Sans Fallback Roboto";
  font-weight: 600;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 109.9%; ascent-override: 84.6%; descent-override: 22.1%; line-gap-override: 0%;
}

:root {
  /* Colores principales */
  --tinta: #05060B;      /* Pantone Black 6 C: titulares, fondos oscuros */
  --amarillo: #FFCD00;   /* Pantone 116 C: fondo predominante, acento */
  --blanco: #FFFFFF;
  /* Colores secundarios (apoyo y balance) */
  --menta: #EBF7F7;
  --pizarra: #333F48;    /* Pantone 432 C: textos secundarios */
  --petroleo: #005C60;   /* Pantone 3155 C: estados de éxito */
  --error: #B3261E;

  --tinta-70: rgb(5 6 11 / 0.7);
  --blanco-70: rgb(255 255 255 / 0.72);
  --linea: #D5DEE0;

  /* Tipografía: Poppins (creativa) en titulares, Work Sans (principal) en texto */
  --font-display: "Poppins", "Poppins Fallback Arial", "Poppins Fallback Roboto", system-ui, sans-serif;
  --font-body: "Work Sans", "Work Sans Fallback Arial", "Work Sans Fallback Roboto", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);

  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7rem);
  --max-width: 76rem;
  --radius: 22px;
  --franja: clamp(14px, 1.6vw, 22px);
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Las anclas quedan justo bajo el header fijo, sin asomar la sección anterior. */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
/* El lienzo es tinta: al estirar la página más allá del borde (rebote en iOS y
   macOS) arriba sigue el negro del hero, no un blanco. */
html { background: var(--tinta); }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }

/* Anillo de foco según la superficie: tinta sobre fondos claros y amarillos,
   amarillo sobre los oscuros. Así contrasta ≥3:1 con el fondo en toda la página. */
:root { --foco: var(--tinta); }
.site-header, .skip-link, .hero, .apply, .site-footer, .sticky-cta { --foco: var(--amarillo); }
.apply__card { --foco: var(--tinta); }
:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 4px;
  /* Al llegar con Tab a algo medio tapado por el header, el anillo queda completo
     (el scroll-padding solo deja libre el alto del header). */
  scroll-margin-block: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amarillo);
  color: var(--tinta);
  font-weight: 600;
  border-radius: 999px;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--tinta);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Solo con mouse: en pantallas táctiles el :hover queda pegado tras el toque. */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px rgb(5 6 11 / 0.35); }
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--small { min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
/* La flecha es decorativa: con texto alternativo vacío no se lee en voz alta.
   La primera declaración queda para navegadores que no soportan "/ alt". */
.link-arrow::after { content: " →"; content: " →" / ""; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--pizarra); }

/* ---------- La franja (elemento gráfico de marca) ---------- */
.franja {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}
.franja path {
  fill: none;
  stroke: var(--amarillo);
  stroke-width: var(--franja);
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Se dibuja al entrar en pantalla (ver js/main.js). Va por clase y no por
   [pathLength]: Chrome no vuelve a calcular ese selector al cambiar la clase del
   svg y la franja se quedaba sin dibujar. El hueco de 2 evita que la tapa redonda
   deje un punto suelto al final mientras no está dibujada. */
.js .franja__trazo {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.js .franja.is-drawn .franja__trazo { stroke-dashoffset: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(5 6 11 / 0.92);
  backdrop-filter: blur(10px);
  color: var(--blanco);
  /* El hero sube por detrás del header: su negro es lo que se ve a través de
     la transparencia (sobre el body blanco se veía gris). */
  margin-bottom: calc(-1 * var(--header-h));
}
/* Alto del header fijo: también define dónde quedan las anclas (scroll-padding). */
:root { --header-h: 4.25rem; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand img { width: 150px; }
.site-header .btn { flex: none; white-space: nowrap; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--blanco-70);
}
@media (hover: hover) {
  .site-nav a:hover { color: var(--blanco); }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}
/* Pantallas estrechas (320–380px): logo más chico para que el botón quepa en una línea.
   El botón no se encoge (flex: none); por debajo de ~340px cede el logo (104px en 320). */
@media (max-width: 380px) {
  .site-header__inner { gap: 0.75rem; }
  .brand img { width: 120px; }
  .site-header .btn { padding-inline: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--tinta);
  color: var(--blanco);
  overflow: hidden;
  padding-top: var(--header-h); /* el espacio que tapa el header (ver .site-header) */
}
.franja--hero {
  inset: -4% -10% 0 auto;
  width: min(70vw, 900px);
  height: 104%;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 5rem);
}
.hero__title {
  font-size: var(--step-3);
  font-weight: 700;
  max-width: 9.13em; /* = 14ch con Poppins; en em para que no cambie al llegar la fuente */
}
.hero__zero {
  display: block;
  margin-top: 0.35em;
  font-weight: 600;
  font-size: 0.62em;
  letter-spacing: -0.02em;
}
.hero__zero-num {
  display: inline-block;
  padding: 0.02em 0.22em 0.04em;
  margin-right: 0.12em;
  border-radius: 0.28em;
  background: var(--amarillo);
  color: var(--tinta);
  font-weight: 800;
  font-size: 2.1em;
  line-height: 1;
  letter-spacing: -0.05em;
  vertical-align: -0.12em;
  transform: rotate(-3deg);
}
.hero__zero sup { font-size: 0.55em; color: var(--amarillo); }
.hero__perks sup { line-height: 0; color: var(--amarillo); }
/* El asterisco lleva a la nota del footer (#condiciones) */
.hero__ref { position: relative; padding-inline: 0.15em; text-decoration: none; }
@media (hover: hover) {
  .hero__ref:hover { text-decoration: underline; }
}
/* Área táctil más amplia que el glifo, sin mover el texto */
.hero__ref::after { content: ""; position: absolute; inset: -0.6rem -0.5rem; }

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.hero__perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.hero__perks li::before {
  content: "";
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--amarillo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2305060B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 470 / 635;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 6px solid var(--amarillo);
}
.hero__badge {
  position: absolute;
  left: -2.5rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 17rem;
  padding: 0.75rem 1.1rem 0.75rem 0.85rem;
  border-radius: 18px;
  background: var(--blanco);
  color: var(--tinta);
  font-size: 0.9rem;
  line-height: 1.3;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.5);
  transform: rotate(-2deg);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--tinta);
  background: var(--amarillo);
  border-radius: 12px;
  padding: 0.1rem 0.6rem;
}

/* Marcas financiadas */
.brands {
  position: relative;
  background: var(--tinta);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.brands__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-block: 1.25rem;
}
.brands__label {
  flex: none;
  font-size: var(--step--1);
  color: var(--blanco-70);
}
.brands__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* Carrusel de marcas: sin JS (o con movimiento reducido) queda la lista fija.
   El espacio va en cada <li> para que todas las copias midan igual y el
   bucle no se note. */
.marquee { flex: 1; min-width: 0; }
.marquee.is-running {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.is-running .marquee__group { flex-wrap: nowrap; gap: 0; flex: none; }
.is-running .marquee__group li { padding-right: 2.5rem; white-space: nowrap; }

@media (max-width: 860px) {
  .is-running .marquee__group li { padding-right: 1.75rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 10.43em; }
  .hero__media { justify-self: center; width: min(88%, 380px); margin-bottom: 1rem; }
  .hero__badge { left: -1.25rem; bottom: 1.25rem; }
  .franja--hero { width: 140vw; inset: 30% -40% auto auto; height: 80%; }
  /* Etiqueta arriba; debajo, el carrusel */
  .brands__inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .marquee { align-self: stretch; }
  .brands__list { gap: 0.35rem 1.25rem; font-size: 0.95rem; }
}

/* ---------- Promo DIRECTV GO ---------- */
.promo {
  background: var(--amarillo);
  padding-block: var(--section-y) 2rem;
}
.promo__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.promo__tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--amarillo);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
}
.promo h2 { max-width: 10.43em; }
.promo__lead { margin-top: 1.25rem; max-width: 28.61em; font-size: 1.075rem; }
.promo__logo {
  width: 200px;
  margin-top: 2rem;
  padding: 0.85rem 1.1rem;
  background: var(--blanco);
  border-radius: 14px;
  box-sizing: content-box;
}
.promo__list {
  display: grid;
  gap: 0.75rem;
}
.promo__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.35rem;
  background: var(--blanco);
  border-radius: var(--radius);
}
.promo__list li::before {
  content: "";
  grid-row: span 2;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--tinta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFCD00' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.promo__list strong { font-family: var(--font-display); font-size: 1.1rem; }
.promo__list span { color: var(--pizarra); font-size: 0.95rem; }
.promo__legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.8rem;
  color: var(--tinta-70);
}
@media (max-width: 860px) {
  .promo__grid { grid-template-columns: 1fr; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding-block: var(--section-y); }
.section__header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__header h2 { max-width: 13.04em; }

/* ---------- Cómo funciona ---------- */
.steps { background: var(--blanco); }
.steps__track { position: relative; }
.franja--steps {
  left: 0; right: 0;
  top: 0;
  width: 100%;
  height: 7.5rem;
  z-index: 0;
}
.franja--steps path { stroke-width: 10px; }
.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.step {
  display: flex;
  flex-direction: column;
}
.step__num {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  margin: 1.75rem auto 1.5rem;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--amarillo);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  box-shadow: 0 0 0 6px var(--blanco);
}
.step h3 {
  min-height: 2.5em;
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: 1.1rem;
}
.step img {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 353 / 300;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--menta);
}

@media (max-width: 900px) {
  .franja--steps { display: none; }
  .steps__list {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.25rem;
  }
  .step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 1.25rem;
    padding-bottom: 2.25rem;
    position: relative;
  }
  /* La franja se vuelve un riel vertical que une los pasos */
  .step::before {
    content: "";
    position: absolute;
    left: calc(1.5rem - 4px);
    top: 1.5rem;
    bottom: -0.25rem;
    width: 8px;
    border-radius: 8px;
    background: var(--amarillo);
    z-index: -1;
  }
  .step:last-child::before { display: none; }
  .step__num { width: 3rem; height: 3rem; margin: 0; font-size: 1.3rem; grid-row: span 2; }
  .step h3 { min-height: 0; text-align: left; margin: 0.6rem 0 1rem; }
  .step img { grid-column: 2; max-width: 360px; }
  .steps__list { isolation: isolate; }
}
/* Tablet y móvil horizontal: dos columnas en vez de una con media pantalla vacía.
   Las imágenes se alinean abajo aunque los títulos ocupen distintas líneas. */
@media (min-width: 640px) and (max-width: 900px) {
  .steps__list { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .step { grid-template-rows: auto 1fr; padding-bottom: 0; }
  .step::before { display: none; }
  .step img { max-width: none; align-self: end; }
}

/* ---------- Solicitud ---------- */
.apply {
  position: relative;
  background: var(--tinta);
  color: var(--blanco);
}
.apply__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.apply__intro { position: sticky; top: 7rem; }
.apply__intro h2 { font-size: var(--step-3); max-width: 6.52em; margin-bottom: 1.25rem; }
.apply__intro p { color: var(--blanco-70); max-width: 23.64em; font-size: 1.075rem; }
.apply__intro .apply__note { margin-top: 1.5rem; font-size: 0.875rem; }
.apply__card {
  scroll-margin-top: 1.5rem; /* se suma al scroll-padding del header fijo */
  background: var(--blanco);
  color: var(--tinta);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 0 0 6px var(--amarillo);
}
@media (max-width: 860px) {
  .apply__grid { grid-template-columns: 1fr; }
  .apply__intro { position: static; }
}

/* ---------- Formulario ---------- */
.form {
  display: grid;
  gap: 1.35rem;
  /* Pizarra aclarada sobre blanco: bordes de campos a 3,9:1 (WCAG 1.4.11) y
     texto de ejemplo a 5,1:1 (WCAG 1.4.3). --linea queda para separadores. */
  --linea-control: #7A8288;
  --texto-ejemplo: #666F76;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; gap: 1.35rem; } }

.field { display: grid; gap: 0.45rem; align-content: start; }
.field > label,
.field > legend {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  padding: 0;
}
.field > label { margin-bottom: 0; }
.field__opt { font-weight: 400; color: var(--pizarra); font-size: 0.85rem; white-space: nowrap; }

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--linea-control);
  border-radius: 12px;
  background: var(--blanco);
  font-size: 1rem; /* evita el zoom automático en iOS */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2305060B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1rem center / 1.1rem no-repeat;
}
/* Buscador de ciudad (combobox) */
.combo { position: relative; }
.field .combo input {
  padding-left: 2.75rem;
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%2305060B' stroke-width='2.4'/%3E%3Cpath d='M16 16l4.5 4.5' stroke='%2305060B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") left 1rem center / 1.1rem no-repeat;
}
.combo__list {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 0.35rem) 0 auto;
  max-height: 15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--blanco);
  border: 1.5px solid var(--tinta);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgb(5 6 11 / 0.14);
}
.combo__list li {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
@media (hover: hover) {
  .combo__list li:hover { background: var(--menta); }
}
/* Opción activa: el amarillo solo no contrasta con el blanco; el borde de tinta sí */
.combo__list li[aria-selected="true"] {
  background: var(--amarillo);
  box-shadow: inset 0 0 0 2px var(--tinta);
  font-weight: 600;
}
/* «Usar "…"»: la ciudad tal como se escribió; una línea la separa de las
   ciudades de la lista cuando hay alguna visible encima. */
.combo__list .combo__free {
  position: relative;
  color: var(--pizarra);
  overflow-wrap: anywhere;
}
.combo__list .combo__free[aria-selected="true"] { color: var(--tinta); }
.combo__list li:not([hidden]) ~ .combo__free { margin-top: 0.4rem; }
.combo__list li:not([hidden]) ~ .combo__free::before {
  content: "";
  position: absolute;
  inset: -0.25rem 0.5rem auto;
  border-top: 1px solid var(--linea);
}
.combo__empty { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--pizarra); }

.field input::placeholder { color: var(--texto-ejemplo); opacity: 1; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--tinta);
  box-shadow: 0 0 0 4px rgb(255 205 0 / 0.55);
}
/* Después de :focus y con el mismo peso que .field input[type=…]: así el borde
   rojo también se ve en el campo con error que tiene el foco. */
.field input[aria-invalid="true"],
.field input[aria-invalid="true"]:focus { border-color: var(--error); }
/* La casilla no tiene borde que cambie y el campo con error lo deja rojo: sin
   anillo, el halo amarillo sobre blanco (1,3:1) sería su único indicador. */
.field input[type="checkbox"]:focus-visible,
.field input[aria-invalid="true"]:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
  box-shadow: none;
}
.field__error {
  min-height: 0;
  font-size: 0.85rem;
  color: var(--error);
}
.field__error:empty { display: none; }

/* Control segmentado (producto, canal de contacto) */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--menta);
}
.segmented label,
.chips label { position: relative; cursor: pointer; }
.segmented input,
.chips input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.segmented span {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.15s ease;
}
.segmented input:checked + span { background: var(--tinta); color: var(--amarillo); }
.segmented input:focus-visible + span,
.chips input:focus-visible + span { outline: 3px solid var(--foco); outline-offset: 2px; }

/* Selector de marca */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
@media (hover: hover) {
  .chips label:hover span { border-color: var(--tinta); }
}
.chips input:checked + span {
  background: var(--amarillo);
  border-color: var(--tinta); /* el amarillo solo no contrasta con el blanco */
  font-weight: 600;
}

/* Televisor: la marca ya está definida, en lugar del selector */
.brand-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--menta);
  font-size: 0.95rem;
  line-height: 1.35;
}
.brand-note::before {
  content: "";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--amarillo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2305060B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.brand-note strong { font-weight: 600; }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.75rem;
}
.field--check input {
  width: 1.35rem; height: 1.35rem;
  margin-top: 0.1rem;
  accent-color: var(--tinta);
}
.field--check label { font-weight: 400; font-size: 0.9rem; color: var(--pizarra); }
.field--check .field__error,
.field--check .field__aviso { grid-column: 2; }
/* Aviso de privacidad: responsable, derechos y canal, junto a la autorización */
.field__aviso {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--pizarra);
}
.field__aviso a { color: var(--tinta); font-weight: 500; }
.field__aviso a[href^="tel:"],
.field__aviso .sin-corte { white-space: nowrap; }

/* Mientras se envía: aria-disabled (no disabled) para que el botón no pierda el foco */
.form .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
/* A 320 px «Quiero que me contacten» cabe en una línea */
@media (max-width: 360px) { .form .btn--block { padding-inline: 1rem; font-size: 0.95rem; } }

.form__status { font-size: 0.9rem; color: var(--error); text-align: center; scroll-margin-block: 1rem; }
.form__status:empty { display: none; }
.form__status a { color: inherit; font-weight: 600; }

.form-done {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-block: 3rem;
  text-align: center;
}
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done__icon { width: 4rem; }
.form-done__icon circle { fill: var(--amarillo); }
.form-done__icon path { fill: none; stroke: var(--tinta); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: var(--step-2); }
.form-done p { max-width: 21.15em; color: var(--pizarra); }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--menta); }
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq__contact { margin-top: 1.5rem; color: var(--pizarra); }
.faq__contact a { font-weight: 600; color: var(--tinta); }
.faq__list { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--blanco);
  border-radius: 18px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--amarillo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%2305060B' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { padding: 0 1.35rem 1.35rem; color: var(--pizarra); }
.faq details ol { padding-left: 2.6rem; }
.faq details a { color: var(--tinta); font-weight: 600; }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--tinta);
  color: var(--blanco-70);
  padding-block: 5rem 2.5rem;
  font-size: 0.85rem;
}
.franja--footer { top: 0; left: 0; width: 100%; height: 5rem; }
.franja--footer path { stroke-width: 10px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer__inner > img { width: 180px; }
.site-footer__legal { display: grid; gap: 0.6rem; max-width: 37.32em; }
.site-footer a { color: var(--blanco); }
/* Al llegar desde el asterisco del hero, la nota se resalta */
.site-footer__note:target { color: var(--blanco); }

/* ---------- CTA fija en móvil ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgb(5 6 11 / 0.94);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 861px) { .sticky-cta { display: none; } }
/* Lo que recibe el foco no queda debajo de la barra (WCAG 2.4.11) */
@media (max-width: 860px) {
  html { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Móvil en horizontal ---------- */
/* Con tan poca altura sobra la segunda CTA fija: queda la del header, más compacto. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  :root { --header-h: 3.25rem; }
  .brand img { width: 110px; }
  .sticky-cta { display: none; }
  html { scroll-padding-bottom: 0; }
}
/* El hero vuelve a dos columnas para que el botón entre en el primer pantallazo.
   Solo desde 560px: más estrecho (zoom del 300–400% en escritorio) la foto y el
   badge no caben junto al texto y se queda el hero de una columna. */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) and (max-width: 960px) {
  .hero__grid { grid-template-columns: 1.4fr 0.6fr; padding-block: 0.75rem 1.5rem; }
  .hero .eyebrow { margin-bottom: 0.6rem; }
  .hero__title { font-size: 2rem; max-width: 13.04em; }
  .hero__perks { margin-top: 0.85rem; gap: 0.4rem; }
  .hero__perks li { padding-block: 0.25rem; font-size: 0.875rem; }
  .hero__actions { margin-top: 1rem; }
  .hero__media { width: auto; max-height: calc(100svh - 6rem); aspect-ratio: 470 / 635; margin-bottom: 0; }
  .hero__badge { bottom: 1rem; font-size: 0.8rem; }
  .hero__badge-num { font-size: 2rem; }
}
/* 380px de alto o menos (Android en horizontal suele tener 360): se aprieta el
   ritmo vertical para que el botón no quede bajo el pliegue. */
@media (orientation: landscape) and (max-height: 380px) and (min-width: 560px) and (max-width: 960px) {
  .hero__grid { padding-block: 0.5rem 1.25rem; }
  .hero .eyebrow { margin-bottom: 0.4rem; }
  .hero__title { font-size: 1.75rem; }
  .hero__perks { margin-top: 0.6rem; }
  .hero__perks li { padding-block: 0.15rem; font-size: 0.8125rem; }
  .hero__perks li::before { width: 1.15rem; height: 1.15rem; }
  .hero__actions { margin-top: 0.75rem; }
  .hero__actions .btn { min-height: 2.75rem; padding-block: 0.6rem; }
  /* La foto es angosta: el badge más compacto tapa menos */
  .hero__badge { gap: 0.5rem; padding: 0.5rem 0.75rem 0.5rem 0.55rem; font-size: 0.75rem; }
  .hero__badge-num { font-size: 1.6rem; padding-inline: 0.45rem; }
}
/* 340px o menos (iPhone SE, o Safari con sus barras): las ventajas caben en dos filas. */
@media (orientation: landscape) and (max-height: 340px) and (min-width: 560px) and (max-width: 960px) {
  .hero__title { font-size: 1.6rem; }
  .hero__perks li { padding-right: 0.7rem; font-size: 0.75rem; }
}

/* ---------- Alto contraste forzado (Windows) ---------- */
/* El sistema reemplaza los colores: la opción elegida se marca con Highlight,
   los íconos de fondo amarillo se conservan y los botones llevan borde. */
@media (forced-colors: active) {
  .segmented input:checked + span,
  .chips input:checked + span,
  .combo__list li[aria-selected="true"] {
    forced-color-adjust: none;
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
  .faq summary::after,
  .hero__perks li::before,
  .promo__list li::before,
  .brand-note::before { forced-color-adjust: none; }
  .brand-note { border: 1px solid CanvasText; }
  /* Sin el forzado, el anillo de foco de la opción elegida conservaría su color
     de marca (amarillo sobre blanco o tinta sobre negro): va con el del sistema. */
  .segmented input:focus-visible + span,
  .chips input:focus-visible + span { outline-color: CanvasText; }
  .btn { border: 2px solid ButtonText; }
  /* El logo es blanco y el sistema vuelve blanco el fondo del header y del footer:
     lleva su propio fondo de tinta. */
  .brand img,
  .site-footer__inner > img {
    forced-color-adjust: none;
    background: #05060B;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
  }
  /* En el footer la imagen se estira al alto de la fila: centrada, el fondo
     queda del tamaño del logo y el logo en el mismo sitio. */
  .site-footer__inner > img { align-self: center; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .franja__trazo { stroke-dashoffset: 0; }
}
