/* Abastio · landing de prelanzamiento. Tokens de design/design-system/tokens.json. */
:root {
  --blue-abastio: #0032c8; --bright-green: #d8ff00; --navy-abastio: #000046; --warm-blue: #a3b6cc;
  --white: #ffffff; --label-ink: #1b2855;
  --surface: #ffffff; --surface-tint: #eef2fb; --surface-muted: #f4f6fa;
  --ink: #000046; --ink-brand: #0032c8; --ink-muted: #1b2855;
  --line: #a3b6cc; --line-control: #66758f; --focus: #0032c8;
  --success: #0b7a3e; --success-soft: #e3f5e9; --danger: #b3261e; --danger-soft: #fde8e7;
  --radius-sm: 5px; --radius-md: 12px; --radius-lg: 24px; --radius-full: 999px;
  --font-sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--surface); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: var(--ink-brand); }
img, svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--bright-green); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--bright-green); color: var(--navy-abastio); padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 700; z-index: 20; }
.skip:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-sm); font: 700 16px/20px var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .12s; }
.btn:hover { filter: brightness(.94); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--bright-green); color: var(--navy-abastio); }
.btn-secondary { background: var(--white); color: var(--blue-abastio); }
.btn-brand { background: var(--blue-abastio); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--surface-muted); color: var(--ink-muted); cursor: progress; filter: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--blue-abastio); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a { color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.logo { width: 168px; height: auto; }

/* Hero */
.hero { background: var(--blue-abastio); color: var(--white); padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1.5px var(--bright-green); color: var(--bright-green); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 20px 0 18px; font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -.015em; }
.accent { color: var(--bright-green); }
.hero .lead { margin: 0 0 32px; font-size: 20px; line-height: 30px; font-weight: 500; max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 36px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 700; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 20px; height: 20px; color: var(--bright-green); }
/* Cinta de productos del inicio: tres filas que se desplazan sin fin. Cada fila trae sus tiles dos veces, así al
   correrla un 50 % el ciclo vuelve al principio sin salto. El margen derecho de cada tile (y no gap) deja las dos
   mitades idénticas. */
.belt { --tile: 104px; --gap: 14px; display: flex; flex-direction: column; gap: var(--gap); 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); }
.belt-track { display: flex; width: max-content; }
.belt .tile { flex: none; width: var(--tile); height: var(--tile); margin-right: var(--gap); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.belt .tile svg { width: 46%; height: 62%; }
.belt .tile svg.wide { width: 68%; }
.belt .tile.brand { background: var(--bright-green); }
.belt .tile.brand svg { width: 70%; height: auto; }
.belt .tile.navy { background: var(--navy-abastio); }

/* Secciones */
section.block { padding: 88px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-brand); }
h2 { margin: 10px 0 14px; font-size: 44px; line-height: 50px; font-weight: 800; letter-spacing: -.01em; }
.intro { margin: 0 0 36px; font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 620px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.benefits li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.benefits .ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-tint); color: var(--blue-abastio); display: flex; align-items: center; justify-content: center; }
.benefits .ic svg { width: 24px; height: 24px; }
.benefits b { font-size: 17px; line-height: 24px; }
.benefits span { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.note { margin: 16px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Formularios */
.card { padding: 32px; border-radius: 20px; background: var(--surface-tint); }
.card h3 { margin: 0 0 6px; font-size: 26px; line-height: 32px; font-weight: 800; }
.card .sub { margin: 0 0 22px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.form { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--ink-muted); }
.field input, .field select { height: 48px; padding: 0 14px; border: 0; border-radius: var(--radius-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-control); font: 500 16px/22px var(--font-sans); color: var(--ink); width: 100%; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230032c8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-abastio); }
.field input::placeholder { color: var(--line-control); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.field .err, .form > .err { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--danger); }
.form > .err { margin-top: -8px; }
.phone { display: flex; }
.phone span { display: flex; align-items: center; padding: 0 12px; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--surface-muted); box-shadow: inset 0 0 0 1px var(--line-control); font-weight: 700; font-size: 15px; }
.phone input { border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-left: -1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue-abastio); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.alert svg { flex: none; width: 20px; height: 20px; }
.alert-danger { background: var(--danger-soft); color: var(--ink); }
.alert-danger svg { color: var(--danger); }
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done .badge { width: 52px; height: 52px; border-radius: var(--radius-full); background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; }
.done .badge svg { width: 28px; height: 28px; }
.done h3 { margin: 4px 0 0; }
.done p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
[hidden] { display: none !important; }

/* Marcas (oscuro) */
.dark { background: var(--navy-abastio); color: var(--white); }
.dark .eyebrow { color: var(--bright-green); }
.dark .intro, .dark .benefits span, .dark .note { color: #dfe5f0; }
.dark .benefits li { box-shadow: inset 0 0 0 1px var(--label-ink); background: rgba(255, 255, 255, .03); }
.dark .benefits .ic { background: var(--label-ink); color: var(--bright-green); }
.dark .card { background: var(--white); color: var(--ink); }
.dark .card :focus-visible { outline-color: var(--focus); }

/* Preguntas */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; line-height: 26px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--ink-brand); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; font-size: 16px; line-height: 25px; color: var(--ink-muted); max-width: 720px; }

/* Pie */
.foot { background: var(--blue-abastio); color: var(--white); padding: 48px 0; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .tag { font-size: 20px; font-weight: 700; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--white); font-size: 14px; font-weight: 600; }

/* Móvil */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 60px; }
  .top nav a:not(.btn) { display: none; }
  .top .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .logo { width: 128px; }
  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: 40px; line-height: 42px; margin: 16px 0 14px; }
  .hero .lead { font-size: 17px; line-height: 26px; margin-bottom: 24px; }
  .hero .ctas .btn { width: 100%; }
  .facts { gap: 12px; flex-direction: column; margin-top: 28px; }
  .belt { --tile: 76px; --gap: 10px; margin: 0 -16px; }
  .belt-row:nth-child(3) { display: none; }
  .belt .tile { border-radius: 14px; }
  section.block { padding: 56px 0; }
  h2 { font-size: 30px; line-height: 36px; }
  .intro { font-size: 16px; line-height: 25px; margin-bottom: 24px; }
  .benefits { grid-template-columns: 1fr; gap: 12px; }
  .benefits li { padding: 18px; }
  .card { padding: 22px 18px; }
  .card h3 { font-size: 22px; line-height: 28px; }
  .row { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; line-height: 23px; }
  .foot { padding: 36px 0; }
}

/* Página legal */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin: 12px 0 8px; font-size: 40px; line-height: 46px; font-weight: 800; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; line-height: 28px; font-weight: 800; }
.legal p, .legal li { font-size: 16px; line-height: 26px; color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--ink-muted); font-size: 14px; }
.legal a { color: var(--ink-brand); }
@media (max-width: 760px) { .legal { padding: 36px 0 56px; } .legal h1 { font-size: 32px; line-height: 38px; } }
.top nav a.btn-primary { color: var(--navy-abastio); text-decoration: none; }
/* En filas de dos campos, etiqueta, control y error comparten filas de la grilla: los controles quedan
   alineados aunque una etiqueta ocupe dos líneas o solo uno de los campos muestre su error */
@media (min-width: 761px) {
  .row { grid-template-rows: auto auto auto; row-gap: 0; }
  .row .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; }
}

/* Movimiento. Todo queda dentro de no-preference: con «reducir movimiento» la página se ve quieta y completa.
   Solo se animan transform, translate y opacity, que el navegador mueve sin recalcular el diseño. */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada del inicio: en cascada al cargar, sin depender del JS */
  .hero .wrap > div:first-child > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero .wrap > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .hero h1 .accent { position: relative; display: inline-block; }
  .hero h1 .accent::after { content: ""; position: absolute; left: 2px; right: 8px; bottom: -6px; height: 5px; border-radius: 3px; background: var(--bright-green); transform: scaleX(0); transform-origin: left; animation: draw .7s .75s cubic-bezier(.6, 0, .2, 1) forwards; }

  /* Cinta: cada fila a su velocidad, la del medio en sentido contrario; la fila bajo el mouse se detiene */
  .belt { animation: rise .8s .3s cubic-bezier(.2, .7, .2, 1) both; }
  .belt-track { animation: belt 38s linear infinite; }
  .belt-row:nth-child(2) .belt-track { animation-direction: reverse; animation-duration: 46s; }
  .belt-row:nth-child(3) .belt-track { animation-duration: 32s; }
  .belt-row:hover .belt-track { animation-play-state: paused; }

  /* Aparición al hacer scroll: main.js pone .js-reveal en <html> y .is-in en cada elemento al entrar en pantalla.
     Sin JS no hay .js-reveal y todo se ve desde el principio. */
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
  .js-reveal .benefits [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .js-reveal .benefits [data-reveal]:nth-child(3) { transition-delay: .16s; }
  .js-reveal .benefits [data-reveal]:nth-child(4) { transition-delay: .24s; }

  /* Al pasar el mouse: tarjetas que se elevan y flechas que avanzan */
  .benefits li { transition: translate .25s ease, box-shadow .25s ease; }
  .benefits li:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(0, 0, 70, .12); }
  .dark .benefits li:hover { box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(0, 0, 0, .35); }
  .btn svg { transition: translate .2s ease; }
  .btn:hover svg { translate: 4px 0; }

  /* Preguntas: el + gira a × y la respuesta baja al abrir */
  .faq summary::after { transition: transform .25s ease; }
  .faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
  .faq details[open] p { animation: rise .35s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes belt { to { transform: translateX(-50%); } }
