/* ============================================================
   NATALIA RÍOS — Sistema de diseño
   Coaching ejecutivo · Liderazgo · Equipos de alto rendimiento
   Estética: editorial oscura, neón turquesa + amarillo CTA
   ============================================================ */

/* ---------- Tipografía ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Fondo / superficies */
  --bg:            #0a0b0d;
  --bg-2:          #0f1114;
  --surface:       #14171b;
  --surface-2:     #1a1e23;
  --surface-3:     #22272e;
  --line:          rgba(255,255,255,.08);
  --line-strong:   rgba(255,255,255,.16);

  /* Texto */
  --text:          #f4f5f2;
  --text-soft:     #b9bfc4;
  --text-mute:     #7d858c;

  /* Marca */
  --neon:          #35f0c0;   /* turquesa/verde neón — principal */
  --neon-deep:     #12c79a;
  --neon-glow:     rgba(53,240,192,.35);
  --gold:          #ffe14d;   /* amarillo CTA — secundario */
  --gold-deep:     #f5c518;

  /* Utilidad */
  --radius:        14px;
  --radius-lg:     24px;
  --radius-pill:   999px;
  --maxw:          1240px;
  --gutter:        clamp(20px, 5vw, 64px);
  --ease:          cubic-bezier(.22,.61,.36,1);
  --shadow:        0 24px 60px -24px rgba(0,0,0,.7);

  --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--neon); color: #04120e; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Tipografía de escala ---------- */
.display,
.h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; }
.display { font-size: clamp(3.2rem, 11vw, 9.5rem); font-weight: 400; }
.h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
.h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.serif-italic { font-style: italic; font-weight: 300; }
.neon-text { color: var(--neon); }
.gold-text { color: var(--gold); }
.text-soft { color: var(--text-soft); }
.text-mute { color: var(--text-mute); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--neon);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--neon); opacity: .7;
}
.eyebrow--center::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--text-soft); font-weight: 300; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--neon);
  --btn-fg: #04120e;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.7em;
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--neon-glow); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #1a1500; }
.btn--gold:hover { box-shadow: 0 12px 30px -8px rgba(255,225,77,.4); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); box-shadow: none; }
.btn--lg { padding: 1.1em 2.1em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* pill chip / tag */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em 1em; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .8rem; color: var(--text-soft); font-weight: 500;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.chip--neon { color: var(--neon); border-color: rgba(53,240,192,.3); background: rgba(53,240,192,.06); }
.chip--gold { color: var(--gold); border-color: rgba(255,225,77,.28); background: rgba(255,225,77,.05); }
button.chip:hover, a.chip:hover { border-color: var(--neon); color: var(--neon); }
.chip.is-active { background: var(--neon); color: #04120e; border-color: var(--neon); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10,11,13,.72);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 1.5rem;
}
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.brand b { color: var(--neon); font-weight: 500; }
.brand small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; margin-top: -2px; }

.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu a {
  padding: .55em 1.05em; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 500; color: var(--text-soft);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.nav-menu a.is-current { color: var(--neon); background: rgba(53,240,192,.08); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-soft);
  transition: border-color .25s, color .25s, background .25s;
}
.icon-btn:hover { border-color: var(--neon); color: var(--neon); }
.nav-toggle { display: none; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8,9,11,.98); backdrop-filter: blur(8px);
  padding: 96px var(--gutter) 40px;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400;
  padding: .35em 0; border-bottom: 1px solid var(--line); color: var(--text);
  transition: color .25s, padding-left .3s var(--ease);
}
.mobile-nav a:hover { color: var(--neon); padding-left: .5em; }
.mobile-nav .btn { margin-top: 2rem; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(8,9,11,.9); backdrop-filter: blur(14px);
  display: grid; place-items: start center; padding-top: 18vh;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-box { width: min(680px, 90vw); }
.search-box input {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line-strong);
  font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 3rem); padding: .2em 0; color: var(--text);
}
.search-box input:focus { outline: none; border-bottom-color: var(--neon); }
.search-box p { color: var(--text-mute); margin-top: 1rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 110px); padding-top: 120px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.2) 30%, rgba(10,11,13,.85) 78%, var(--bg) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(53,240,192,.10), transparent 55%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(80% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; }
.hero h1 { max-width: 15ch; margin-block: .3em .5em; }
.hero .lead { max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; align-items: center; }
/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,11,13,.55)); }
.card__cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: .4em .9em; border-radius: var(--radius-pill);
  background: rgba(10,11,13,.7); color: var(--neon); backdrop-filter: blur(6px);
}
.card__body { padding: 1.5rem 1.6rem 1.7rem; }
.card__meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-mute); margin-bottom: .7rem; }
.card__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.card a.card__title:hover, .card:hover .card__title { color: var(--text); }
.card__excerpt { color: var(--text-soft); font-size: .94rem; margin-top: .6rem; font-weight: 300; }
.card__link { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .5em; color: var(--neon); font-weight: 600; font-size: .9rem; }
.card__link .arrow { transition: transform .3s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(4px); }

/* Grids */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.section-head .h2 { max-width: 16ch; }
.section-head p { max-width: 42ch; color: var(--text-soft); }

/* ---------- Métricas ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.metric { background: var(--bg-2); padding: clamp(1.6rem, 3vw, 2.6rem); }
.metric__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 400; line-height: 1; color: var(--neon); letter-spacing: -.03em; }
.metric__num .unit { color: var(--text); }
.metric__label { color: var(--text-soft); font-size: .92rem; margin-top: .6rem; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--rev { grid-template-columns: .95fr 1.05fr; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(10,11,13,.5)); }
.badge-float {
  position: absolute; z-index: 3; background: rgba(10,11,13,.78); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1rem 1.2rem;
}
.badge-float .metric__num { font-size: 2.2rem; }

/* ---------- Newsletter block ---------- */
.newsletter {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(53,240,192,.14), transparent 45%), var(--surface);
  border: 1px solid var(--line); padding: clamp(2.4rem, 5vw, 4.5rem);
}
.newsletter__form { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; max-width: 620px; }
.field { position: relative; flex: 1 1 200px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 1em 1.4em; transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field textarea { border-radius: var(--radius); resize: vertical; min-height: 130px; line-height: 1.6; }
/* Fecha: usa el esquema oscuro del navegador para el icono del calendario */
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] { color-scheme: dark; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); cursor: pointer; }
/* Select: quitar estilo nativo y poner flecha propia */
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
  padding-right: 3em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237d858c' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 1.2em center; background-size: 16px;
}
.field select:required:invalid { color: var(--text-mute); }   /* placeholder look */
.field select option { color: var(--text); background: var(--surface); }
.field select option[value=""][disabled] { color: var(--text-mute); }
.form-note { font-size: .78rem; color: var(--text-mute); margin-top: .9rem; }

/* ---------- Podcast / list rows ---------- */
.ep-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.4rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease);
}
.ep-row:hover { padding-left: .6rem; }
.ep-num { font-family: var(--serif); font-size: 1.4rem; color: var(--text-mute); min-width: 2.6ch; }
.ep-play { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--neon); transition: background .25s, color .25s, transform .25s; }
.ep-row:hover .ep-play { background: var(--neon); color: #04120e; transform: scale(1.05); }
.ep-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.ep-dur { color: var(--text-mute); font-size: .85rem; }

/* Stars */
.stars { color: var(--gold); letter-spacing: .1em; font-size: .9rem; }

/* ---------- Books ---------- */
.book { text-align: left; }
.book__cover {
  position: relative; aspect-ratio: 3/4.4; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.7); transition: transform .5s var(--ease);
  background: var(--surface-2);
}
.book:hover .book__cover { transform: translateY(-8px) rotate(-1deg); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__title { font-family: var(--serif); font-size: 1.15rem; margin-top: 1.1rem; font-weight: 500; }
.book__author { color: var(--text-mute); font-size: .85rem; margin-top: .2rem; }

/* ---------- Events ---------- */
.event-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .35s, transform .35s var(--ease), background .35s;
}
.event-row:hover { border-color: var(--line-strong); transform: translateX(4px); background: var(--surface-2); }
.event-date {
  text-align: center; min-width: 76px; padding: .7rem .5rem; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
}
.event-date .d { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--neon); }
.event-date .m { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-top: .3rem; }
.event-city { color: var(--text-mute); font-size: .85rem; display: flex; align-items: center; gap: .4em; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding-top: 160px; padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 85% -10%, rgba(53,240,192,.12), transparent 55%);
}
.page-hero .breadcrumb { color: var(--text-mute); font-size: .82rem; margin-bottom: 1.4rem; display: flex; gap: .5em; }
.page-hero .breadcrumb a:hover { color: var(--neon); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 56ch; margin-top: 1.3rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 2.4rem; border-left: 1px solid var(--line-strong); }
.tl-item { position: relative; padding-bottom: 3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-2.4rem - 6px); top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 5px rgba(53,240,192,.12);
}
.tl-year { font-family: var(--serif); color: var(--neon); font-size: 1.1rem; }
.tl-item h4 { margin: .3rem 0 .5rem; }

/* ---------- Filters bar ---------- */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filters .search-inline {
  margin-left: auto; display: flex; align-items: center; gap: .6em;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: .55em 1.1em;
}
.filters .search-inline input { background: transparent; border: none; width: 180px; }
.filters .search-inline input:focus { outline: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3.5rem; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text-soft); font-weight: 500; transition: all .25s;
}
.pagination a:hover { border-color: var(--neon); color: var(--neon); }
.pagination .is-active { background: var(--neon); color: #04120e; border-color: var(--neon); }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.4rem; }
.prose p { font-size: 1.12rem; color: var(--text-soft); font-weight: 300; line-height: 1.75; }
.prose h2 { font-family: var(--serif); font-size: 2rem; margin-top: 2.6rem; color: var(--text); letter-spacing: -.01em; }
.prose h3 { font-family: var(--serif); font-size: 1.5rem; margin-top: 2rem; color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--neon); padding: .4rem 0 .4rem 1.6rem; margin-block: 2rem;
  font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--text); font-weight: 300;
}
.prose a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; list-style: disc; color: var(--text-soft); }
.prose li { margin-top: .5rem; }
.prose img { border-radius: var(--radius); margin-block: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(3.5rem, 6vw, 6rem); margin-top: clamp(3rem,6vw,7rem); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-brand .brand { font-size: 1.8rem; }
.footer-brand p { color: var(--text-soft); max-width: 34ch; margin-top: 1rem; font-weight: 300; }
.footer-col h5 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--text-soft); padding: .35em 0; transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: var(--neon); padding-left: .3em; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0 2.4rem; border-top: 1px solid var(--line); color: var(--text-mute); font-size: .84rem; }
.footer-bottom a:hover { color: var(--neon); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; background: var(--neon); color: #04120e;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px var(--neon-glow);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Promo popup ---------- */
.promo { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px;
  background: rgba(6,7,9,.72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.promo.is-open { opacity: 1; pointer-events: auto; }
.promo__card {
  position: relative; width: min(520px, 92vw); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transform: translateY(20px) scale(.97); transition: transform .5s var(--ease);
}
.promo.is-open .promo__card { transform: translateY(0) scale(1); }
.promo__inner { padding: clamp(1.8rem, 4vw, 2.8rem); }
.promo__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.4); display: grid; place-items: center; color: var(--text); z-index: 2; }
.promo__close:hover { color: var(--neon); }
.promo__glow { position: absolute; inset: 0; background: radial-gradient(90% 70% at 100% 0%, rgba(255,225,77,.14), transparent 55%); pointer-events: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.4rem; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--text-mute); display: inline-flex; align-items: center; gap: 3rem; margin-right: 3rem; }
.marquee span::after { content: "✦"; color: var(--neon); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Divider glow ---------- */
.hr-glow { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Utility spacing ---------- */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}
.stack > * + * { margin-top: 1.1rem; }
.flex { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.pill-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions .btn--gold { display: none; } /* ya está en el menú móvil */
  .split, .split--rev { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 16/11; order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: flex-start; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .ep-row { grid-template-columns: auto 1fr auto; }
  .ep-row .ep-dur { display: none; }
  .event-row { grid-template-columns: auto 1fr; }
  .event-row .btn { grid-column: 2; justify-self: start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
