/* Panellum — sitio público. Tinta, papel y los tres colores del logo. */
:root {
  --ink: #0B0910;
  --ink-2: #15111E;
  --ink-3: #201A2C;
  --paper: #F4EAD3;
  --paper-dim: #CFC4AE;
  --coral: #FF5A5F;
  --gold: #FFC93C;
  --blue: #3B6CFF;
  --text: #F6F1E6;
  --muted: #A79FB2;
  --line: #2C2539;
  --hard: 6px 6px 0 #000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
/* Trama de puntos de imprenta, muy tenue, en todo el fondo. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px);
  background-size: 7px 7px;
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold); color: var(--ink); }

.display { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ── Cabecera ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 16, 0.82);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font-size: 24px; letter-spacing: 0.04em; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--ink-3); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--gold); }

/* ── Portada ──────────────────────────────────────────── */
.hero { position: relative; padding: clamp(36px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--gold); }
.hero h1 { font-size: clamp(54px, 9.4vw, 132px); line-height: 0.88; margin: 0 0 24px; }
.hero h1 .l2 { color: var(--coral); display: block; }
.hero h1 .l3 { display: block; -webkit-text-stroke: 2px var(--text); color: transparent; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: #D9D2E3; max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px;
  font-weight: 800; text-decoration: none; border: 2.5px solid #000; box-shadow: var(--hard);
  transition: transform .15s, box-shadow .15s; cursor: pointer; font-size: 16px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
.btn-gold { background: var(--gold); color: #120E18; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: var(--ink-3); }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ── Teléfono ─────────────────────────────────────────── */
.phone {
  position: relative; width: min(340px, 78vw); aspect-ratio: 9 / 19.2; margin: 0 auto;
  border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2A2433, #0E0C12 60%);
  box-shadow: 0 0 0 2px #3A3245 inset, 0 40px 80px -30px rgba(255, 90, 95, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.phone::before { /* cámara */
  content: ""; position: absolute; top: 22px; left: 50%; width: 11px; height: 11px; margin-left: -5px;
  border-radius: 50%; background: #05040A; box-shadow: 0 0 0 2px #1D1925; z-index: 3;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #000; touch-action: none; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .phone { transform: rotate(3deg); }
.hero-sticker {
  position: absolute; z-index: 4; padding: 8px 12px; background: var(--gold); color: #120E18; font-weight: 900; font-size: 13px;
  border: 2.5px solid #000; box-shadow: 4px 4px 0 #000; border-radius: 10px; transform: rotate(-6deg); left: -6%; bottom: 14%;
  letter-spacing: .02em; text-transform: uppercase;
}

/* ── Secciones de demo ───────────────────────────────── */
.demo { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); position: relative; }
.demo .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.demo.flip .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.demo.flip .copy { order: 2; }
.num { font-family: "Anton", sans-serif; font-size: 15px; color: var(--muted); letter-spacing: .2em; }
.demo h2 { font-size: clamp(40px, 6vw, 78px); line-height: 0.92; margin: 10px 0 18px; }
.demo h2 em { font-style: normal; color: var(--coral); }
.demo p { color: #D2CBDC; margin: 0 0 16px; max-width: 32em; }
.hint {
  display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: var(--gold);
  border: 1.5px dashed rgba(255, 201, 60, 0.5); padding: 8px 12px; border-radius: 10px;
}
.stage { position: relative; }

/* Demo de lupa: la página grande */
.loupe-stage {
  position: relative; width: 100%; max-width: 620px; aspect-ratio: 2 / 3; margin: 0 auto; touch-action: none;
  border: 3px solid #000; box-shadow: 10px 10px 0 var(--coral); background: var(--paper); cursor: crosshair;
}
.loupe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.controls { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.control { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 700; min-width: 180px; flex: 1; }
.control output { color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--gold); }

/* Botonera de los teléfonos */
.pad { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pad button {
  font: 800 15px/1 "Inter", system-ui, sans-serif; color: #120E18; background: var(--paper); border: 2.5px solid #000;
  box-shadow: 4px 4px 0 #000; border-radius: 12px; padding: 12px 16px; cursor: pointer; min-width: 52px;
}
.pad button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.pad button.on { background: var(--gold); }
.counter {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.62); color: #fff; font: 700 12px/1 "Inter", system-ui, sans-serif; white-space: nowrap;
  backdrop-filter: blur(4px);
}
.tapzones { position: absolute; inset: 0; display: grid; grid-template-columns: 3fr 4fr 3fr; z-index: 4; }
.tapzones button { background: transparent; border: 0; cursor: pointer; }

/* Curl */
.curl-stage {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 2 / 3; margin: 0 auto; touch-action: none; cursor: grab;
  filter: drop-shadow(14px 18px 0 rgba(0, 0, 0, 0.55));
}
.curl-stage:active { cursor: grabbing; }
.curl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ── Funciones ───────────────────────────────────────── */
.features { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.features h2 { font-size: clamp(38px, 5.5vw, 70px); margin: 0 0 34px; line-height: .95; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 2px solid var(--line); }
.feat { padding: 26px 22px; border: 1px solid var(--line); background: var(--ink-2); position: relative; transition: background .2s; }
.feat:hover { background: var(--ink-3); }
.feat .tag { font: 400 13px/1 "Anton", sans-serif; letter-spacing: .14em; color: var(--coral); }
.feat h3 { font: 400 26px/1.05 "Anton", sans-serif; text-transform: uppercase; margin: 10px 0 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Privacidad ──────────────────────────────────────── */
.trust { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.trust-card {
  position: relative; background: var(--paper); color: #17121F; border: 3px solid #000; box-shadow: 12px 12px 0 var(--blue);
  padding: clamp(24px, 4.5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
}
.trust-card h2 { font-size: clamp(36px, 5vw, 64px); line-height: .92; margin: 0; }
.trust-card p { margin: 0 0 14px; }
.trust-card a { color: #B4141B; font-weight: 700; }
.stamp {
  position: absolute; right: -14px; top: -22px; transform: rotate(8deg); background: var(--coral); color: #fff;
  font: 400 18px/1 "Anton", sans-serif; letter-spacing: .06em; padding: 10px 14px; border: 3px solid #000;
}

/* ── Llamado final ───────────────────────────────────── */
.final { padding: clamp(70px, 10vw, 140px) 0; text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.final h2 { font-size: clamp(48px, 9vw, 120px); line-height: .88; margin: 0 0 26px; }
.final h2 span { color: var(--gold); }

/* ── Páginas legales ─────────────────────────────────── */
.doc { padding: 40px 0 64px; }
.doc .panel { max-width: 860px; margin: 0 auto; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 48px); }
.doc h1 { font: 400 clamp(32px, 6vw, 52px)/1.05 "Anton", sans-serif; text-transform: uppercase; color: var(--gold); margin-top: 0; }
.doc h2 { margin-top: 2em; font-size: 22px; color: #fff; }
.doc h3 { font-size: 18px; }
.doc p, .doc li { color: #D4CEDD; overflow-wrap: break-word; }
.doc hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.doc blockquote { margin: 1em 0; padding: .6em 1em; border-left: 4px solid var(--gold); background: var(--ink-3); border-radius: 8px; }
.table-scroll { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--ink-3); color: var(--gold); }

/* ── Pie ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: #08070C; padding: 28px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--text); }

/* ── Aparición al hacer scroll ───────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Móvil ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap, .demo .wrap, .demo.flip .wrap, .trust-card { grid-template-columns: 1fr; }
  .demo.flip .copy { order: 0; }
  .hero .phone { transform: none; margin-top: 10px; }
  .hero-sticker { left: 2%; }
  /* Un solo renglón deslizable: el menú en dos líneas duplicaba la cabecera fija. */
  .top .wrap { flex-wrap: nowrap; gap: 8px; }
  .brand span { font-size: 20px; }
  .brand { flex-shrink: 0; }
  .nav { margin-left: auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 9px; font-size: 13px; white-space: nowrap; }
}
