:root {
  --bg: #0B1B33;
  --surface: #13284D;
  --surface-2: #1A3462;
  --ink: #F5F4F0;
  --ink-dim: #C9D3E3;
  --muted: #8FA0BC;
  --line: rgba(245,244,240,0.14);
  --blue: #4A9BE8;
  --gold: #F2A93B;
  --shadow: rgba(0,0,0,0.4);
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Barlow', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; } }
.display {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.mono { font-family: 'IBM Plex Mono', monospace; }

.grain {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.045; z-index: 50; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 2.1rem; width: 2.1rem; border-radius: 50%; display: block; }
.brand span {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap;
}
.navlinks { display: flex; margin: 0 1.2rem; gap: clamp(1rem, 2vw, 2rem); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-dim); }
.navlinks a { text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--blue); }
.nav-flecha { display: none; } @media (max-width: 1200px) { .navlinks { display: none; } nav { flex-wrap: wrap; } .brand { margin-right: 0.5rem; } .nav-flecha { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 0.75rem; padding: 0; } .menu-cuenta { margin-left: auto; } nav.nav-abierta .navlinks { display: flex; flex-direction: column; order: 3; width: 100%; gap: 0; padding-top: 0.6rem; } nav.nav-abierta .navlinks a { padding: 0.8rem 0.2rem; border-top: 1px solid var(--line); } }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.4rem; border-radius: 0.4rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.86rem; letter-spacing: 0; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px var(--shadow); }
.btn-gold { background: var(--gold); color: #1a1200; box-shadow: 0 12px 26px -12px var(--shadow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 10vw, 6.5rem) clamp(1.25rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.hero-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.glow-1 { width: 30rem; height: 30rem; top: -12rem; left: -8rem; background: radial-gradient(circle, var(--blue), transparent 70%); }
.glow-2 { width: 26rem; height: 26rem; bottom: 4rem; right: -10rem; background: radial-gradient(circle, var(--blue), transparent 70%); opacity: 0.5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;  color: var(--muted); border: 1px solid var(--line); padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.eyebrow .dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0.5rem var(--gold); }

.hero h1 {
  position: relative; z-index: 1; margin: 0;
  font-size: clamp(2.2rem, 6.2vw, 4.4rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { position: relative; z-index: 1; margin: 1.6rem 0 0; max-width: 52ch; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--ink-dim); }
.hero-sub strong { color: var(--ink); }
.hero-cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.3rem; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: stretch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-media { position: relative; border-radius: 1.1rem; overflow: hidden; min-height: 320px; box-shadow: 0 24px 48px -20px var(--shadow); }
.hero-media img { position: absolute; inset: 0; }
@media (max-width: 900px) { .hero-media { min-height: 0; aspect-ratio: 4/3; } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, color-mix(in srgb, var(--bg) 75%, transparent) 100%); }
.hero-media-tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: #fff;
  background: rgba(10,10,12,0.55); backdrop-filter: blur(4px); padding: 0.4rem 0.7rem; border-radius: 0.4rem;
}

/* stat strip */
.stats {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 0.9rem; overflow: hidden;
  margin-top: clamp(1.8rem, 4vw, 2.6rem); max-width: 64rem;
}
.stat { background: var(--surface); padding: 1.2rem 1.3rem; flex: 1 1 140px; } @media (max-width: 760px) { .stat:last-child { text-align: center; } }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; color: var(--blue); line-height: 1; }
.stat .lbl { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }

/* link Salón de la fama */
.navlinks a.nav-fama { color: var(--gold); }
.navlinks a.nav-fama::before { content: "★ "; }
.navlinks a.nav-fama:hover { color: var(--blue); }
.navlinks a.nav-rank { color: var(--blue); }
.navlinks a.nav-rank::before { content: "★ "; color: var(--gold); }
.navlinks a.nav-rank:hover { color: var(--gold); }


section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 6vw, 4rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0.3rem 0 0; }

/* quienes somos */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about-photo { border-radius: 0.9rem; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 20px 40px -18px var(--shadow); position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo .cap {
  position: absolute; left: 0.9rem; bottom: 0.9rem; right: 0.9rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: #fff;
  background: rgba(10,10,12,0.55); backdrop-filter: blur(4px); padding: 0.4rem 0.6rem; border-radius: 0.4rem;
}
.about p { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-dim); max-width: 60ch; }
.about p + p { margin-top: 1rem; }
.about strong { color: var(--ink); }
.specsheet { border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); padding: 1.4rem 1.5rem; margin-top: 1.6rem; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--ink); font-weight: 500; text-align: right; max-width: 60%; }

/* timeline */
.timeline-year { margin-bottom: 2.4rem; }
.timeline-year:last-child { margin-bottom: 0; }
.year-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.year-head .yr { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.01em; color: var(--blue); line-height: 1; }
.year-head .rule { flex: 1; height: 1px; background: var(--line); }
.edition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.edition-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  border: 1px solid var(--line); border-radius: 0.7rem; background: var(--surface);
  padding: 0.95rem 1.1rem; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease;
}
.edition-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.edition-card .name { font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.edition-card .meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.5rem; }

/* reels */
.reels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.reel-card {
  display: block; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface);
  overflow: hidden; position: relative; aspect-ratio: 9/14;
}
.reel-fallback { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.reel-thumb {
  flex: 1; position: relative; display: flex; align-items: flex-end; padding: 1rem; overflow: hidden;
  background: linear-gradient(165deg, var(--blue), #0c1520 75%);
}
.reel-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.reel-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(190deg, rgba(10,10,14,0.05) 40%, rgba(8,8,10,0.85) 100%);
}
.reel-thumb .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.reel-thumb .play svg { width: 1.2rem; height: 1.2rem; fill: #fff; }
.reel-thumb .views {
  position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.reel-cap { padding: 0.85rem 1rem 1rem; font-size: 0.85rem; color: var(--ink-dim); }
.reel-cap .date { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }

/* youtube top videos */
.yt-scroll { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 1.2rem; overflow-x: auto; padding-bottom: 0.5rem; }
@media (max-width: 1000px) { .yt-scroll { grid-auto-flow: column; grid-template-columns: none; } .yt-scroll > * { width: 240px; } }
.yt-card {
  display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 0.9rem;
  background: var(--surface); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease;
}
.yt-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.yt-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb .rank {
  position: absolute; top: 0.6rem; left: 0.6rem; font-family: var(--font-display); font-weight: 800;
  font-size: 0.85rem; color: #fff; background: rgba(10,10,12,0.65); padding: 0.2rem 0.55rem; border-radius: 0.35rem;
}
.yt-thumb .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.yt-thumb .play svg { width: 1rem; height: 1rem; fill: #fff; }
.yt-info { padding: 0.85rem 1rem 1rem; }
.yt-info .title { font-size: 0.86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-info .views { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-top: 0.4rem; }

/* certificado generator */
.cert-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .cert-wrap { grid-template-columns: 1fr; } }
.cert-form p { color: var(--ink-dim); max-width: 46ch; margin: 0 0 1.4rem; }
.cert-field { margin-bottom: 1rem; }
.cert-field label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.4rem; }
.cert-field input {
  width: 100%; max-width: 26rem; padding: 0.75rem 1rem; border-radius: 0.5rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: 'Barlow', sans-serif; font-size: 1rem;
}
.cert-field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }
.cert-actions .btn { border: none; cursor: pointer; }
.cert-preview {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); padding: 1.2rem;
}
.cert-preview canvas { width: 100%; max-width: 22rem; height: auto; border-radius: 0.5rem; display: block; }

/* socials */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.social-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: 0.8rem;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.social-card:hover { transform: translateY(-3px); border-color: var(--blue); background: var(--surface-2); }
.social-icon { width: 2.6rem; height: 2.6rem; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; background: var(--blue); flex: none; }
.social-icon svg { width: 1.25rem; height: 1.25rem; fill: #fff; }
.social-text .name { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; }
.social-text .sub { font-size: 0.85rem; color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* giant watermark */
.watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  opacity: 0.035; white-space: nowrap; line-height: 1;
}

/* historia narrativa */
.historia-wrap { position: relative; }
.historia-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); position: relative; z-index: 1; }
@media (max-width: 860px) { .historia-grid { grid-template-columns: 1fr; } }
.historia-grid p { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--ink-dim); max-width: 62ch; }
.historia-grid p + p { margin-top: 1rem; }
.historia-grid strong { color: var(--ink); }
.pull-quotes { display: flex; flex-direction: column; gap: 1.1rem; align-self: start; }
.pull-quote {
  border-left: 4px solid var(--gold); border-radius: 0.3rem; background: var(--surface);
  padding: 1.1rem 1.3rem; font-size: 1.05rem; font-style: italic; color: var(--ink);
}
.pull-quote span { display: block; margin-top: 0.5rem; font-family: 'IBM Plex Mono', monospace; font-style: normal; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.team-card { border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); padding: 1.4rem; text-align: center; transition: transform 0.2s ease, border-color 0.2s ease; }
.team-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.team-avatar {
  width: 4.6rem; height: 4.6rem; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(140deg, var(--blue), var(--gold)); font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card .name { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; }
.team-card .role { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.35rem; }
.team-card .bio { font-size: 0.83rem; color: var(--muted); margin-top: 0.6rem; }

/* leyendas */
.legends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.legend-card { border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); padding: 1.1rem 1.3rem; }
.legend-card .who { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--blue); text-transform: uppercase; }
.legend-card p { font-size: 0.88rem; color: var(--ink-dim); margin: 0.5rem 0 0; }
.legend-highlight {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 0.9rem; padding: 1.3rem 1.5rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--blue) 16%, var(--surface)), var(--surface));
}
.legend-highlight .badge {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--gold); flex: none;
}
.legend-highlight p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
.legend-highlight strong { color: var(--ink); }

/* momentos */
.momentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 760px) { .momentos-grid { grid-template-columns: 1fr; } }
.momento {
  position: relative; border-radius: 0.9rem; overflow: hidden; aspect-ratio: 4/5;
  box-shadow: 0 18px 36px -16px var(--shadow); transition: transform 0.3s ease;
}
.momento:nth-child(1) { transform: rotate(-2deg); }
.momento:nth-child(2) { transform: rotate(1.5deg) translateY(0.8rem); }
.momento:nth-child(3) { transform: rotate(-1deg); }
.momento:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
@media (prefers-reduced-motion: reduce) { .momento, .momento:hover { transform: none; } }
.momento img { width: 100%; height: 100%; object-fit: cover; display: block; }
.momento .tag {
  position: absolute; left: 0.8rem; bottom: 0.8rem; right: 0.8rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: #fff;
  background: rgba(10,10,12,0.6); backdrop-filter: blur(4px); padding: 0.45rem 0.6rem; border-radius: 0.4rem;
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); padding: clamp(1.5rem, 3vw, 2.2rem); }
.contact-card .role { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.contact-card h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0.4rem 0 1.1rem; }
.contact-line { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.contact-line:first-of-type { border-top: none; }
.contact-line a { text-decoration: none; color: var(--blue); }
.contact-line a:hover { text-decoration: underline; }
.contact-line svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--muted); }

footer {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 6vw, 4rem) 3rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
footer img { height: 2.4rem; width: auto; display: block; }
footer .foot-note { font-size: 0.82rem; color: var(--muted); max-width: 44ch; }
footer .foot-note a { color: var(--blue); text-decoration: none; }
footer .foot-note a:hover { text-decoration: underline; }
footer .foot-flag { display: inline-block; width: 1.1em; height: auto; vertical-align: -0.12em; border-radius: 2px; }
footer .foot-dev { flex-basis: 100%; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); text-decoration: none; text-align: center; transition: color 0.2s ease; }
footer .foot-dev strong { color: var(--blue); font-weight: 700; }
footer .foot-dev:hover, footer .foot-dev:focus-visible { color: var(--ink); }
footer .foot-dev:hover strong { text-decoration: underline; }

/* ---------- barra: eventos ---------- */
.navlinks a.nav-eventos { color: var(--ink); }
.navlinks a.nav-eventos::before { content: "● "; color: #2a9d5a; }
.navlinks a.nav-eventos:hover { color: var(--blue); }

/* ---------- menú de cuenta (☰) ---------- */
.menu-cuenta { position: relative; }
.menu-btn {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.menu-rayas { display: grid; gap: 4px; }
.menu-rayas i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem); width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.8rem;
  box-shadow: 0 20px 40px -18px var(--shadow); padding: 0.5rem; display: grid; z-index: 50;
}
.menu-panel[hidden] { display: none; }
.menu-panel a, .menu-panel button {
  font: inherit; font-weight: 600; font-size: 0.92rem; text-align: left; text-decoration: none;
  color: var(--ink); background: none; border: 0; padding: 0.6rem 0.75rem; border-radius: 0.5rem; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--blue); }
.menu-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.75rem 0.8rem; border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; }
.menu-avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
}
.menu-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-nombre { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.menu-mail { font-size: 0.78rem; color: var(--muted); word-break: break-all; }
.menu-sep { height: 1px; background: var(--line); margin: 0.3rem 0; }
.menu-movil { display: none; }

/* ---------- brillos de fondo en todas las secciones ---------- */
html, body { overflow-x: clip; }
body > section, main > section { position: relative; isolation: isolate; }
#historia { overflow: visible !important; overflow-x: clip !important; }
body > section::before, main > section::before,
body > section::after, main > section::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(90px);
}
/* brillo principal */
body > section::before, main > section::before {
  width: 30rem; height: 30rem; top: 5%;
  background: radial-gradient(circle, var(--blue), transparent 70%); opacity: 0.65;
}
/* brillo secundario, del otro lado y más abajo */
body > section::after, main > section::after {
  width: 22rem; height: 22rem; bottom: 5%;
  background: radial-gradient(circle, var(--blue), transparent 70%); opacity: 0.45;
}
body > section:nth-of-type(odd)::before, main > section:nth-of-type(odd)::before { left: -12rem; }
body > section:nth-of-type(odd)::after, main > section:nth-of-type(odd)::after { right: -9rem; }
body > section:nth-of-type(even)::before, main > section:nth-of-type(even)::before { right: -12rem; }
body > section:nth-of-type(even)::after, main > section:nth-of-type(even)::after { left: -9rem; }
/* cada tres secciones, el secundario es celeste (más intenso) */
body > section:nth-of-type(3n)::after, main > section:nth-of-type(3n)::after {
  background: radial-gradient(circle, #5BC8F2, transparent 70%); opacity: 0.6;
}
/* celular: un resplandor pegado a cada costado */
@media (max-width: 720px) {
  body > section::before, main > section::before,
  body > section::after, main > section::after {
    width: 14rem; height: 24rem; filter: blur(45px); border-radius: 50%;
    left: auto; right: auto; top: auto; bottom: auto;
  }
  /* izquierda, arriba */
  body > section::before, main > section::before { left: -8rem; top: 5%; opacity: 0.8; }
  /* derecha, abajo */
  body > section::after, main > section::after { right: -8rem; bottom: 5%; opacity: 0.7; }
  /* en las secciones pares se invierten, para que no quede siempre igual */
  body > section:nth-of-type(even)::before, main > section:nth-of-type(even)::before { left: auto; right: -8rem; }
  body > section:nth-of-type(even)::after, main > section:nth-of-type(even)::after { right: auto; left: -8rem; }
  body > section:nth-of-type(3n)::after, main > section:nth-of-type(3n)::after { opacity: 0.85; }
}

/* =====================================================
   LEGALES (ventana de lectura: términos, privacidad, cookies, reembolsos)
   ===================================================== */
.legal-modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,0.72); display: grid; place-items: center; padding: 1rem; }
.legal-caja { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; width: min(100%, 680px); max-height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.legal-top h2 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; font-size: clamp(1.1rem, 4vw, 1.4rem); line-height: 1.1; }
.legal-cerrar { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.legal-cuerpo { padding: 1.1rem 1.2rem 1.4rem; overflow-y: auto; overscroll-behavior: contain; font-size: 0.95rem; color: var(--ink-dim); }
.legal-cuerpo h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); font-size: 1.02rem; margin: 1.4rem 0 0.4rem; }
.legal-cuerpo h3:first-child { margin-top: 0; }
.legal-cuerpo p, .legal-cuerpo li { line-height: 1.6; overflow-wrap: anywhere; }
.legal-cuerpo ul { padding-left: 1.2rem; margin: 0.4rem 0; }
.legal-cuerpo strong { color: var(--ink); }
.legal-cuerpo a { color: var(--blue); }
.legal-act { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--muted); }
.legal-recuadro { border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.8rem 0.9rem; background: var(--bg); margin: 0.8rem 0; }
.legal-recuadro .btn { margin-top: 0.6rem; }
a[data-legal]:not(.cf-item) { color: var(--blue); text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) {
  .legal-modal { padding: 0; place-items: end stretch; }
  .legal-caja { width: 100%; max-height: 92vh; border-radius: 1rem 1rem 0 0; }
}

/* reels: 2 por fila en el celu */
@media (max-width: 560px) { .reels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; } .reel-cap { padding: 0.6rem 0.7rem 0.75rem; font-size: 0.78rem; } .reel-thumb .views { font-size: 0.95rem; } }
