/* ══════════════════════════════════════════════════════
   CENTRO DE IDIOMAS — ISTB  |  assets/css/style.css
   Variables CSS inyectadas dinámicamente por PHP desde
   config.json  (colores configurables desde el admin)
   ══════════════════════════════════════════════════════ */

/* Fallbacks para apertura directa del HTML */
:root {
  --bg:          #112236;
  --bg2:         #163050;
  --bg3:         #1a3860;
  --gold:        #c9922a;
  --gold-light:  #e8b96e;
  --gold-faint:  rgba(201,146,42,0.08);
  --gold-border: rgba(201,146,42,0.25);
  --text:        #e8e0d4;
  --muted:       #a8bdd0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 72px; /* altura del nav fijo */
}
body.has-notices { padding-top: 108px; }

/* ── GHOST LABELS (traducción al español) ── */
.ghost {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72em;
  color: var(--muted);
  opacity: 0.55;
  letter-spacing: 0.02em;
  margin-top: 2px;
  font-weight: 300;
}

/* ── UTILITARIOS ── */
.gold-line { width: 48px; height: 2px; background: var(--gold); margin: 20px 0 48px; }

section { padding: 100px 60px; }

.sec-tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); display: block; }

.sec-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 8px;
}
.sec-title strong { font-weight: 600; }

/* ══════════════════════════════════════════════════════
   NAVEGACIÓN
   ══════════════════════════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}
#main-nav.scrolled {
  background: rgba(17,34,54,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gold-border);
}

/* Marca / Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-main {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* Links de navegación */
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.nav-link > span:first-child {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover > span:first-child { color: var(--gold-light); }

/* Botón CTA del nav */
.nav-cta {
  background: var(--gold);
  color: #0d1b2a;
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-cta .ghost { color: #0d1b2a; opacity: 0.6; }

/* Hamburger móvil */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* Menú móvil */
#nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(17,34,54,0.97);
  backdrop-filter: blur(18px);
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--gold-border);
  z-index: 999;
  flex-direction: column;
}
#nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.nav-mobile-link:hover { color: var(--gold-light); }
.nav-mobile-cta {
  margin-top: 16px;
  background: var(--gold);
  color: #0d1b2a;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════════════════════
   BARRA DE AVISOS
   ══════════════════════════════════════════════════════ */
.notices-bar {
  position: fixed;
  top: 72px; left: 0; right: 0;
  z-index: 998;
  background: rgba(201,146,42,0.12);
  border-bottom: 1px solid var(--gold-border);
  padding: 6px 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  height: 36px;
}
.nb-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 600;
}
.nb-ticker-wrap { overflow: hidden; flex: 1; height: 100%; display: flex; align-items: center; }
.nb-ticker {
  color: var(--text);
  font-size: 0.8rem;
  opacity: 0.85;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(60vw); }
  100% { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  /* padding-top compensado por body padding-top */
}
.hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.08em;
  line-height: 1;
}
.hero-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before { content: ''; width: 36px; height: 1px; background: var(--gold); display: block; }

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.hero-h1 .gold { color: var(--gold); font-weight: 600; }
.hero-ghost { margin-bottom: 32px; }
.hero-ghost .ghost { font-size: 1.1rem; opacity: 0.4; }
.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 16px; margin-bottom: 72px; flex-wrap: wrap; }

.btn-gold {
  background: var(--gold);
  color: #0d1b2a;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-gold .ghost { color: #0d1b2a; opacity: 0.65; }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border: 1px solid rgba(232,224,212,0.3);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s, transform 0.15s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  border-top: 1px solid rgba(232,224,212,0.1);
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  padding-right: 40px;
  border-right: 1px solid rgba(232,224,212,0.1);
  margin-right: 40px;
}
.stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.stat-val {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ══════════════════════════════════════════════════════
   BANNER LEGAL A2
   ══════════════════════════════════════════════════════ */
#legal {
  padding: 60px;
  margin: 0 60px;
  background: linear-gradient(135deg, var(--gold-faint) 0%, transparent 60%);
  border-left: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.legal-watermark {
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 160px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.06;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,146,42,0.15);
  border: 1px solid var(--gold-border);
  padding: 5px 14px;
  margin-bottom: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.legal-badge::before { content: '●'; font-size: 0.5em; }
.legal-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.15;
}
.legal-body { max-width: 620px; color: var(--muted); line-height: 1.8; font-size: 0.95rem; margin-top: 16px; }
.legal-source { margin-top: 24px; font-size: 0.72rem; color: var(--gold); opacity: 0.7; font-style: italic; font-family: var(--serif); }

/* ══════════════════════════════════════════════════════
   PASOS DE INSCRIPCIÓN
   ══════════════════════════════════════════════════════ */
#enrollment { background: var(--bg2); }
.steps-grid { display: flex; flex-direction: column; margin-top: 60px; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 40px 0;
  border-top: 1px solid rgba(232,224,212,0.07);
  transition: background 0.3s;
}
.step:hover { background: var(--gold-faint); }
.step-num {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.12;
  line-height: 1;
  transition: opacity 0.3s;
}
.step:hover .step-num { opacity: 0.25; }
.step-body { padding-left: 20px; }
.step-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 4px; line-height: 1.2; }
.step-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-top: 10px; max-width: 560px; }
.step-badge {
  display: inline-block;
  margin-top: 14px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ══════════════════════════════════════════════════════
   TABLA DE NIVELES
   ══════════════════════════════════════════════════════ */
#levels { background: var(--bg); }
.levels-table { width: 100%; margin-top: 56px; border-collapse: collapse; }
.levels-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
  padding: 14px 20px;
  text-align: left;
}
.levels-table td {
  padding: 28px 20px;
  border-bottom: 1px solid rgba(232,224,212,0.06);
  font-size: 0.92rem;
  vertical-align: top;
}
.levels-table tr:hover td { background: var(--gold-faint); }
.level-code { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold); display: block; line-height: 1; }
.level-name { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.level-skills { display: flex; flex-direction: column; gap: 6px; }
.skill-pill { display: inline-block; background: rgba(232,224,212,0.06); padding: 3px 10px; font-size: 0.75rem; color: var(--muted); width: fit-content; }
.grad-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,146,42,0.15);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════
   CANALES DE COMUNICACIÓN
   ══════════════════════════════════════════════════════ */
#channels { background: var(--bg2); }
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}
.channel-card {
  background: var(--bg3);
  padding: 36px 32px;
  border-top: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.channel-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-faint) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.channel-card:hover { border-top-color: var(--gold); transform: translateY(-4px); }
.channel-card:hover::before { opacity: 1; }
.channel-icon {
  width: 40px; height: 40px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
}
.channel-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; line-height: 1.2; position: relative; }
.channel-desc { color: var(--muted); font-size: 0.87rem; line-height: 1.7; position: relative; }
.channel-platform {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  position: relative;
}
.channel-link {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.channel-link:hover { background: var(--gold); color: #0d1b2a; }

/* ══════════════════════════════════════════════════════
   SECCIÓN DE VIDEOS
   ══════════════════════════════════════════════════════ */
#videos { background: var(--bg); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.video-card {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--gold-border); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg2);
}
.video-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.video-card:hover .video-thumb { transform: scale(1.04); }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,0.45); }
.video-play-icon {
  width: 52px; height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.video-card:hover .video-play-icon { transform: scale(1.1); background: var(--gold-light); }
.video-play-icon svg { margin-left: 4px; }
.video-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
}
.video-info { padding: 16px 20px 20px; }
.video-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.video-platform { font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.videos-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--gold-border);
}

/* ══════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}
#lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  cursor: default;
}
.lightbox-header {
  position: absolute;
  top: -48px; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#lightbox-title {
  color: rgba(255,255,255,0.7);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#lightbox-close {
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}
#lightbox-close:hover { color: var(--gold-light); }
.lightbox-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.lightbox-frame-wrap iframe,
.lightbox-frame-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ══════════════════════════════════════════════════════
   GUÍA AULA VIRTUAL
   ══════════════════════════════════════════════════════ */
#moodle { background: var(--bg2); }
.moodle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  margin-top: 56px;
}
.moodle-card {
  background: var(--bg3);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.moodle-card:hover { background: rgba(26,56,96,0.9); }
.moodle-step-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.07;
  line-height: 1;
  user-select: none;
}
.moodle-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; line-height: 1.2; position: relative; }
.moodle-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.7; position: relative; }

/* ══════════════════════════════════════════════════════
   SECCIONES PERSONALIZADAS
   ══════════════════════════════════════════════════════ */
.section-custom { background: var(--bg); }
.section-custom.alt-bg { background: var(--bg2); }
.custom-content {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 32px;
}
.custom-content p  { margin-bottom: 1em; }
.custom-content ul,
.custom-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.custom-content li { margin-bottom: 0.4em; }
.custom-content a  { color: var(--gold-light); transition: color 0.2s; }
.custom-content a:hover { color: var(--gold); }
.custom-content strong { color: var(--text); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: #0a1520;
  border-top: 1px solid var(--gold-border);
  padding: 72px 60px 32px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-logo { height: 36px; width: auto; object-fit: contain; margin-bottom: 12px; display: block; }
.footer-address { color: var(--muted); font-size: 0.82rem; margin-top: 14px; }
.footer-email-link { display: inline-block; margin-top: 10px; color: var(--gold-light); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-email-link:hover { color: var(--gold); }
.footer-links-heading { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-nav-link { display: block; color: var(--muted); text-decoration: none; font-size: 0.85rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-nav-link:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.75rem; color: rgba(168,189,208,0.4); }
.admin-link { font-size: 0.68rem; color: rgba(168,189,208,0.18); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s; }
.admin-link:hover { color: var(--muted); }

/* ══════════════════════════════════════════════════════
   ANIMACIONES FADE-UP
   ══════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  #main-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 72px 32px; }
  #legal { margin: 0 24px; padding: 40px 28px; }
  footer { padding: 56px 32px 24px; }
}
@media (max-width: 640px) {
  section { padding: 56px 20px; }
  #hero { padding: 56px 20px; }
  #legal { margin: 0 16px; padding: 32px 20px; }
  footer { padding: 48px 20px 20px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 64px 1fr; }
  .step-num { font-size: 3rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(232,224,212,0.1); padding-bottom: 16px; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .channels-grid { grid-template-columns: 1fr; }
  .levels-table { display: block; overflow-x: auto; white-space: nowrap; }
}
