/*
Theme Name: Yucatán Red
Theme URI: https://yucatanred.com
Author: Personal Assistant
Description: Tema oficial para Yucatán Red v1.9.5 con Hero encuadrado, backdrop interno y responsive estacional.
Version: 1.9.5
Text Domain: yucatan-red
*/

:root {
  --yc-orange: #E89100;
  --yc-green: #00A562;
  --yc-red: #E31B23;
  --yc-red-dark: #B51218;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --card-border: #e9ecef;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --header-bg: #ffffff;
  --header-border: #e2e8f0;
  --font-family-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --primary-color: #E31B23;
  --accent-color: #E89100;
  --secondary-color: #00A562;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --card-border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --header-bg: #0f172a;
  --header-border: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yc-red); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--yc-orange); }

/* ==========================================================================
   CABECERA Y NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 3px solid var(--yc-green);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 100%;
}

.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  border-bottom: 1px solid var(--header-border); flex-wrap: wrap; gap: 10px;
}

.brand-section { display: flex; align-items: center; gap: 12px; }
.custom-logo, .brand-logo-img { max-height: 55px; width: auto; object-fit: contain; }
.site-title { font-size: 1.5rem; font-weight: 900; color: var(--text-main); margin: 0; letter-spacing: -0.5px; }
.site-description { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

.header-tools { display: flex; align-items: center; gap: 15px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.theme-switch-btn {
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--text-main); padding: 5px 12px; border-radius: 20px;
  cursor: pointer; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.theme-switch-btn:hover { border-color: var(--yc-orange); }

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-navigation { width: 100%; }
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 6px 0;
  flex-wrap: wrap;
  align-items: center;
}

.main-navigation li { position: relative; }

.main-navigation li a {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  display: block;
  letter-spacing: 0.3px;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li:hover > a {
  background-color: var(--yc-red);
  color: #ffffff;
}

.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  border: 1px solid var(--card-border);
  padding: 8px 0;
  z-index: 1001;
  flex-direction: column;
  gap: 0;
}

.main-navigation li:hover > ul { display: flex; }
.main-navigation ul ul li { width: 100%; }
.main-navigation ul ul a {
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 0;
  text-transform: none;
}
.main-navigation ul ul a:hover {
  background-color: var(--bg-color);
  color: var(--yc-red);
}

.menu-toggle-btn {
  display: none; background: transparent; border: none; color: var(--text-main); cursor: pointer; padding: 10px 0;
}
.menu-toggle-btn svg { width: 28px; height: 28px; fill: currentColor; }

/* ==========================================================================
   TICKER Y BANNERS
   ========================================================================== */
.ticker-wrapper { background-color: #0f172a; color: #fff; padding: 6px 0; font-size: 0.85rem; border-top: 2px solid var(--yc-orange); width: 100%; }
.ticker-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 15px; overflow: hidden; }
.ticker-badge { background: var(--yc-red); color: #fff; font-weight: 800; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; font-size: 0.75rem; letter-spacing: 0.5px; }

.ticker-scroll-window {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-slide 25s linear infinite;
}

.ticker-scroll-window:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 35px;
  text-decoration: none;
  display: inline-block;
}

.ticker-item:hover { color: var(--yc-orange); }
.ticker-bullet { color: var(--yc-red); margin-right: 5px; }

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.banner-container {
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 15px;
  text-align: center;
  overflow: hidden;
}

.banner-container img, 
.banner-container iframe, 
.banner-container ins {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

/* ==========================================================================
   ESTRUCTURA GENERAL
   ========================================================================== */
.page-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

.main-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 25px;
  align-items: start;
}

.main-wrapper.single-layout {
  grid-template-columns: 1fr 320px;
}

.sidebar { width: 320px; min-width: 0; }
.content-area { width: 100%; min-width: 0; }

/* ==========================================================================
   HERO SLIDER NATIVO CON BACKDROP ENVOLVENTE INTERNO
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background: #0f172a;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 25px;
  overflow: hidden; /* Mantiene la foto estrictamente dentro */
  z-index: 1;
}

.hero-bg-backdrop {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(16px) brightness(0.35); /* Desenfoque ambiental sutil */
  transition: background-image 0.5s ease-in-out;
  z-index: 0;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 15px;
  z-index: 2;
}

.hero-main {
  position: relative;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  z-index: 1;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease-in-out;
}

.hero-main-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: #ffffff;
}

/* La imagen principal se adapta automáticamente sin cortar caras ni cuerpos */
.hero-main img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center top; 
  display: block;
}

.hero-main-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  padding: 25px 20px 18px 20px;
  color: #fff;
  z-index: 2;
}

.hero-main-content h2 {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.hero-category { 
  background: var(--yc-green); 
  color: #fff; 
  font-size: 0.72rem; 
  padding: 3px 8px; 
  border-radius: 4px; 
  font-weight: 800; 
  text-transform: uppercase; 
  display: inline-block; 
  letter-spacing: 0.5px;
}

.hero-sub-list { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  justify-content: space-between;
  transition: opacity 0.3s ease-in-out;
}

.hero-sub-item { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  background: rgba(15, 23, 42, 0.75); 
  backdrop-filter: blur(8px);
  padding: 8px; 
  border-radius: 8px; 
  border: 1px solid rgba(255, 255, 255, 0.1); 
}

.hero-sub-item img { 
  width: 85px; 
  height: 65px; 
  object-fit: cover; 
  border-radius: 4px; 
  flex-shrink: 0; 
  image-rendering: -webkit-optimize-contrast; 
}

.hero-sub-item h4 { font-size: 0.88rem; line-height: 1.3; font-weight: 700; }
.hero-sub-item h4 a { color: #f8fafc; }
.hero-sub-item h4 a:hover { color: var(--yc-orange); }

/* ==========================================================================
   MÓDULOS DE NOTICIAS DE PORTADA
   ========================================================================== */
.category-module { margin-bottom: 30px; }
.module-title { font-size: 1.15rem; font-weight: 900; text-transform: uppercase; border-left: 4px solid var(--yc-red); padding-left: 10px; margin-bottom: 12px; letter-spacing: -0.2px; }

.module-5-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.module-main-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; }
.module-main-card img { width: 100%; height: 200px; object-fit: cover; }
.module-main-card-body { padding: 12px; }
.module-main-card-body h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.module-main-card-body h3 a { color: var(--text-main); }

.module-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.module-sub-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 6px; padding: 8px; }
.module-sub-card img { width: 100%; height: 85px; object-fit: cover; border-radius: 4px; margin-bottom: 5px; image-rendering: -webkit-optimize-contrast; }
.module-sub-card h4 { font-size: 0.82rem; font-weight: 700; line-height: 1.25; }
.module-sub-card h4 a { color: var(--text-main); }

.video-section { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; margin: 20px 0; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ==========================================================================
   SINGLE ARTICLE
   ========================================================================== */
.single-article {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.single-meta-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.single-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.22;
  color: var(--text-main);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.single-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.font-controls { display: flex; gap: 5px; }
.font-btn {
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.share-buttons { display: flex; gap: 12px; margin-bottom: 25px; }
.share-btn {
  padding: 10px 20px;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.5px;
}
.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }

.single-featured-img {
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
}
.single-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

.single-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.single-article-content p, 
.single-article-content h1, 
.single-article-content h2, 
.single-article-content h3, 
.single-article-content li {
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.single-banner-box {
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}

.single-banner-box img, 
.single-banner-box iframe, 
.single-banner-box ins {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

.single-banner-box.bottom-banner {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

/* ==========================================================================
   REPRODUCTOR DE RADIO
   ========================================================================== */
.modern-radio-card {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(232, 145, 0, 0.3);
  border-radius: 16px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.radio-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(227, 27, 35, 0.2);
  border: 1px solid var(--yc-red);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.live-dot {
  width: 8px; height: 8px;
  background-color: var(--yc-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--yc-red);
}

.live-label { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.5px; color: #fff; }
.radio-body h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 4px; color: #fff; }
.radio-body p { font-size: 0.8rem; color: #94a3b8; margin-bottom: 15px; }

.modern-play-btn {
  background: linear-gradient(135deg, var(--yc-orange) 0%, #d97706 100%);
  border: none;
  width: 65px; height: 65px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(232, 145, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 10px 0;
}
.modern-play-btn:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(232, 145, 0, 0.6); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  border-top: 4px solid var(--yc-orange);
  padding: 45px 20px 20px 20px;
  margin-top: 50px;
  font-size: 0.88rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--yc-orange);
  margin-bottom: 15px;
  border-bottom: 2px solid #334155;
  padding-bottom: 6px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   GALERÍA INTERACTIVA
   ========================================================================== */
.modern-gallery-slider {
  margin: 25px 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.gallery-stage {
  position: relative;
  width: 100%;
  height: 480px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-active-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  display: block;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  transition: background 0.2s;
}

.gallery-nav-btn:hover { background: var(--yc-red); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 4px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: var(--bg-color);
  border-top: 1px solid var(--card-border);
}

.gallery-thumb {
  width: 75px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--yc-red);
}

.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.gallery-lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  font-weight: bold;
}

.lightbox-caption {
  color: #ccc;
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { height: 350px; }
  .main-wrapper { grid-template-columns: 1fr; }
  .sidebar { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .main-wrapper.single-layout {
    display: flex;
    flex-direction: column;
  }

  .main-wrapper.single-layout .content-area {
    order: 1;
    width: 100%;
  }

  .main-wrapper.single-layout .sidebar {
    order: 2;
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .menu-toggle-btn { display: block; }
  .main-navigation { width: 100%; }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .main-navigation.is-open ul { display: flex; }
  .main-navigation li { width: 100%; }
  .main-navigation li a {
    padding: 10px 16px;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--card-border);
  }

  .main-navigation li:last-child a { border-bottom: none; }
  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    background-color: var(--bg-color);
  }
}

@media (max-width: 600px) {
  .hero-main { height: 280px; }
  .hero-main-content h2 { font-size: 1.15rem; line-height: 1.25; }
  .module-5-grid { grid-template-columns: 1fr; }
  .module-sub-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .single-article { padding: 18px; }
  .single-title { font-size: 1.45rem; line-height: 1.25; }
  .gallery-stage { height: 320px; }
}
/* Portada: extracto de las tarjetas de noticias */
.module-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FASE 4: CONTROLES Y PLANTILLA DE RADIO
   ========================================================================== */
.facebook-iframe {
  border: none;
  overflow: hidden;
  border-radius: 8px;
}

.empty-content-message {
  padding: 20px;
  color: var(--text-muted);
}

.page-content { margin-top: 20px; }

.main-wrapper.has-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.main-wrapper.has-sidebar .content-area {
  flex: 1 1 68%;
  min-width: 0;
}

.main-wrapper.has-sidebar .sidebar {
  flex: 1 1 28%;
}

.main-wrapper.no-sidebar .content-area,
.content-area.full-width {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.radio-page-wrapper { grid-template-columns: 1fr; }
.radio-page-card { text-align: center; max-width: 850px; margin: 0 auto; width: 100%; }
.radio-page-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; color: var(--yc-red); }
.radio-page-intro { color: var(--text-muted); margin-bottom: 30px; font-weight: 600; }
.radio-main-player {
  background: linear-gradient(135deg, var(--yc-red-dark) 0%, var(--yc-red) 100%);
  padding: 45px 20px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(227,27,35,0.3);
  border: 2px solid var(--yc-orange);
}
.radio-main-status { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; }
.radio-main-play {
  background: var(--yc-orange);
  color: #000;
  border: none;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  font-size: 2.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.radio-volume-control { margin-top: 25px; }
.radio-volume-control label { font-size: 0.9rem; font-weight: 700; }
.radio-volume-control input { vertical-align: middle; cursor: pointer; }
.radio-contact { margin-top: 40px; text-align: left; }
.radio-contact p { margin-bottom: 15px; color: var(--text-muted); }
.radio-whatsapp-btn { display: inline-block; padding: 12px 25px; font-size: 1rem; }

@media (max-width: 768px) {
  .main-wrapper.has-sidebar { flex-direction: column; }
  .main-wrapper.has-sidebar .content-area,
  .main-wrapper.has-sidebar .sidebar {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .radio-page-title { font-size: 1.8rem; }
  .radio-main-player { padding: 35px 15px; }
}


/* Producción: elementos embebidos y controles accesibles */
.facebook-iframe,
.video-container iframe {
  display: block;
  max-width: 100%;
}

.lightbox-close {
  background: transparent;
  border: 0;
  line-height: 1;
  padding: 4px 8px;
}

/* Foco visible consistente para navegación por teclado. */
:focus-visible {
  outline: 3px solid var(--yc-orange);
  outline-offset: 3px;
}

.gallery-lightbox[aria-hidden="true"] {
  pointer-events: none;
}

/* PUNTO FOCAL EDITORIAL: conserva el diseño y permite elegir qué parte de la foto queda visible. */
.module-main-card img,
.module-sub-card img,
.category-card-img img,
.hero-main img,
.hero-sub-item img {
  object-position: var(--yc-object-position, center);
}
