/* 90 Cuadros — estilos compartidos (portafolio + canciones)
   Colores tomados del logo: noche azul, degradado violeta→magenta→cian, play naranja. */
:root {
  --bg: #0B0A1A;
  --bg-2: #120F28;
  --surface: #17143A;
  --surface-2: #1F1B4A;
  --ink: #F4F1FF;
  --muted: #A7A2C9;
  --line: #2C2760;
  --orange: #FF8A1F;
  --orange-ink: #1A0E02;
  --magenta: #E23AE0;
  --violet: #7B4DFF;
  --cyan: #2FD3FF;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 45%, var(--magenta) 100%);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --radius: 22px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F4FF; --bg-2: #EDE9FF; --surface: #FFFFFF; --surface-2: #F1EEFF;
  --ink: #120F2E; --muted: #5B567F; --line: #DCD6F5; --orange-ink: #1A0E02;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F4FF; --bg-2: #EDE9FF; --surface: #FFFFFF; --surface-2: #F1EEFF;
    --ink: #120F2E; --muted: #5B567F; --line: #DCD6F5;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.hot { color: var(--orange-ink); background: var(--orange); }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 16px; flex-shrink: 0; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s cubic-bezier(.2,.8,.2,1); margin: 0; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 18px; padding: 12px 14px; }
  .menu-btn { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px;
  text-decoration: none; padding: 15px 24px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: transform .15s cubic-bezier(.2,.8,.2,1), background-color .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.btn.primary:hover { background: #FF9C3F; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.play-ico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Etiqueta de cuadro (motivo de la marca) */
.frame-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.frame-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 0 4px rgba(255,59,59,.18); }

section.block { padding-block: 96px; }
[id] { scroll-margin-top: 72px; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.head h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
.head p { color: var(--muted); font-size: 18px; max-width: 60ch; }
@media (max-width: 700px) { section.block { padding-block: 64px; } .head { margin-bottom: 30px; } }

.chip { display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Video con portada (carga YouTube solo al tocar) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; width: 100%; color: #fff; display: block; }
.yt.vertical { aspect-ratio: 9 / 16; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .2s; opacity: .88; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt .yt-play { position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: var(--orange-ink); box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .15s; }
.yt:hover .yt-play { transform: scale(1.06); }
.yt .yt-play .play-ico { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; margin-left: 5px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

footer.site { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .15s; }
.wa-float:active { transform: scale(.94); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (hover: none) { .btn:hover, .nav-links a:hover { background: inherit; } .btn.primary:hover { background: var(--orange); } }
