/* Vencito — sitio del producto.
   Layout: columna de lectura de 72rem con gutter fijo; hero en dos columnas (texto + iPhone),
   secciones separadas por espacio, no por cajas. El "sello" de vencimiento (tipografía de matriz
   de puntos, como la impresión inkjet de los envases) es el único recurso llamativo. */
/* Tipografías servidas desde el propio sitio (sin Google Fonts: ningún pedido a terceros). Licencia OFL en assets/fonts/. */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/onest-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/onest-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Doto"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/doto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Doto"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/doto-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #14211b;
  --muted: #56655d;
  --line: #d9e2dc;
  --accent: #1f7a57;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1e9;
  --stamp: #2a3a33;
  --ok: #1f8a5b;
  --soon: #c26a00;
  --expired: #c8412c;

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Onest", "Segoe UI", Roboto, sans-serif;
  --f-stamp: "Doto", "Courier New", ui-monospace, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.75rem);

  --radius: 14px;
  --maxw: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1411; --surface: #16201b; --ink: #e8efea; --muted: #9db0a5; --line: #26332c;
    --accent: #4cc493; --accent-ink: #06140d; --accent-soft: #173327; --stamp: #cfe0d6;
    --ok: #4cc493; --soon: #f0a53a; --expired: #ff7a63;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1411; --surface: #16201b; --ink: #e8efea; --muted: #9db0a5; --line: #26332c;
  --accent: #4cc493; --accent-ink: #06140d; --accent-soft: #173327; --stamp: #cfe0d6;
  --ok: #4cc493; --soon: #f0a53a; --expired: #ff7a63;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 36rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Encabezado */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.nav a:hover { color: var(--accent); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Botones */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: var(--step-0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-primary:hover { filter: brightness(1.06); }
.note { font-size: var(--step--1); color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Sello de vencimiento: la tipografía de matriz de puntos imita la impresión inkjet del envase */
.stamp { font-family: var(--f-stamp); font-weight: 900; color: var(--stamp); letter-spacing: 0.06em; }
.hero .stamp-line { font-size: clamp(1.4rem, 3vw, 2rem); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.hero .stamp-line .arrow { font-family: var(--f-body); color: var(--muted); font-size: var(--step-1); }
.hero .stamp-line .parsed { font-family: var(--f-display); font-weight: 700; color: var(--accent); letter-spacing: 0; font-size: var(--step-1); }

/* Marco de dispositivo */
.device { position: relative; margin-inline: auto; width: min(100%, 340px); border-radius: 44px; padding: 10px; background: #0c0f0e; box-shadow: 0 30px 60px -30px rgba(10, 30, 20, 0.45), 0 0 0 1px var(--line); }
.device img { border-radius: 34px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: var(--surface); }
.device.ipad { width: 100%; max-width: 980px; border-radius: 30px; padding: 14px; }
.device.ipad img { border-radius: 18px; aspect-ratio: 2752 / 2064; }

/* Secciones */
section { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 44rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Pasos (es una secuencia real: foto → lectura → aviso) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--f-stamp); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Demo del lector de fechas */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: minmax(0, 1fr); } }
.label-card { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; min-width: 0; }
.label-card label { font-weight: 700; font-size: var(--step--1); color: var(--muted); }
.label-card input { width: 100%; font: 900 1.35rem/1.3 var(--f-stamp); letter-spacing: 0.05em; color: var(--stamp); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: 900 0.95rem var(--f-stamp); letter-spacing: 0.04em; color: var(--stamp); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); }
.result { display: grid; gap: 10px; align-content: start; min-width: 0; }
.result .date { font-family: var(--f-display); font-size: var(--step-2); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: var(--step--1); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill.soon { color: var(--soon); background: color-mix(in srgb, var(--soon) 14%, transparent); }
.pill.expired { color: var(--expired); background: color-mix(in srgb, var(--expired) 14%, transparent); }
.pill.none { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px); }
.feature { display: grid; gap: 8px; align-content: start; min-width: 0; padding-top: 16px; border-top: 2px solid var(--line); }
.feature p { color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); align-items: start; }
.gallery figure { margin: 0; display: grid; gap: 12px; min-width: 0; }
.gallery figcaption { text-align: center; font-size: var(--step--1); color: var(--muted); }
.gallery .device { width: 100%; max-width: 300px; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.ipad-row { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 16px; }

/* Privacidad */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.privacy-grid div { display: grid; gap: 4px; min-width: 0; }
.privacy-grid p { color: var(--muted); }
@media (max-width: 700px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--step-0); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-stamp); color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 42rem; }

/* Documentos (privacidad, soporte) */
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc .wrap { max-width: 46rem; display: grid; gap: 18px; }
.doc h1 { font-size: var(--step-3); }
.doc h2 { font-size: var(--step-2); margin-top: 28px; }
.doc ul { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; }
.doc .updated { color: var(--muted); font-size: var(--step--1); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin-block: 32px; width: 100%; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* Video de demostración (vertical) */
.reel { display: block; margin-inline: auto; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 28px; background: #0c0f0e; box-shadow: 0 30px 60px -30px rgba(10, 30, 20, 0.45), 0 0 0 1px var(--line); }

.device video { display: block; width: 100%; height: auto; border-radius: 34px; background: #000; }
