/* ═══════════════════════════════════════════════
   The Senior Geek → theme Ghost "seniorgeek"
   Overrides sobre la base de casper (screen.css)
   Paleta geek-tech: verde esmeralda + grafito
   ═══════════════════════════════════════════════ */

:root {
  --ink: #2a2e33;
  --muted: #5e6770;
  --dim: #8a929b;
  --paper: #f3f4f5;
  --line: #dfe2e5;
  --blue: #e3a200;
  --cyan: #f0b830;
  --dark: #1e2226;
  --navy-light: #3a4046;
  --white: #fdfdfc;
  --gold: #e3a200;
  --radius: 34px;

  /* mapear variables de casper a la paleta Senior Geek */
  --color-darkgrey: #2a2e33;
  --color-midgrey: #5e6770;
  --color-secondary-text: #8a929b;
  --color-lightgrey: #dfe2e5;
  --color-border: #dfe2e5;
  --color-wash: #f3f4f5;
  --ghost-accent-color: #e3a200;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gh-font-body: var(--font-sans);
  --gh-font-heading: var(--font-sans);
  --content-width: 720px;
  --container-width: 1160px;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ── Navbar (fija, blur, como el original) ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: .2s;
  background: rgba(255,255,255,.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
#nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 23px; letter-spacing: -.03em; color: var(--ink); flex-shrink: 0; }
.logo .logo-ink { color: var(--ink); }
.logo .logo-blue { color: var(--blue); }
.logo small { font-weight: 400; color: var(--muted); font-size: 15px; margin-left: 5px; }
.gh-head-menu { margin-left: auto; }
.gh-head-menu .nav { display: flex; gap: 20px; list-style: none; font-size: 13.5px; font-weight: 500; color: var(--muted); margin: 0; padding: 0; }
.gh-head-menu .nav li { margin: 0; padding: 0; white-space: nowrap; }
.gh-head-menu .nav a { color: var(--muted); }
.gh-head-menu .nav a:hover { color: var(--ink); }
.btn-subscribe { margin-left: 22px; }
/* Fix: Casper oculta los items del nav (opacity:0) hasta que su JS agrega
   .is-dropdown-loaded — nuestro header custom (#nav) no corre ese JS, asi que
   los links quedaban invisibles en desktop. Forzamos visible. */
body:not(.is-dropdown-loaded) .gh-head-menu .nav > li,
.gh-head-menu .nav > li {
  opacity: 1;
}
.menu { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ── Hero (clon del index.html) ── */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 72px 0 28px;
  background: linear-gradient(180deg, var(--white), var(--paper));
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-visual { min-height: 400px; border-radius: var(--radius); position: relative; overflow: hidden; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.stats { display: flex; gap: 40px; margin-top: 36px; }
.stat-num { font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Botones ── */
.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--blue); color: #1e2226; transition: .15s; border: none; cursor: pointer; text-decoration: none; }
.btn:hover { background: #c78e00; transform: translateY(-1px); color: #1e2226; }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--outline:hover { background: var(--paper); border-color: var(--muted); }

/* ── Secciones ── */
.section-title { max-width: 600px; margin-bottom: 40px; }
.section-title h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.posts-wrap { padding-top: 0; padding-bottom: 64px; }

/* ── Grid de posts (3 columnas, como blog.html) ── */
.post-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
}
.post-card {
  grid-column: auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e5e7eb;
  transition: .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.post-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.post-card .cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(0,0,0,.55);
  color: #fff;
  backdrop-filter: blur(4px);
  text-decoration: none;
}
.post-card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card .body h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
.post-card .post-card-content-link:hover { text-decoration: none; }
.post-card .post-card-content-link:hover h3 { color: var(--blue); }
.post-card .excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 10px; opacity: .75; }
.post-card .meta time { color: var(--muted); }

/* ── Artículo (post.html estilo) ── */
.post-template .article { padding: 120px 0 64px; }
.article-header { padding: 0 0 32px !important; }
.article-tag { margin-bottom: 16px; font-size: 14px; }
.article-tag a { color: var(--muted); text-decoration: none; }
.article-tag a:hover { color: var(--blue); }
.article-title { font-size: clamp(2.6rem, 4.5vw, 4.4rem) !important; font-weight: 800 !important; line-height: 1.1 !important; letter-spacing: -.03em !important; color: var(--ink) !important; }
.article-excerpt { color: var(--muted) !important; font-size: 1.8rem !important; }
.article-byline { margin: 24px 0 0 !important; }
.gh-button-share { border-radius: 999px !important; font-size: 1.3rem !important; }
.gh-content > p, .gh-content > ul, .gh-content > ol, .gh-content > blockquote {
  font-family: var(--font-sans) !important;
  font-size: 1.8rem !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
}
.gh-content a { color: var(--blue); }
.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 { color: var(--ink); letter-spacing: -.02em; }
.gh-canvas { --content-width: 720px; --container-width: 1160px; }
.article-comments { margin-top: 40px !important; }

/* ── Página estática (page.hbs) ── */
.page-template .article { padding: 140px 0 64px; }
.page-template .article-header { padding-bottom: 24px !important; }

/* ── Footer (clon del original: fondo ink) ── */
.site-footer {
  margin: 64px 0 0;
  padding: 48px 24px 32px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.site-footer .footer-line { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: #fff; }
.site-footer .footer-line a { color: #4a9eff; text-decoration: none; }
.site-footer .footer-sub { font-size: 16px; margin: 0 0 20px; color: #e8e8f0; opacity: 1; }
.site-footer .footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.site-footer .footer-links a { color: #9db8ff; font-size: 15px; text-decoration: none; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-copy { font-size: 14px; margin: 0; color: #c8c8d8; opacity: 1; }

/* ── Botón Suscribirse (header) + bloque boletín (footer) ── */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #1e2226;
  background: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.btn-subscribe:hover { background: #c78e00; color: #1e2226; transform: translateY(-1px); }
.footer-newsletter {
  text-align: center;
  padding: 0 0 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-newsletter-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 8px; letter-spacing: -.02em; }
.footer-newsletter-text { font-size: 15px; color: #c8c8d8; margin: 0 0 18px; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-subscribe--footer { font-size: 15px; padding: 12px 28px; }

/* ── Paginación ── */
.pagination { display: flex; justify-content: center; gap: 24px; margin-top: 48px; }
.pagination a { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.pagination .page-number { color: var(--muted); font-size: 13px; }

/* ── Secciones internas de páginas (clon del index) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-text p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.split-text h2, .section-block h2 { font-size: 32px; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 16px; color: var(--ink); }
.section-block { max-width: 760px; margin: 0 auto; }
.section-block p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.card { background: var(--white); border-radius: 24px; padding: 28px; border: 1px solid var(--line); transition: .2s; }
.card h3 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.02em; color: var(--ink); }
.card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-block { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.contact-row a { color: var(--blue); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.note-box { padding: 20px 24px; border-radius: 20px; background: #fff8e6; border: 1px solid #f0e0b8; font-size: 14px; color: #7a6212; line-height: 1.6; margin: 24px 0; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .post-feed { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 300px; max-width: 600px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  /* Menú hamburguesa: tablets y móviles (a <960px el nav de 10 items no cabe) */
  .gh-head-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); flex-direction: column; padding: 20px 28px; gap: 16px; border-bottom: 1px solid var(--line); }
  .gh-head-menu.open { display: flex; }
  .gh-head-menu .nav { flex-direction: column; gap: 16px; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  /* Header compacto para teléfonos: sin esto logo + Suscribirse + ☾ + ☰
     desbordan (el ☰ quedaba fuera de pantalla en iPhone → menú inaccesible) */
  #nav { padding: 10px 0; }
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .logo { font-size: 17px; }
  .logo small { display: none; }
  .nav-inner .btn-subscribe { margin-left: 0; padding: 8px 12px; font-size: 13px; }
  .theme-toggle { width: 32px; height: 32px; flex-shrink: 0; }
  .menu { font-size: 22px; flex-shrink: 0; }
  .post-feed { grid-template-columns: 1fr; }
  .links { display: none; }
  .stats { gap: 24px; }
}

/* ── Imagenes de posts limitadas al ancho del texto ── */
.gh-canvas .article-image {
  grid-column: main-start / main-end;
}
/* Feature image en páginas (sobre-mi, pilares, etc.): limitada y centrada.
   Sin esto, el srcset del theme pide hasta 1400px y estira fotos chicas. */
body.page-template .article-image {
  max-width: 420px;
  margin: 0 auto;
}
.gh-canvas .article-image img {
  border-radius: 12px;
}
.gh-content .kg-width-wide,
.gh-content .kg-width-full,
.gh-content .kg-image-card {
  grid-column: main-start / main-end;
  max-width: 100%;
}
.gh-content .kg-image-card img,
.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
  max-width: 100%;
  height: auto;
}

/* ── Botones de compartir por plataforma (final de cada post) ── */
.post-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line, #e3edf3);
}
.post-share-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  margin: 0 0 20px;
  text-transform: none;
}
.post-share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  background: #e8e8ee;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.post-share-btn:hover {
  color: #000;
  background: #d0d0d8;
  transform: translateY(-1px);
}
.post-share-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.post-share-whatsapp,
.post-share-telegram,
.post-share-facebook,
.post-share-x,
.post-share-linkedin,
.post-share-email {
  background: #e8e8ee;
}
html.dark-mode .post-share-btn {
  color: #fff;
  background: #2a2a32;
}
html.dark-mode .post-share-btn:hover {
  color: #fff;
  background: #3a3a44;
}
@media (max-width: 700px) {
  .post-share-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .post-share-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   Dark mode — auto (sigue al sistema) + botón ☾/☀
   Se activa con la clase html.dark-mode (Casper ya
   estiliza el contenido con sus reglas dark-mode;
   aquí mapeamos la paleta Senior Geek + fixes)
   ═══════════════════════════════════════════════ */
html.dark-mode {
  --ink: #ececec;
  --muted: #a2a8b0;
  --dim: #8a929b;
  --paper: #23272c;
  --line: rgba(255,255,255,.14);
  --blue: #f9ba32;
  --white: #16181b;
  --color-darkgrey: #ececec;
  --color-midgrey: #a2a8b0;
  --color-secondary-text: #8a929b;
  --color-lightgrey: rgba(255,255,255,.14);
  --color-border: rgba(255,255,255,.14);
  --color-wash: #23272c;
  --ghost-accent-color: #f9ba32;
}
html.dark-mode body { background: var(--white); color: var(--ink); }
/* header translúcido oscuro */
html.dark-mode #nav { background: rgba(22,24,27,.78); border-bottom-color: var(--line); }
/* menú móvil abierto */
html.dark-mode .gh-head-menu.open { background: rgba(22,24,27,.97); }
/* footer: gris oscuro Lufthansa */
html.dark-mode .site-footer { background: #101215; }
html.dark-mode .site-footer .footer-line { color: #fff; }
html.dark-mode .site-footer .footer-copy { color: #c8c8d8; }
/* note-box (aviso) en oscuro */
html.dark-mode .note-box { background: #2a2410; border-color: #55481c; color: #e8d9a0; }
/* post-cards */
html.dark-mode .post-card { background: var(--white); border-color: var(--line); }
html.dark-mode .post-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.45); }
/* tarjetas de páginas */
html.dark-mode .card { background: var(--white); border-color: var(--line); }
html.dark-mode .split-text h2,
html.dark-mode .section-block h2 { color: var(--ink); }
html.dark-mode .contact-row { color: var(--ink); }
/* botón de tema ☾/☀ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
html.dark-mode .theme-toggle { border-color: rgba(255,255,255,.3); color: #f5d76e; }

/* ── Botones redes sociales (autor) ── */
.author-profile-social-link:has(svg) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8e8ee;
  color: #111 !important;
  transition: background .15s ease, color .15s ease;
}
.author-profile-social-link:has(svg) svg {
  width: 13px;
  height: 13px;
}
.author-profile-social-link:has(svg):hover {
  background: #d0d0d8;
  color: #000 !important;
}
html.dark-mode .author-profile-social-link:has(svg) {
  background: #2a2a32;
  color: #fff !important;
}
html.dark-mode .author-profile-social-link:has(svg):hover {
  background: #3a3a44;
  color: #fff !important;
}

/* ── Reproductor "Escuchar" (Web Speech API) ── */
.audio-player-wrap { margin: 20px 0 0; }
.audio-player {
  grid-column: main-start / main-end;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid var(--line, rgba(7, 26, 48, 0.12));
  border-radius: 18px;
  background: var(--paper, #f5f8fc);
}
.ap-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--blue, #0a84ff);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease;
}
.ap-play:hover { background: #0a6ed6; transform: translateY(-1px); }
.ap-icon { width: 16px; height: 16px; }
.ap-icon-pause { display: none; }
.ap-play.is-playing .ap-icon-play { display: none; }
.ap-play.is-playing .ap-icon-pause { display: block; }
.ap-controls { display: flex; align-items: center; gap: 10px; }
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #e8e8ee;
  color: #111;
  transition: background .15s ease;
}
.ap-btn svg { width: 13px; height: 13px; }
.ap-btn:hover { background: #d0d0d8; }
.ap-btn:disabled { opacity: .4; cursor: default; }
.ap-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted, #506980);
}
.ap-rate select {
  padding: 5px 8px;
  border: 1px solid var(--line, rgba(7, 26, 48, 0.12));
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #071a30);
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
}
.ap-status {
  margin-left: auto;
  font-size: .82rem;
  color: var(--muted, #506980);
}
.gh-content .ap-current {
  background: rgba(10, 132, 255, 0.08);
  border-radius: 6px;
  box-shadow: -3px 0 0 0 var(--blue, #0a84ff);
}
html.dark-mode .audio-player {
  background: #1a2536;
  border-color: rgba(255, 255, 255, 0.14);
}
html.dark-mode .ap-rate { color: #8fa3bd; }
html.dark-mode .ap-rate select {
  background: #0b1322;
  color: #e8ecf5;
  border-color: rgba(255, 255, 255, 0.14);
}
html.dark-mode .ap-btn { background: #2a2a32; color: #fff; }
html.dark-mode .ap-btn:hover { background: #3a3a44; }
html.dark-mode .ap-status { color: #8fa3bd; }

/* ── Tag page: más espacio sobre el header del tag ── */
.tag-template .post-feed {
  padding-top: max(12vmin, 64px);
}
@media (max-width: 767px) {
  .tag-template .post-feed {
    padding-top: max(8vmin, 44px);
  }
}

/* ── Galería de videos (página /videos/) ── */
.video-gallery { margin: 2rem 0 3rem; }
.vg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.vg-card {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.vg-card:hover, .vg-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  outline: none;
}
.vg-thumb { position: relative; padding-bottom: 56.25%; background: #000; }
.vg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vg-dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,0.8); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
}
.vg-play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: #e00;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; padding-left: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0; transition: opacity .15s ease;
}
.vg-card:hover .vg-play { opacity: 1; }
.vg-meta { padding: 10px 12px 12px; background: #000; }
.vg-meta h4 {
  font-size: 15px; line-height: 1.35; margin: 0 0 4px;
  color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vg-meta p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.65); }

/* Lightbox */
.vg-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  padding: 4vmin;
}
.vg-lightbox.is-open { display: flex; }
.vg-lb-inner { position: relative; width: 100%; max-width: 960px; }
.vg-lb-frame { position: relative; padding-bottom: 56.25%; background: #000; border-radius: 8px; overflow: hidden; }
.vg-lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vg-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer; padding: 4px 10px;
}
.vg-close:hover { color: #e00; }

/* ── Página En Vivo (/en-vivo/) ── */
.en-vivo-box { margin: 2rem 0 3rem; }
.ev-status { margin-bottom: 1rem; }
.ev-badge {
  display: inline-block;
  font-weight: 700; font-size: 14px;
  padding: 6px 14px; border-radius: 20px;
  letter-spacing: .3px;
}
.ev-live .ev-badge { background: #e00; color: #fff; }
.ev-upcoming .ev-badge { background: #1a73e8; color: #fff; }
.ev-offline .ev-badge { background: #eee; color: #555; }
.ev-frame {
  position: relative; width: 100%;
  padding-bottom: 56.25%;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  margin-bottom: 1.2rem;
}
.ev-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #15171a; }
.ev-sub { font-size: 15px; color: #5b6b78; margin: 0 0 8px; line-height: 1.5; }
.ev-offline-box {
  border: 1px dashed #c4cdd5;
  border-radius: 12px;
  padding: 2rem;
  background: #fafafa;
  text-align: center;
}
.ev-offline-box .ev-title { font-size: 22px; margin-bottom: 10px; }
.ev-offline-box .ev-sub { max-width: 520px; margin: 0 auto 1.2rem; }
.ev-btn {
  display: inline-block;
  background: #15171a; color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
  transition: background .15s ease;
}
.ev-btn:hover { background: #e00; color: #fff; }

/* Página En Vivo — dark mode */
html.dark-mode .ev-title { color: var(--ink); }
html.dark-mode .ev-sub { color: var(--muted); }
html.dark-mode .ev-offline-box {
  background: var(--white);
  border-color: var(--line);
}
html.dark-mode .ev-offline-box .ev-title { color: var(--ink); }
html.dark-mode .ev-offline-box .ev-sub { color: var(--muted); }
html.dark-mode .ev-badge.ev-offline .ev-badge { background: #2a2a32; color: #cfd6e4; }
html.dark-mode .ev-offline .ev-badge { background: #2a2a32; color: #cfd6e4; }
html.dark-mode .ev-btn { background: var(--ink); color: #0b1322; }
html.dark-mode .ev-btn:hover { background: #4da3ff; color: #0b1322; }
