/* PAGE — base común de las páginas públicas (portada y páginas de producto).
 * Marca: negro y blanco, el azul #1d4dff como único acento; Inter (en lugar de Helvetica) y JetBrains Mono;
 * el bloque del logo como recurso. A todo el ancho, con márgenes en porcentaje. */
@font-face { font-family: 'Inter'; src: url(../fonts/Inter-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/Inter-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/Inter-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/Inter-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/Inter-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/Inter-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url(../fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url(../fonts/jetbrains-mono-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #0a0a0a; --paper: #ffffff; --blue: #1d4dff; --blue-2: #1640e0;
  --night: #070a14; --night-2: #0f1528; --mist: #f2f3f6; --ink-2: #565c67; --ink-3: #8b919c;
  --line: rgba(10, 10, 10, .12); --line-inv: rgba(255, 255, 255, .14); --wa: #25d366;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JBMono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 6vw, 120px);
  --sec: clamp(72px, 9vw, 160px);
  --r: clamp(18px, 1.6vw, 28px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 clamp(16px, 1.05vw, 19px)/1.5 var(--font); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.noche :focus-visible, .azul :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- estructura ---------- */
.ancho { padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.noche { background: var(--night); color: #fff; }
.niebla { background: var(--mist); }
.azul { background: var(--blue); color: #fff; }
.tinta { background: var(--ink); color: #fff; }

/* ---------- tipografía ---------- */
.ojo { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(12px, .78vw, 14px)/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.ojo::before { content: ''; width: .62em; height: .9em; background: var(--blue); flex: none; }
.noche .ojo, .tinta .ojo { color: rgba(255, 255, 255, .6); }
.azul .ojo { color: rgba(255, 255, 255, .78); }
.azul .ojo::before { background: var(--ink); }
.titulo { font-weight: 900; font-size: clamp(46px, 7.4vw, 140px); line-height: .94; letter-spacing: -.048em; text-wrap: balance; }
.h2 { font-weight: 900; font-size: clamp(34px, 4.7vw, 86px); line-height: .98; letter-spacing: -.042em; text-wrap: balance; }
.h3 { font-weight: 800; font-size: clamp(21px, 1.55vw, 29px); line-height: 1.15; letter-spacing: -.02em; }
.bajada { font-size: clamp(18px, 1.5vw, 26px); line-height: 1.42; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.noche .bajada, .tinta .bajada { color: rgba(255, 255, 255, .72); }
.azul .bajada { color: rgba(255, 255, 255, .9); }
.texto { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.noche .texto, .tinta .texto { color: rgba(255, 255, 255, .68); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* la palabra clave, con el bloque azul detrás (como en los videos) */
.marca { display: inline-block; line-height: .92; background: var(--blue); color: #fff; padding: .03em .1em .07em; margin: 0 -.02em; }
.azul .marca { background: var(--ink); }

/* ---------- logo de PAGE: letras del PNG oficial + el bloque aparte ---------- */
.pg-logo { --h: 26px; position: relative; display: inline-block; height: var(--h); width: calc(var(--h) * 1024 / 276); flex: none; }
.pg-logo img { width: 100%; height: 100%; clip-path: inset(0 11.62% 0 0); }
.pg-logo i { position: absolute; left: calc(var(--h) * 931 / 276); top: calc(var(--h) * 137 / 276); width: calc(var(--h) * 93 / 276); height: calc(var(--h) * 136 / 276); background: var(--blue); }
.azul .pg-logo i { background: var(--ink); }

/* ---------- cabecera ---------- */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(18px, 1.8vw, 30px); }
.cab__izq { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.cab__prod { font: 700 clamp(11px, .72vw, 13px)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .6; padding-left: 18px; border-left: 1.5px solid currentColor; }
.cab__nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.cab__nav a { font-weight: 700; font-size: clamp(14px, .9vw, 16px); text-decoration: none; opacity: .75; }
.cab__nav a:hover { opacity: 1; }
@media (max-width: 900px) { .cab__nav .ocultar-chico { display: none; } }

/* ---------- botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 30px; border-radius: 999px;
  font: 800 clamp(16px, 1.05vw, 19px)/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--tinta { background: var(--ink); color: #fff; }
.btn--tinta:hover { background: #000; }
.btn--papel { background: #fff; color: var(--ink); }
.btn--papel:hover { background: #eef0f4; }
.btn--azul { background: var(--blue); color: #fff; }
.btn--azul:hover { background: var(--blue-2); }
.btn--borde { background: transparent; border-color: rgba(10, 10, 10, .2); color: var(--ink); }
.btn--borde:hover { border-color: rgba(10, 10, 10, .45); }
.noche .btn--borde, .tinta .btn--borde, .azul .btn--borde { border-color: rgba(255, 255, 255, .4); color: #fff; }
.noche .btn--borde:hover, .tinta .btn--borde:hover, .azul .btn--borde:hover { border-color: #fff; }
.nota { font-size: 14px; color: var(--ink-3); }
.noche .nota, .azul .nota { color: rgba(255, 255, 255, .55); }

/* ---------- WhatsApp flotante ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 62px; height: 62px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 30px; height: 30px; }

/* ---------- piezas comunes ---------- */
.grilla { display: grid; gap: clamp(16px, 1.6vw, 28px); }
.tarjeta { border-radius: var(--r); background: #fff; border: 1.5px solid var(--line); padding: clamp(22px, 2vw, 36px); }
.niebla .tarjeta { border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 700; font-size: clamp(14px, .9vw, 16px); background: #fff; }
.noche .chip { background: transparent; border-color: var(--line-inv); color: #fff; }
.video { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55)); }
.video__play span { width: clamp(70px, 6vw, 96px); height: clamp(70px, 6vw, 96px); border-radius: 50%; background: var(--blue); display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(29, 77, 255, .22); transition: transform .15s ease; }
.video__play:hover span { transform: scale(1.06); }
.video__play svg { width: 34%; height: 34%; margin-left: 8%; }
.video__play em { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 700 13px var(--mono); letter-spacing: .14em; color: #fff; font-style: normal; }
.video.sonando .video__play { display: none; }

/* preguntas */
.faq { border-top: 1.5px solid var(--line); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: clamp(18px, 1.6vw, 28px) 0; font-weight: 800; font-size: clamp(18px, 1.35vw, 24px); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 28px/1 var(--mono); color: var(--blue); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 clamp(18px, 1.6vw, 28px); color: var(--ink-2); max-width: 70ch; }

/* pie */
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 40px 110px; color: var(--ink-3); font-size: 15px; }
.pie a { text-decoration: none; }
.pie__links { display: flex; flex-wrap: wrap; gap: 22px; }

/* aparición al hacer scroll (sin movimiento si el usuario lo pidió) */
.revela { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.revela.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revela { opacity: 1; transform: none; transition: none; }
  .btn, .fab, .video__play span { transition: none; }
}
