/* ============================================================================
   HIBRIDOAPP · Sistema de diseño (liviano, sin frameworks)
   - Colores de marca (--primary, --accent) los inyecta el panel (inline).
   - Modo día/noche vía [data-theme="light"|"dark"] en <html>.
   - Superficies derivadas → todo se re-pinta solo al cambiar la marca.
   ============================================================================ */

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; }

/* ---------- Tema: NOCHE (por defecto) ---------- */
:root, [data-theme="dark"] {
  --bg:          5 20 36;      /* fondo profundo */
  --surface:     13 28 45;     /* tarjetas */
  --surface-2:   18 33 49;     /* tarjetas elevadas */
  --surface-3:   39 54 71;     /* chips / hover */
  --text:        212 228 250;  /* texto principal */
  --muted:       146 146 155;  /* texto secundario */
  --border:      69 70 77;     /* bordes sutiles */
  --shadow: 0 20px 45px -15px rgba(0,0,0,.6);
}

/* ---------- Tema: DÍA ---------- */
[data-theme="light"] {
  --bg:          243 246 251;
  --surface:     255 255 255;
  --surface-2:   248 250 253;
  --surface-3:   232 237 245;
  --text:        17 24 39;
  --muted:       100 108 124;
  --border:      222 227 236;
  --shadow: 0 18px 40px -18px rgba(20,40,80,.28);
}

/* ---------- Base ---------- */
body {
  background: rgb(var(--bg));
  color: rgb(var(--text));
  font-family: var(--font-body, system-ui, sans-serif);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
  padding-bottom: 120px; /* espacio para el player flotante */
}
h1, h2, h3, h4, h5 { font-family: var(--font-heading, var(--font-body)); line-height: 1.15; font-weight: 800; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
@media (max-width: 640px) { .section { padding: 32px 0; } .container { padding: 0 16px; } }

/* ---------- Utilidades ---------- */
.muted { color: rgb(var(--muted)); }
.accent { color: rgb(var(--accent)); }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }
.uppercase { text-transform: uppercase; letter-spacing: .12em; }

/* Glassmorphism (la firma visual del diseño) */
.glass {
  background: rgb(var(--surface-2) / .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(var(--accent) / .12);
}

/* Glow neón en hover */
.neon { transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.neon:hover {
  box-shadow: 0 0 18px rgb(var(--accent) / .35);
  border-color: rgb(var(--accent));
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: rgb(var(--accent)); color: #04121f; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px -8px rgb(var(--accent) / .6); }
.btn-ghost { border: 1px solid rgb(var(--border)); color: rgb(var(--text)); }
.btn-ghost:hover { background: rgb(var(--surface-3)); }

/* ---------- Barra superior (fecha + redes) ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 12px; color: rgb(var(--muted));
  border-bottom: 1px solid rgb(var(--border) / .5);
}
.topbar .socials { display: flex; gap: 14px; }
.topbar a:hover { color: rgb(var(--accent)); }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* Botones de descarga de la app */
.app-badges { display: flex; gap: 8px; }
.app-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 9px;
  background: rgb(var(--surface-3)); border: 1px solid rgb(var(--border)); color: rgb(var(--text));
  transition: border-color .2s ease, transform .2s ease; }
.app-badge:hover { border-color: rgb(var(--accent)); transform: translateY(-1px); color: rgb(var(--text)); }
.app-badge.disabled { opacity: .5; }
.app-badge svg { flex-shrink: 0; }
.app-badge span { display: flex; flex-direction: column; line-height: 1.15; font-size: 12.5px; font-weight: 700; }
.app-badge small { font-size: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
@media (max-width: 720px) { .app-badge span { display: none; } .app-badge { padding: 7px; } }

/* Banner publicidad superior */
.promo-box {
  display: flex; align-items: center; justify-content: center;
  margin: 14px 0 4px; padding: 6px;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 12px;
  overflow: hidden; transition: border-color .2s ease;
}
.promo-box:hover { border-color: rgb(var(--accent)); }
.promo-box img { max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; border-radius: 8px; display: block; }
.promo-box.is-empty { min-height: 72px; gap: 8px; border-style: dashed; color: rgb(var(--muted)); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.promo-box.is-empty .material-symbols-outlined { color: rgb(var(--accent)); }

/* Iconos de redes sociales (logos SVG) con efecto de ONDAS */
.topbar .socials { gap: 12px; }
.social-ico { position: relative; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--surface-3)); color: rgb(var(--text));
  transition: color .2s ease, background .2s ease, transform .2s ease; }
.social-ico svg { position: relative; z-index: 1; }
.social-ico:hover { color: rgb(var(--accent)); background: rgb(var(--accent) / .16); transform: translateY(-2px); }

/* Ondas (radar ping) — continuas y suaves, más intensas al hover */
.social-ico::before, .social-ico::after,
.footer .social-btn::before, .footer .social-btn::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1.5px solid rgb(var(--accent)); opacity: 0; pointer-events: none;
  animation: ripple 2.8s ease-out infinite;
}
.social-ico::after, .footer .social-btn::after { animation-delay: 1.4s; }
.social-ico:hover::before, .social-ico:hover::after { animation-duration: 1.1s; }
.footer .social-btn { position: relative; }
.footer .social-btn svg { display: block; position: relative; z-index: 1; }
@keyframes ripple { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.85); opacity: 0; } }

/* ---------- Slider de publicidad superior ---------- */
.promo-carousel { position: relative; margin: 14px 0 4px; border-radius: 12px; overflow: hidden;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); }
.promo-track { position: relative; height: 120px; }
.promo-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 6px; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.promo-item.active { opacity: 1; pointer-events: auto; }
.promo-item img { max-width: 100%; max-height: 108px; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.promo-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  border-radius: 50%; background: rgb(var(--bg) / .55); backdrop-filter: blur(4px); color: rgb(var(--text));
  display: grid; place-items: center; opacity: 0; transition: opacity .2s ease, background .2s ease; z-index: 2; }
.promo-carousel:hover .promo-nav { opacity: 1; }
.promo-nav:hover { background: rgb(var(--accent)); color: #04121f; }
.promo-nav.prev { left: 8px; } .promo-nav.next { right: 8px; }
.promo-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--text) / .3); transition: all .25s ease; }
.promo-dot.active { background: rgb(var(--accent)); width: 20px; border-radius: 4px; }

/* Espacios publicitarios en secciones */
.promo-inline { margin: 8px 0; }

/* Publicidad popup centrada (oscurece la web) */
.promo-modal { position: fixed; inset: 0; z-index: 95; background: rgb(0 0 0 / .8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .3s ease; }
.promo-modal[hidden] { display: none; }
.promo-modal-box { position: relative; width: 100%; max-width: 430px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / .8); animation: popIn .4s ease; }
.promo-modal-box img { width: 100%; display: block; }
.promo-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgb(0 0 0 / .6); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.promo-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* Crédito de desarrollador */
.dev-credit { margin-top: 10px; font-size: 12px; color: rgb(var(--muted)); text-align: center; }
.dev-credit a { color: rgb(var(--accent)); font-weight: 600; }
.dev-credit a:hover { text-decoration: underline; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--bg) / .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--border));
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.brand-logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: rgb(var(--muted)); transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: rgb(var(--text)); }
.nav-links a.active { color: rgb(var(--accent)); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; color: rgb(var(--text)); transition: background .2s ease; }
.icon-btn:hover { background: rgb(var(--surface-3)); }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
}

/* ---------- Hero ---------- */
.hero { position: relative; aspect-ratio: 21/9; border-radius: 18px; overflow: hidden; margin: 24px 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--bg)) 5%, transparent 60%); z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s ease; }
.hero:hover .hero-bg { transform: scale(1.05); }
.hero-content { position: absolute; bottom: 40px; left: 40px; right: 40px; z-index: 2; max-width: 640px; }
.hero-badge { display: inline-block; background: rgb(var(--accent)); color: #04121f; padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 5vw, 60px); margin-bottom: 12px; }
.hero p { color: rgb(var(--text) / .85); margin-bottom: 22px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .hero { aspect-ratio: 4/5; } .hero-content { left: 20px; right: 20px; bottom: 24px; } }

/* ---------- Encabezado de sección ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head .title { border-left: 4px solid rgb(var(--accent)); padding-left: 18px; }
.section-head h2 { font-size: clamp(22px, 3vw, 32px); }
.section-head p { color: rgb(var(--muted)); margin-top: 4px; }
.section-head .link { color: rgb(var(--accent)); font-size: 13px; font-weight: 700; }
.section-head .link:hover { text-decoration: underline; }

@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* ---------- Programación (barra Ahora / A continuación / Después) ---------- */
.prog-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.prog-slot { flex: 1 1 240px; min-width: 240px; display: flex; align-items: stretch; justify-content: space-between; gap: 12px;
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--border)); border-radius: 14px; padding: 14px 16px; overflow: hidden; transition: border-color .2s ease; }
.prog-slot-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.prog-slot-label { font-size: 11.5px; font-weight: 700; color: rgb(var(--muted)); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.prog-slot h3 { font-size: 16px; line-height: 1.2; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-slot-time { font-size: 13px; color: rgb(var(--muted)); }
.prog-slot-thumb { width: 66px; height: 66px; border-radius: 11px; overflow: hidden; flex-shrink: 0; align-self: center; position: relative;
  background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); display: grid; place-items: center; }
.prog-slot-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.thumb-letter { position: absolute; z-index: 0; font-family: var(--font-heading); font-weight: 800; font-size: 30px; color: rgb(var(--accent) / .55); }

/* Resaltado del programa EN VIVO */
.prog-slot.live { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .10);
  box-shadow: 0 0 0 1px rgb(var(--accent) / .45), 0 0 20px rgb(var(--accent) / .22); }
.prog-slot.live .prog-slot-label { color: rgb(var(--accent)); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--accent)); display: inline-block; animation: pulse 1.2s infinite; }

/* Botón "Programación completa" */
.prog-slot.cta { flex: 0 0 auto; min-width: 160px; align-items: center; cursor: pointer; text-align: left;
  background: rgb(var(--accent)); color: #04121f; border: none; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; line-height: 1.2; }
.prog-slot.cta:hover { filter: brightness(1.06); }
.prog-slot.cta .material-symbols-outlined { font-size: 28px; }

/* Modal programación completa */
.prog-modal { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.prog-modal[hidden] { display: none; }
.prog-modal-box { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.prog-modal-title { margin-bottom: 18px; font-size: 20px; }
.prog-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--surface-3)); color: rgb(var(--text)); font-size: 22px; display: grid; place-items: center; }
.prog-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.prog-full-list { display: flex; flex-direction: column; gap: 8px; }
.prog-full-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid rgb(var(--border)); }
.prog-full-item.live { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .08); }
.prog-full-thumb { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex-shrink: 0; position: relative; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); display: grid; place-items: center; }
.prog-full-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.prog-full-thumb .thumb-letter { font-size: 22px; }
.prog-full-body { flex: 1; min-width: 0; }
.prog-full-body strong { display: block; font-size: 15px; }
.prog-full-body span { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-full-time { text-align: right; flex-shrink: 0; font-size: 13px; color: rgb(var(--muted)); }
.live-badge { display: inline-flex; align-items: center; gap: 4px; background: rgb(var(--accent)); color: #04121f; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-bottom: 4px; }

/* ---------- Eventos (flyer + modal) ---------- */
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .events-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .events-grid { grid-template-columns: repeat(2,1fr); } }
.event-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; text-align: left;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); transition: border-color .2s ease, transform .2s ease; }
.event-card:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.event-flyer { position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); }
.event-flyer img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-card:hover .event-flyer img { transform: scale(1.05); }
.event-date-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgb(var(--accent)); color: #04121f; border-radius: 10px; padding: 5px 11px; text-align: center; line-height: 1; font-weight: 800; display: flex; flex-direction: column; gap: 2px; font-size: 11px; box-shadow: 0 4px 12px rgb(0 0 0 / .3); }
.event-date-badge strong { font-size: 18px; }
.event-flyer-fallback { position: absolute; inset: 0; display: none; place-items: center; color: rgb(var(--accent) / .5); }
.event-flyer-fallback .material-symbols-outlined { font-size: 54px; }
.event-flyer.no-img .event-flyer-fallback { display: grid; }
.event-info { padding: 12px 14px; }
.event-info h3 { font-size: 15px; line-height: 1.25; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-more { font-size: 13px; color: rgb(var(--accent)); font-weight: 700; }

.event-modal { position: fixed; inset: 0; z-index: 85; background: rgb(0 0 0 / .8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.event-modal[hidden] { display: none; }
.event-modal-box { position: relative; width: 100%; max-width: 700px; max-height: 88vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; box-shadow: var(--shadow); }
.event-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 22px; display: grid; place-items: center; }
.event-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.event-modal-flyer { width: 100%; display: block; max-height: 62vh; object-fit: contain; background: #000; }
.event-modal-inner { padding: 22px 24px; }
.event-modal-inner h2 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 8px; }
.event-modal-date { display: inline-flex; align-items: center; gap: 6px; color: rgb(var(--accent)); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.event-modal-inner p { color: rgb(var(--muted)); line-height: 1.75; margin-bottom: 16px; }
.event-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 700; }
.event-wa:hover { filter: brightness(1.05); }

/* ---------- Top musical + Podcasts ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col > * { min-width: 0; } /* evita que las columnas se desborden */
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.col-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.col-head .material-symbols-outlined { color: rgb(var(--accent)); font-size: 30px; }
.col-head h2 { font-size: clamp(20px,2.4vw,26px); letter-spacing: .1em; text-transform: uppercase; }

.top-row { display: flex; align-items: center; gap: 18px; padding: 12px; border-radius: 10px; border-bottom: 1px solid rgb(var(--border) / .3); transition: background .2s ease; }
.top-row:hover { background: rgb(var(--surface-2)); }
.top-rank { font-family: var(--font-heading); font-style: italic; font-weight: 800; font-size: 26px; color: rgb(var(--muted)); width: 34px; text-align: center; transition: color .2s ease; }
.top-row:hover .top-rank { color: rgb(var(--accent)); }
.top-thumb { width: 48px; height: 48px; border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-info { flex: 1; min-width: 0; }
.top-info h4 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-info p { color: rgb(var(--muted)); font-size: 12px; }
.top-play { color: rgb(var(--muted)); opacity: 0; transition: opacity .2s ease, color .2s ease; }
.top-row:hover .top-play { opacity: 1; color: rgb(var(--accent)); }

/* Podcast card */
.pod-card { display: flex; gap: 18px; padding: 16px; border-radius: 14px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); transition: background .2s ease; margin-bottom: 16px; }
.pod-card:hover { background: rgb(var(--surface-2)); }
.pod-cover { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; flex-shrink: 0; position: relative; }
.pod-cover img { width: 100%; height: 100%; object-fit: cover; }
.pod-cover .play-badge { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .35); opacity: 0; transition: opacity .2s ease; }
.pod-card:hover .play-badge { opacity: 1; }
.pod-cover .play-badge .material-symbols-outlined { color: #fff; font-size: 34px; }
.pod-meta { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pod-ep { color: rgb(var(--accent)); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.pod-meta h4 { font-size: 16px; margin-bottom: 4px; }
.pod-meta p { color: rgb(var(--muted)); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-source { display:inline-flex; align-items:center; gap:4px; font-size:11px; margin-top:6px; color: rgb(var(--muted)); }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
.news-feat { cursor: pointer; border-radius: 16px; overflow: hidden; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); transition: border-color .2s ease; }
.news-feat:hover { border-color: rgb(var(--accent)); }
.news-feat-img { aspect-ratio: 16/9; overflow: hidden; }
.news-feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-feat:hover .news-feat-img img { transform: scale(1.04); }
.news-feat-body { padding: 20px; }
.news-cat { display: inline-block; background: rgb(var(--accent)); color: #04121f; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.news-feat-body h3 { font-size: clamp(18px, 2.4vw, 23px); margin-bottom: 8px; }
.news-feat-body p { color: rgb(var(--muted)); margin-bottom: 12px; }
.news-more { color: rgb(var(--accent)); font-weight: 700; font-size: 14px; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; gap: 14px; cursor: pointer; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 12px; padding: 10px; transition: border-color .2s ease; }
.news-item:hover { border-color: rgb(var(--accent)); }
.news-item-img { width: 100px; height: 74px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.news-item-body h4 { font-size: 15px; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item-body span { font-size: 12px; }

/* Modal de noticia */
.news-modal { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.news-modal[hidden] { display: none; }
.news-modal-box { position: relative; width: 100%; max-width: 640px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
#news-modal-content { max-height: 88vh; overflow-y: auto; }
#news-modal-content img { width: 100%; display: block; }
.news-modal-inner { padding: 24px; }
.news-modal-inner h2 { font-size: clamp(20px, 3vw, 27px); margin-bottom: 6px; }
.news-modal-inner .date { color: rgb(var(--accent)); font-size: 13px; font-weight: 600; margin-bottom: 16px; display: block; }
.news-modal-inner p { color: rgb(var(--muted)); line-height: 1.8; margin-bottom: 12px; }
.news-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(var(--bg) / .8); color: rgb(var(--text)); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.news-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }

/* ---------- Página de noticia (artículo + sidebar) ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 28px 0 60px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article { background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; overflow: hidden; }
.article-hero { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.article-inner { padding: 28px; }
@media (max-width: 560px) { .article-inner { padding: 20px; } }
.article-title { font-size: clamp(23px, 4vw, 35px); margin: 10px 0 8px; line-height: 1.2; }
.article-date { color: rgb(var(--muted)); font-size: 14px; display: inline-block; margin-bottom: 8px; }
.article-body p { color: rgb(var(--text)); opacity: .9; line-height: 1.9; margin-bottom: 16px; font-size: 16px; }

/* Botones compartir */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid rgb(var(--border) / .5); border-bottom: 1px solid rgb(var(--border) / .5); margin: 16px 0; }
.share-label { font-size: 14px; font-weight: 600; color: rgb(var(--muted)); margin-right: 4px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--surface-3)); color: rgb(var(--text)); transition: transform .2s ease, background .2s ease, color .2s ease; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.wa:hover { background: #25D366; color: #fff; }
.share-btn.fb:hover { background: #1877F2; color: #fff; }
.share-btn.tw:hover { background: #000; color: #fff; }
.share-btn.copy.copied { background: rgb(var(--accent)); color: #04121f; }

/* Sidebar del artículo */
.article-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 88px; }
@media (max-width: 900px) { .article-side { position: static; } }
.side-block { background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 14px; padding: 16px; }
.side-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--muted)); margin-bottom: 12px; }
.promo-aside { margin: 0 0 12px; }
.promo-aside:last-child { margin-bottom: 0; }
.promo-aside img { max-height: 260px; }
.side-news { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgb(var(--border) / .4); align-items: center; }
.side-news:last-child { border-bottom: none; }
.side-news-img { width: 62px; height: 46px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.side-news-img img { width: 100%; height: 100%; object-fit: cover; }
.side-news span { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-news:hover span { color: rgb(var(--accent)); }

/* ---------- Videos (Shorts) ---------- */
.shorts-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.short-card { position: relative; flex: 0 0 auto; width: 200px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; cursor: pointer; background: rgb(var(--surface-2)); border: 1px solid rgb(var(--border)); text-align: left; padding: 0; }
.short-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.short-card:hover .short-thumb { transform: scale(1.06); }
.short-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .75), transparent 34%), linear-gradient(to bottom, rgb(0 0 0 / .55), transparent 28%); }
.short-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.yt-play { width: 56px; height: 40px; background: #ff0000; border-radius: 11px; position: relative; box-shadow: 0 4px 16px rgb(0 0 0 / .45); transition: transform .2s ease; }
.yt-play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.short-card:hover .yt-play { transform: scale(1.12); }
.short-title { position: absolute; top: 12px; left: 12px; right: 12px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.25; z-index: 2; text-shadow: 0 1px 3px rgb(0 0 0 / .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-brand { position: absolute; bottom: 12px; left: 12px; color: #fff; font-size: 12px; opacity: .92; z-index: 2; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
@media (max-width: 480px) { .short-card { width: 158px; } }

/* Modal de video (YouTube) */
.video-modal { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-modal-box { position: relative; width: 100%; max-width: 860px; }
.video-frame { aspect-ratio: 16/9; width: 100%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
#video-frame-inner { width: 100%; height: 100%; }
.video-modal-close { position: absolute; top: -48px; right: 0; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font-size: 24px; display: grid; place-items: center; transition: background .2s ease; }
.video-modal-close:hover { background: rgb(255 255 255 / .3); }
@media (max-width: 560px) { .video-modal-close { top: -46px; } }

/* ---------- Locutores (cards con foto + bio + modal) ---------- */
.hosts-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px) { .hosts-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .hosts-grid { grid-template-columns: 1fr; } }
.host-card { display: flex; flex-direction: column; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 16px; overflow: hidden; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.host-card:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.host-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); }
.host-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.host-card:hover .host-photo img { transform: scale(1.05); }
.host-photo-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .85), transparent 45%); }
.host-photo-info { position: absolute; bottom: 12px; left: 14px; right: 14px; z-index: 1; }
.host-photo-info h4 { color: #fff; font-size: 17px; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.host-role { display: inline-block; margin-top: 3px; background: rgb(var(--accent)); color: #04121f; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.host-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.host-bio { color: rgb(var(--muted)); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.host-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.host-more { font-size: 13px; font-weight: 700; color: rgb(var(--accent)); }
.host-social { display: flex; gap: 6px; }
.host-social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--surface-3)); color: rgb(var(--muted)); transition: color .2s ease, background .2s ease; }
.host-social a:hover { color: rgb(var(--accent)); }

/* Modal locutor */
.host-modal { position: fixed; inset: 0; z-index: 85; background: rgb(0 0 0 / .8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.host-modal[hidden] { display: none; }
.host-modal-box { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; box-shadow: var(--shadow); }
.host-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; font-size: 22px; display: grid; place-items: center; }
.host-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.host-modal-head { display: flex; gap: 18px; align-items: center; padding: 24px; }
.host-modal-head img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.host-modal-head h2 { font-size: clamp(20px,3vw,26px); }
.host-modal-head .host-role { margin-top: 6px; }
.host-modal-body { padding: 0 24px 24px; }
.host-modal-body p { color: rgb(var(--muted)); line-height: 1.8; margin-bottom: 18px; }
.host-modal-social { display: flex; gap: 10px; flex-wrap: wrap; }
.host-modal-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--surface-3)); color: rgb(var(--text)); transition: color .2s ease, transform .2s ease; }
.host-modal-social a:hover { color: rgb(var(--accent)); transform: translateY(-2px); }

/* ---------- Nosotros / Contacto ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-text { color: rgb(var(--muted)); font-size: 16px; line-height: 1.8; }
.contact-card { border-radius: 16px; padding: 26px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgb(var(--border) / .4); }
.contact-item .material-symbols-outlined { color: rgb(var(--accent)); }

/* ---------- Bloque tinte fondo ---------- */
.tint { background: rgb(var(--surface) / .5); border-top: 1px solid rgb(var(--border)); border-bottom: 1px solid rgb(var(--border)); }

/* ---------- Footer ---------- */
.footer { background: rgb(var(--surface) / .4); border-top: 1px solid rgb(var(--border)); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer a.f-link { color: rgb(var(--muted)); }
.footer a.f-link:hover { color: rgb(var(--accent)); }
.footer .social-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(var(--border)); display: grid; place-items: center; transition: all .2s ease; }
.footer .social-btn:hover { background: rgb(var(--accent)); color: #04121f; border-color: rgb(var(--accent)); }
.footer-bottom { text-align: center; padding: 22px 0; border-top: 1px solid rgb(var(--border) / .4); color: rgb(var(--muted)); font-size: 13px; }

/* ============================================================================
   REPRODUCTOR FLOTANTE PERSISTENTE
   ============================================================================ */
.player {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 20px; z-index: 60;
  width: 95%; max-width: 900px;
  border-radius: 999px; padding: 12px 22px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow);
}
.player-track { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; }
.player-cover { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player.playing .player-cover { animation: spin 5s linear infinite; }
.player-meta { min-width: 0; }
.player-meta h6 { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.player-meta .live { font-size: 10px; color: rgb(var(--accent)); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.player-meta .live .dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--accent)); animation: pulse 1.2s infinite; }
.player-controls { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center; }
.play-btn { width: 48px; height: 48px; border-radius: 50%; background: rgb(var(--accent)); color: #04121f; display: grid; place-items: center; transition: transform .2s ease; }
.play-btn:hover { transform: scale(1.08); }
.play-btn .material-symbols-outlined { font-size: 28px; font-variation-settings: 'FILL' 1; }
.player-vol { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.player-vol input[type=range] { width: 90px; accent-color: rgb(var(--accent)); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .player { bottom: 0; border-radius: 20px 20px 0 0; padding: 10px 16px; gap: 12px; width: 100%; max-width: 100%; }
  .player-controls { flex: 0; }
  .player-vol { display: none; }
  .player-meta h6 { max-width: 120px; }
  body { padding-bottom: 90px; }
}

/* ---------- Toggle día/noche ---------- */
.theme-toggle { position: relative; }
.theme-toggle .material-symbols-outlined { transition: transform .4s ease; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

/* ---------- Menú móvil ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: rgb(var(--bg) / .97); backdrop-filter: blur(10px); display: none; flex-direction: column; padding: 80px 32px; gap: 8px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid rgb(var(--border) / .4); }
.mobile-menu .close { position: absolute; top: 24px; right: 24px; }

/* ---------- Menú desplegable (Nosotros) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; } /* puente hover */
.nav-drop-btn { display: inline-flex; align-items: center; gap: 2px; color: rgb(var(--muted)); font-size: 15px; transition: color .2s ease; }
.nav-drop-btn:hover, .nav-dropdown:hover .nav-drop-btn { color: rgb(var(--text)); }
.nav-drop-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 195px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; z-index: 60; display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: rgb(var(--muted)); }
.nav-drop-menu a:hover { background: rgb(var(--surface-3)); color: rgb(var(--accent)); }
.mobile-menu a.sub { font-size: 18px; padding: 9px 0 9px 20px; opacity: .82; }

/* ---------- Directorio comercial (cards verticales + modal) ---------- */
.dir-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.dir-card { flex: 0 0 auto; width: 240px; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; overflow: hidden;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 16px; transition: border-color .2s ease, transform .2s ease; }
.dir-card:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.dir-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); display: grid; place-items: center; }
.dir-card-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform .4s ease; }
.dir-card:hover .dir-card-img img { transform: scale(1.05); }
.dir-card-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: rgb(var(--accent) / .5); }
.dir-card-fallback .material-symbols-outlined { font-size: 48px; }
.dir-card-cat { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgb(var(--accent)); color: #04121f; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.dir-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.dir-card-body h4 { font-size: 16px; }
.dir-more { color: rgb(var(--accent)); font-weight: 700; font-size: 13px; margin-top: 2px; }
.dir-cat { display: inline-block; background: rgb(var(--accent) / .16); color: rgb(var(--accent)); font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.dir-line { display: flex; align-items: center; gap: 5px; color: rgb(var(--muted)); font-size: 12.5px; }
.dir-line .material-symbols-outlined { font-size: 15px; color: rgb(var(--accent)); flex-shrink: 0; }

/* Modal de comercio */
.dir-modal { position: fixed; inset: 0; z-index: 85; background: rgb(0 0 0 / .8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dir-modal[hidden] { display: none; }
.dir-modal-box { position: relative; width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; box-shadow: var(--shadow); }
.dir-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 22px; display: grid; place-items: center; }
.dir-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.dir-modal-img { display: block; max-width: 100%; max-height: 56vh; width: auto; height: auto; margin: 0 auto; }
.dir-modal-inner { padding: 22px 24px; }
.dir-modal-inner h2 { font-size: clamp(20px,3vw,26px); margin: 8px 0; }
.dir-modal-inner p { color: rgb(var(--muted)); line-height: 1.7; margin-bottom: 16px; }
.dir-modal-contact { display: flex; flex-direction: column; gap: 10px; }
.dir-modal-contact .dir-line { font-size: 15px; color: rgb(var(--text)); }
.dir-modal-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dir-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .15s ease, filter .15s ease; }
.dir-btn.wa { background: #25D366; color: #fff; }
.dir-btn.call { background: rgb(var(--accent)); color: #04121f; }
.dir-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dir-modal-inner .host-modal-social { margin-top: 16px; }

/* Directorio: página completa */
.dir-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dir-chip { padding: 7px 16px; border-radius: 999px; border: 1px solid rgb(var(--border)); background: rgb(var(--surface)); color: rgb(var(--muted)); font-size: 13px; font-weight: 600; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.dir-chip:hover { border-color: rgb(var(--accent)); }
.dir-chip.active { background: rgb(var(--accent)); color: #04121f; border-color: rgb(var(--accent)); }
.dir-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .dir-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .dir-grid { grid-template-columns: 1fr; } }
.dir-item { display: flex; gap: 16px; width: 100%; text-align: left; cursor: pointer; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 16px; padding: 18px; transition: border-color .2s ease, transform .2s ease; }
.dir-item:hover { border-color: rgb(var(--accent)); transform: translateY(-2px); }
.dir-item-logo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.dir-item-logo .dir-logo-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: rgb(var(--accent) / .5); }
.dir-item-logo { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: rgb(var(--surface-3)); position: relative; display: grid; place-items: center; }
.dir-item-body { min-width: 0; }
.dir-item-body h3 { font-size: 17px; margin: 4px 0 6px; }
.dir-desc { color: rgb(var(--muted)); font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; }
.dir-contact { display: flex; flex-direction: column; gap: 5px; }
.dir-contact a.dir-line:hover { color: rgb(var(--accent)); }

/* ---------- Loader de navegación (PJAX) ---------- */
#page-loader { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgb(var(--bg) / .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
#page-loader.active { display: flex; opacity: 1; }
.loader-spin { width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgb(var(--accent) / .22); border-top-color: rgb(var(--accent)); animation: spin .7s linear infinite; }

/* Material Symbols base */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; display: inline-block; vertical-align: middle; user-select: none; }

/* ============================================================================
   AJUSTES RESPONSIVE FINOS
   ============================================================================ */
@media (max-width: 520px) {
  /* Barra superior: que las redes no se salgan */
  .topbar { flex-wrap: wrap; gap: 8px 10px; }
  #current-date { font-size: 10px; letter-spacing: .04em; }
  .topbar .socials { gap: 8px; margin-left: auto; }
  .social-ico { width: 30px; height: 30px; }
  .social-ico svg { width: 15px; height: 15px; }
}
@media (max-width: 420px) {
  /* Botones del hero: que quepan / envuelvan bien */
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 11px 16px; font-size: 12px; }
  .promo-track { height: 92px; }
  .promo-item img { max-height: 82px; }
}
