:root {
  --tinta: #1a1714;
  --senal: #e23a1c;
  --rojo-texto: #a82014;
  --crema: #f4ebdd;
  --gris: #5a5048;
  --gris-claro: #7a6f64;
  --linea: #e6e2dc;
  --borde-campo: #d9d4cc;
  --pizarra: #3e6278;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.cond { font-family: var(--sans); font-variation-settings: "wdth" 75; font-weight: 900; }
.mono { font-family: var(--mono); }
.rojo { color: var(--senal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navegación */
.nav {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px 34px 23px;
}
.logo { text-decoration: none; display: flex; flex-direction: column; gap: 7px; }
.logo b { font-size: 28px; line-height: 30px; letter-spacing: -0.02em; }
.logo span { font-family: var(--mono); font-size: 12px; line-height: 14px; letter-spacing: 0.4px; color: var(--gris-claro); }
.nav ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; gap: 34px; }
.nav ul a { font-family: var(--mono); font-size: 11px; line-height: 17px; letter-spacing: 0.8px; color: var(--gris); text-decoration: none; }
.nav ul a:hover { color: var(--senal); }

/* Botón de menú (solo móvil) */
.nav { position: relative; }
.menu { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--linea); border-radius: 3px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu span { display: block; width: 16px; height: 2px; background: var(--tinta); transition: transform .2s ease; }
.nav.abierto .menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.abierto .menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav ul a[aria-current="page"] { color: var(--senal); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--pizarra); outline-offset: 2px; }
.boton-rojo { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 3px; background: var(--senal); color: #fff; font-weight: 600; text-decoration: none; }

/* Bloques con foto o vídeo de fondo */
.escena {
  position: relative;
  width: calc(100% - 32px);
  max-width: 1408px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50%;
}
.escena > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.escena > .contenido { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .escena > video { display: none; } }

/* Hero de la home */
.hero-home { background-image: url(/assets/img/hero.jpg); background-color: #dce6e7; min-height: 872px; }
.hero-home .contenido { display: flex; flex-direction: column; align-items: center; padding: 90px 16px 60px; text-align: center; }
.rotulo { width: 540px; max-width: 80%; height: auto; rotate: -2deg; }
.seleccion {
  position: relative;
  display: inline-block;
  background: rgba(255, 255, 255, 0.94);
  border-left: 1.5px solid var(--pizarra);
  border-right: 1.5px solid var(--pizarra);
  rotate: -1.6deg;
}
.seleccion::before, .seleccion::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pizarra);
}
.seleccion::before { left: -5px; top: -5px; }
.seleccion::after { right: -5px; bottom: -5px; }
.hero-home .seleccion { margin-top: 2px; padding: 4px 18px 8px; }
.hero-home h1 { margin: 0; font-size: 116px; line-height: 108px; letter-spacing: -0.03em; color: var(--senal); white-space: nowrap; }
.hero-home .sub { margin: 26px 0 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.hero-home .sub2 { margin: 8px 0 0; max-width: 520px; font-size: 16px; line-height: 25px; color: #2e2924; }
.hero-home .formulario { margin-top: 24px; }
.ancla { margin-top: 12px; padding: 4px 9px; background: #fff; font-size: 11px; line-height: 17px; font-weight: 600; color: var(--gris); text-decoration: none; }

/* Formulario */
.formulario {
  width: 500px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 18px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--linea);
  box-shadow: 0 12px 30px rgba(26, 23, 20, 0.1);
  text-align: left;
}
.formulario label.etiqueta { font-family: var(--mono); font-size: 11px; line-height: 17px; letter-spacing: 0.5px; color: var(--gris-claro); }
.formulario .fila { display: flex; gap: 8px; }
.formulario input[type="email"] {
  flex-grow: 1;
  min-width: 0;
  height: 49px;
  padding: 0 14px;
  border-radius: 3px;
  border: 1px solid var(--borde-campo);
  background: #fff;
  font-size: 15px;
  color: var(--tinta);
}
.formulario input[type="email"]::placeholder { color: #9a8f82; }
.formulario input[type="email"]:focus { outline: 2px solid var(--pizarra); outline-offset: 1px; }
.formulario button {
  height: 49px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  background: var(--senal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.formulario button:hover { background: #c92f13; }
.formulario button[disabled] { opacity: 0.6; cursor: wait; }
.consentimiento { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; font-size: 11px; line-height: 17px; color: var(--gris-claro); }
.consentimiento input { margin: 2px 0 0; accent-color: var(--senal); flex-shrink: 0; }
.consentimiento a { color: var(--gris); }
.formulario .estado { min-height: 0; font-size: 12px; line-height: 18px; color: var(--rojo-texto); }
.formulario .estado:empty { display: none; }
.formulario.hecho .fila, .formulario.hecho .consentimiento, .formulario.hecho label.etiqueta { display: none; }
.exito { display: none; flex-direction: column; gap: 10px; }
.formulario.hecho .exito { display: flex; }
.exito strong { font-family: var(--sans); font-variation-settings: "wdth" 85; font-weight: 800; font-size: 20px; line-height: 24px; }
.exito p { margin: 0; font-size: 14px; line-height: 21px; color: var(--gris); }
.exito a.boton {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 3px;
  background: var(--senal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Secciones */
.seccion { width: min(1100px, 100%); margin: 0 auto; padding: 110px 36px 30px; display: flex; flex-direction: column; gap: 22px; }
.etiqueta-seccion { font-family: var(--mono); font-size: 11px; line-height: 17px; letter-spacing: 1.1px; color: var(--rojo-texto); margin: 0; }
.titular { margin: 0; display: flex; flex-direction: column; }
.titular span { font-size: 56px; line-height: 54px; letter-spacing: -0.02em; }
.titular.grande span { font-size: 64px; line-height: 62px; }
.cabecera-seccion { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; }
.nota { width: 300px; flex-shrink: 0; padding-bottom: 6px; display: flex; flex-direction: column; gap: 8px; }
.nota p { margin: 0; font-size: 15px; line-height: 24px; color: var(--gris); }
.firma { font-variation-settings: "wdth" 85; font-weight: 800; font-size: 17px; line-height: 22px; color: var(--rojo-texto); }
.texto { font-size: 15px; line-height: 24px; color: var(--gris); margin: 0; }
.sub-titulo { margin: 0; font-variation-settings: "wdth" 85; font-weight: 800; font-size: 22px; line-height: 26px; }

.chips { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--tinta); font-size: 15px; line-height: 20px; font-weight: 600; }

.columnas { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linea); }
.columnas > div { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--linea); }
.columnas > div:first-child { padding-left: 0; border-left: 0; }
.columnas > div:last-child { padding-right: 0; }
.columnas .num { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--rojo-texto); }
.columnas h3 { margin: 0; font-variation-settings: "wdth" 85; font-weight: 800; font-size: 24px; line-height: 27px; }

.tarjetas { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tarjetas article { display: flex; flex-direction: column; gap: 12px; }
.tarjetas img { width: 100%; height: 300px; object-fit: cover; border-radius: 3px; }
.tarjetas .mono { font-size: 11px; line-height: 16px; letter-spacing: 0.8px; color: var(--rojo-texto); }
.tarjetas p { margin: 0; font-size: 14px; line-height: 22px; color: var(--gris); }

/* Preguntas */
.preguntas { flex-direction: row; gap: 60px; padding-bottom: 90px; }
.preguntas .lado { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.acordeon { flex-grow: 1; border-top: 1px solid var(--linea); }
.acordeon details { border-bottom: 1px solid var(--linea); padding: 24px 0; }
.acordeon summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; font-size: 17px; line-height: 24px; font-weight: 700; }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: "+"; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--senal); }
.acordeon details[open] summary::after { content: "–"; }
.acordeon details p { margin: 12px 0 0; max-width: 560px; font-size: 15px; line-height: 25px; color: var(--gris); }

/* Cierre */
.cierre { background-image: url(/assets/img/cierre.jpg); background-color: #b79a9e; min-height: 720px; display: flex; }
.cierre .contenido { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 16px; text-align: center; }
.cierre h2 { margin: 24px 0 0; display: flex; flex-direction: column; }
.cierre h2 span { font-size: 96px; line-height: 90px; letter-spacing: -0.03em; }
.cierre h2 .claro { color: var(--crema); }
.cierre .formulario { margin-top: 30px; box-shadow: 0 12px 30px rgba(26, 23, 20, 0.14); }

/* Pie */
.pie { margin-top: 40px; padding: 0 30px; }
.pie .marca { display: block; text-align: center; padding: 24px 0 18px; font-size: 170px; line-height: 160px; letter-spacing: -0.04em; color: var(--senal); text-decoration: none; white-space: nowrap; }
.pie .base { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 30px; border-top: 1px solid var(--linea); }
.pie .base, .pie .base a { font-family: var(--mono); font-size: 11px; line-height: 17px; letter-spacing: 0.6px; color: var(--gris); text-decoration: none; text-transform: uppercase; }
.pie .base nav { display: flex; gap: 28px; }
.pie .base a:hover { color: var(--senal); }

/* Página de recurso */
.hero-recurso { background-image: url(/assets/img/hero.jpg); background-color: #dce6e7; }
.hero-recurso .contenido { min-height: 820px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 60px 84px 60px 96px; }
.hero-recurso .texto-hero { width: 610px; display: flex; flex-direction: column; align-items: flex-start; }
.chip-blanco { padding: 5px 10px; background: #fff; font-family: var(--mono); font-size: 11px; line-height: 17px; letter-spacing: 1.1px; color: var(--rojo-texto); }
.hero-recurso h1 { margin: 22px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero-recurso h1 > span { font-size: 92px; line-height: 84px; letter-spacing: -0.03em; white-space: nowrap; }
.hero-recurso h1 .seleccion { margin-top: 10px; padding: 4px 16px 6px; rotate: -1.4deg; color: var(--senal); line-height: 88px; }
.hero-recurso .beneficio { margin: 30px 0 0; max-width: 520px; font-size: 19px; line-height: 27px; font-weight: 700; }
.datos { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.datos li { padding: 6px 10px; background: rgba(255, 255, 255, 0.86); font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.6px; white-space: nowrap; }
.hero-recurso .formulario { margin-top: 26px; width: 520px; }

.vista-previa {
  position: relative;
  width: 540px;
  height: 660px;
  flex-shrink: 0;
  rotate: 1.6deg;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(26, 23, 20, 0.2);
  padding: 34px 36px 0;
  user-select: none;
}
.vista-previa .cab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; line-height: 14px; letter-spacing: 1px; color: var(--gris-claro); }
.vista-previa .cab span:first-child { color: var(--rojo-texto); }
.vista-previa h2 { margin: 22px 0 0; font-variation-settings: "wdth" 85; font-weight: 800; font-size: 30px; line-height: 33px; letter-spacing: -0.01em; }
.vista-previa > p { margin: 10px 0 0; font-size: 14px; line-height: 21px; color: var(--gris); }
.vista-previa .mono-cab { margin-top: 24px; font-family: var(--mono); font-size: 10px; line-height: 14px; letter-spacing: 1px; color: var(--gris-claro); }
.tabla { margin-top: 10px; border-top: 1px solid var(--tinta); }
.tabla .f { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--linea); }
.tabla .n { width: 18px; flex-shrink: 0; font-family: var(--mono); font-size: 11px; line-height: 18px; color: var(--rojo-texto); }
.tabla .b { width: 150px; flex-shrink: 0; font-weight: 700; font-size: 13px; line-height: 18px; }
.tabla .d { flex: 1; font-size: 12px; line-height: 18px; color: var(--gris); }
.tabla .borroso { filter: blur(4.5px); opacity: 0.75; }
.velo { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, #fff 100%); }
.y-mas { position: absolute; left: 36px; right: 36px; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.y-mas strong { font-variation-settings: "wdth" 85; font-weight: 800; font-size: 18px; line-height: 22px; }
.y-mas span { font-size: 13px; line-height: 19px; color: var(--gris); }

.incluye { margin-top: 26px; display: flex; gap: 56px; align-items: stretch; }
.incluye img { width: 440px; height: 540px; flex-shrink: 0; object-fit: cover; object-position: 30% 40%; border-radius: 3px; }
.lista { flex: 1; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tinta); }
.lista li { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--linea); }
.lista .n { width: 40px; flex-shrink: 0; font-size: 34px; line-height: 34px; color: var(--senal); }
.lista div { display: flex; flex-direction: column; gap: 6px; }
.lista p { margin: 0; font-size: 14px; line-height: 22px; color: var(--gris); }

.pasos { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pasos article { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 30px; border-radius: 3px; border: 1px solid var(--linea); }
.pasos .n { font-size: 88px; line-height: 80px; color: var(--senal); }
.pasos .mono { font-size: 11px; line-height: 16px; letter-spacing: 0.8px; color: var(--rojo-texto); }
.pasos p { margin: 0; font-size: 14px; line-height: 22px; color: var(--gris); }

/* Texto legal */
.legal { width: min(720px, 100%); margin: 0 auto; padding: 60px 24px 80px; }
.legal h1 { margin: 0 0 24px; font-size: 56px; line-height: 54px; }
.legal h2 { margin: 36px 0 8px; font-variation-settings: "wdth" 85; font-weight: 800; font-size: 20px; }
.legal p, .legal li { font-size: 15px; line-height: 25px; color: var(--gris); }

/* Tableta */
@media (max-width: 1180px) {
  .hero-recurso .contenido { flex-direction: column; align-items: flex-start; padding: 56px 40px; }
  .vista-previa { align-self: center; }
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .columnas { grid-template-columns: repeat(2, 1fr); }
  .columnas > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pie .marca { font-size: 13vw; line-height: 1; }
}

/* Móvil */
@media (max-width: 760px) {
  .nav { padding: 18px 16px; align-items: center; }
  .menu { display: flex; }
  .nav ul { display: none; position: absolute; z-index: 20; top: 100%; left: 8px; right: 8px; margin: 0; padding: 8px 0; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--linea); border-radius: 3px; box-shadow: 0 16px 40px rgba(26, 23, 20, 0.12); }
  .nav.abierto ul { display: flex; }
  .nav ul a { display: block; padding: 14px 18px; font-size: 12px; }
  .logo b { font-size: 24px; line-height: 24px; }
  .logo span { font-size: 10px; line-height: 12px; }
  .escena { width: calc(100% - 16px); }

  .hero-home { background-image: url(/assets/img/hero-movil.jpg); min-height: 0; }
  .hero-home .contenido { padding: 48px 16px 40px; }
  .rotulo { width: 280px; }
  .hero-home .seleccion { padding: 2px 12px 6px; }
  .hero-home h1 { font-size: 60px; line-height: 56px; white-space: normal; }
  .hero-home .sub { font-size: 16px; line-height: 22px; margin-top: 22px; }
  .hero-home .sub2 { font-size: 15px; line-height: 23px; }
  .formulario { padding: 14px; }
  .formulario .fila { flex-direction: column; }
  .formulario input[type="email"], .formulario button { height: 48px; font-size: 16px; }
  .consentimiento { font-size: 12px; }

  .seccion { padding: 64px 16px 10px; gap: 16px; }
  .titular span, .titular.grande span { font-size: 38px; line-height: 39px; }
  .cabecera-seccion { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nota { width: auto; }
  .columnas { grid-template-columns: 1fr; margin-top: 16px; }
  .columnas > div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--linea); }
  .tarjetas { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tarjetas img { height: 200px; }
  .tarjetas .sub-titulo { font-size: 18px; line-height: 22px; }

  .preguntas { flex-direction: column; gap: 16px; padding-bottom: 64px; }
  .preguntas .lado { width: auto; gap: 16px; }
  .acordeon details { padding: 18px 0; }
  .acordeon summary { font-size: 16px; line-height: 22px; }

  .cierre { background-image: url(/assets/img/cierre-movil.jpg); min-height: 560px; }
  .cierre h2 span { font-size: 44px; line-height: 44px; }
  .cierre .formulario { width: 100%; }

  .pie { padding: 0 16px; }
  .pie .marca { font-size: 16vw; padding: 20px 0 12px; }
  .pie .base { flex-direction: column-reverse; gap: 12px; }
  .pie .base nav { flex-direction: column; gap: 10px; }

  .hero-recurso { background-image: url(/assets/img/hero-movil.jpg); }
  .hero-recurso .contenido { min-height: 0; padding: 40px 18px 28px; gap: 26px; }
  .hero-recurso .texto-hero { width: 100%; }
  .chip-blanco { font-size: 10px; line-height: 14px; padding: 4px 8px; }
  .hero-recurso h1 { margin-top: 16px; }
  .hero-recurso h1 > span { font-size: 50px; line-height: 47px; }
  .hero-recurso h1 .seleccion { line-height: 52px; padding: 2px 10px 4px; margin-top: 8px; }
  .hero-recurso .beneficio { font-size: 16px; line-height: 23px; margin-top: 20px; }
  .datos li { font-size: 10px; padding: 5px 8px; }
  .hero-recurso .formulario { width: 100%; margin-top: 18px; }
  .vista-previa { width: 100%; height: 380px; padding: 22px 20px 0; rotate: 1.4deg; }
  .vista-previa .cab span:last-child { display: none; }
  .vista-previa h2 { margin-top: 12px; font-size: 22px; line-height: 25px; }
  .vista-previa > p, .vista-previa .mono-cab { display: none; }
  .tabla { margin-top: 14px; }
  .tabla .f { flex-wrap: wrap; gap: 0 10px; padding: 9px 0; }
  .tabla .n { width: 12px; }
  .tabla .b { width: auto; flex: 1; }
  .tabla .d { flex-basis: 100%; padding-left: 22px; }
  .tabla .borroso .f:nth-child(n + 3) { display: none; }
  .velo { height: 190px; }
  .y-mas { bottom: 22px; }

  .incluye { flex-direction: column; gap: 8px; margin-top: 8px; }
  .incluye img { width: 100%; height: 400px; }
  .lista li { gap: 14px; padding: 18px 0; }
  .lista .n { width: 30px; font-size: 26px; line-height: 26px; }
  .lista .sub-titulo { font-size: 19px; line-height: 23px; }
  .pasos { grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
  .pasos article { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding: 20px 18px; }
  .pasos .n { font-size: 60px; line-height: 56px; width: 36px; }
  .pasos article > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
  .pasos .sub-titulo { font-size: 18px; line-height: 22px; }

  .legal h1 { font-size: 40px; line-height: 40px; }
}
