:root {
  --ink: #0b1b2b;
  --ink-2: #33475b;
  --muted: #6b7a89;
  --bg: #f8f1e7;
  --band: #efe4d4;
  --card: #ffffff;
  --soft: #f3ebe0;
  --line: #e7dccd;
  --ac: #e4472b;
  --ac-2: #ff7a45;
  --sea: #0ea5b7;
  --night: #0a1726;
  --bar: rgb(255 255 255 / .86);
  --bar-line: rgb(11 27 43 / .08);
  --r: 18px;
  --shadow: 0 10px 30px -12px rgb(11 27 43 / .25);
  --display: 'Anton', 'Impact', sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --script: 'Yellowtail', cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #eef3f8;
  --ink-2: #b9c6d4;
  --muted: #8c9db1;
  --bg: #0a121d;
  --band: #0f1a28;
  --card: #132134;
  --soft: #1b2b40;
  --line: #24384f;
  --bar: rgb(10 18 29 / .86);
  --bar-line: rgb(255 255 255 / .08);
  --shadow: 0 12px 30px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { color: inherit; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* Tipografía */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; font-size: clamp(30px, 4.4vw, 52px); }
.display.xl { font-size: clamp(44px, 8vw, 104px); }
.script { font-family: var(--script); font-size: clamp(30px, 4vw, 54px); margin: 0; color: #fff; transform: rotate(-4deg); line-height: 1; text-shadow: 0 3px 16px rgb(0 0 0 / .35); }
.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.lead { font-size: clamp(15px, 1.6vw, 18px); max-width: 620px; }
.hint { color: var(--muted); font-size: 14px; }
.hint a { color: var(--ac); font-weight: 700; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; background: var(--ac); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--ac); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn.big { padding: 15px 28px; font-size: 18px; }
.btn.outline { background: transparent; color: var(--ac); box-shadow: inset 0 0 0 2px var(--ac); }
.btn.outline:hover { background: var(--ac); color: #fff; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn.off { background: var(--soft); color: var(--muted); cursor: default; }
.btn.off:hover { transform: none; box-shadow: none; }
.pill-out { border: 2px solid var(--ac); color: var(--ac); border-radius: 999px; padding: 7px 18px; font-weight: 700; font-size: 15px; }

/* ---------- Barra de navegación: sólida, con vidrio esmerilado ---------- */
.topbar { position: sticky; top: 0; z-index: 1000; background: var(--bar); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--bar-line); transition: box-shadow .3s; }
body.scrolled .topbar { box-shadow: 0 8px 24px -16px rgb(0 0 0 / .45); }
.bar-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 24px; letter-spacing: .02em; flex: none; }
.logo svg { width: 42px; fill: var(--ac); color: var(--ac); }
.links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.links a { display: flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.links a svg { width: 17px; height: 17px; }
.links a:hover { color: var(--ink); }
.links a.on { background: var(--card); color: var(--ac); box-shadow: 0 2px 8px -3px rgb(0 0 0 / .2); }
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.seg { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--bg); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.icon-btn:hover { background: var(--soft); transform: rotate(-15deg); }
.icon-btn svg { width: 19px; height: 19px; }
.tools .btn { padding: 10px 18px; }
.burger { display: none; }
.burger i { display: block; width: 16px; height: 2px; margin: 2px 0; background: currentColor; transition: transform .3s, opacity .2s; }
body.menu .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu .burger i:nth-child(2) { opacity: 0; }
body.menu .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Pie */
.foot { background: var(--night); color: #c6d2de; padding: 40px 0; margin-top: 60px; }
.foot-in { display: grid; gap: 10px; }
.foot .logo { color: #fff; }
.foot p { margin: 0; max-width: 560px; }
.foot small { opacity: .6; }

/* Entrada de vista y aparición al hacer scroll */
#app.enter { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .links { position: fixed; inset: 66px 12px auto; flex-direction: column; border-radius: 18px; padding: 8px; background: var(--card); box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .3s var(--ease); }
  body.menu .links { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 13px 14px; font-size: 16px; }
  .burger { display: grid; }
}
@media (max-width: 640px) {
  .tools .btn { display: none; }
  .logo span { font-size: 20px; }
  .bar-in { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .slide:first-child { opacity: 1; }
}

/* ---------- Menú móvil: botón en cápsula + panel a pantalla completa ---------- */
.burger { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.burger b { display: grid; place-content: center; gap: 5px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); }
.burger i { display: block; width: 14px; height: 2px; margin: 0; border-radius: 2px; background: var(--bg); transition: transform .35s var(--ease); }
body.menu .burger { background: var(--ac); border-color: var(--ac); color: #fff; }
body.menu .burger b { background: #fff; }
body.menu .burger i { background: var(--ac); }
body.menu .burger i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu .burger i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.drawer { display: none; }
@media (max-width: 1020px) {
  .links { display: none !important; }
  .burger { display: inline-flex; }
  .drawer { display: grid; align-content: space-between; position: fixed; inset: 66px 0 0; z-index: 999; padding: 28px 20px 32px; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; overflow: auto; }
  body.menu { overflow: hidden; }
  body.menu .drawer { opacity: 1; visibility: visible; transform: none; }
  .drawer nav { display: grid; }
  .drawer nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--display); font-size: clamp(34px, 9vw, 52px); text-transform: uppercase; line-height: 1; }
  body.menu .drawer nav a { animation: up .5s var(--ease) backwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
  .drawer nav a small { font-family: var(--body); font-size: 13px; font-weight: 800; color: var(--ac); }
  .drawer nav a:hover { color: var(--ac); }
  .drawer-tools { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
  .drawer-tools .seg button { padding: 8px 16px; font-size: 14px; }
}
@media (max-width: 640px) {
  .tools .seg, .tools #theme { display: none; }
  .burger span { display: none; }
  .burger { padding: 0 6px; }
}

/* ---------- Pie de página ---------- */
.foot { position: relative; overflow: hidden; background: var(--night); color: #b7c4d3; padding: 56px 0 0; margin-top: 70px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; }
.foot-brand .logo { color: #fff; }
.foot-brand p { margin: 0; max-width: 340px; line-height: 1.6; }
.foot h4 { margin: 4px 0 12px; color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.foot-grid > div:not(.foot-brand) { display: grid; align-content: start; gap: 9px; }
.foot-grid a:not(.btn):not(.logo) { color: #b7c4d3; text-decoration: none; font-size: 15px; transition: color .2s, transform .2s; }
.foot-grid a:not(.btn):not(.logo):hover { color: #fff; transform: translateX(3px); }
.foot-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding: 18px 0 22px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13px; }
.foot-bottom small { opacity: .65; }
.foot-mark { display: block; text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 17vw, 250px); line-height: .78; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .1); margin-bottom: -.12em; user-select: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
html, body { overflow-x: clip; }
/* Líneas del botón de menú: dos rayas que se cruzan en ✕ */
.burger b { position: relative; display: block; }
.burger b i { position: absolute; left: 8px; width: 14px; }
.burger b i:nth-child(1) { top: 11px; }
.burger b i:nth-child(2) { top: 17px; }
body.menu .burger b i:nth-child(1) { top: 14px; transform: rotate(45deg); }
body.menu .burger b i:nth-child(2) { top: 14px; transform: rotate(-45deg); }
