/*
Theme Name: AHORA TV Noticias v2026
Theme URI: https://www.youtube.com/@ahoratv2932
Author: Equipo de Desarrollo Antigravity & AHORA TV
Author URI: https://www.facebook.com/AhoraTvNoticias
Description: Tema Oficial AHORA TV Noticias Responsivo v2026.
Version: 2026.1.0
License: GNU General Public License v2 or later
Text Domain: ahoratv-v2026
*/
/* ==========================================================================
   AHORA TV NOTICIAS - SISTEMA DE DISEÑO MOBILE-FIRST DESDE CERO
   ========================================================================== */

:root {
  /* Paleta Oficial AHORA TV */
  --brand-yellow: #FFD600;        /* Amarillo Vivo Televisivo */
  --brand-yellow-hover: #E6B800;  /* Amarillo Hover */
  --brand-black: #121417;         /* Negro Profundo Periodístico */
  --brand-black-card: #1C1F23;    /* Negro Card */
  --bg-body: #F4F5F7;
  --bg-card: #FFFFFF;
  --bg-nav: #121417;
  --text-main: #121417;
  --text-muted: #5A626A;
  --text-light: #8E96A0;
  --border-color: #D6DAE0;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Tipografías */
  --font-heading: 'Merriweather', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Oscuro */
[data-theme="dark"] {
  --bg-body: #0B0C0E;
  --bg-card: #15171A;
  --bg-nav: #050607;
  --text-main: #F2F4F7;
  --text-muted: #9DA5B0;
  --text-light: #6C7480;
  --border-color: #272A2E;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   1. RESET UNIVERSAL Y NORMAS ANTI-DESBORDE (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
  object-fit: cover;
  background-color: #1C1F23;
  color: transparent !important;
  font-size: 0 !important;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6, p, span, a, li {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* --------------------------------------------------------------------------
   2. BARRA SUPERIOR (TOP-BAR) - MÓVIL POR DEFECTO
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: #000000;
  color: #FFFFFF;
  font-size: 0.8rem;
  padding: 10px 0;
  border-bottom: 2px solid var(--brand-yellow);
}

.top-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.top-date-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #C0C8D0;
  font-size: 0.78rem;
}

.top-date-weather span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pico-placa-badge {
  background: rgba(255, 214, 0, 0.15);
  border: 1px solid var(--brand-yellow);
  color: var(--brand-yellow);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.btn-live-stream-top {
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid #FF0000;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-admin-link {
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 214, 0, 0.15);
  border: 1px solid var(--brand-yellow);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.theme-toggle {
  background: transparent;
  color: #FFFFFF;
  font-size: 1rem;
  padding: 2px 6px;
}

/* --------------------------------------------------------------------------
   3. ENCABEZADO Y LOGO PRINCIPAL (MAIN HEADER)
   -------------------------------------------------------------------------- */
.main-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.header-brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.logo-title .badge-tv {
  background-color: var(--brand-yellow);
  color: #000000;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.3rem;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 700;
  text-align: center;
}

/* Banner de Publicidad Oculto en Móviles por Defecto */
.ad-leaderboard {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. NAVEGACIÓN PRINCIPAL (MAIN NAV) - MENÚ MÓVIL Y BOTÓN HAMBURGUESA
   -------------------------------------------------------------------------- */
.main-nav {
  background-color: #121417;
  padding: 8px 0;
  position: relative;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-btn {
  background: var(--brand-yellow);
  color: #000000;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  list-style: none;
}

.nav-list.active {
  display: flex;
}

.nav-link {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
}

.nav-link.active, .nav-link:hover {
  background: var(--brand-yellow);
  color: #000000;
}

.nav-link.tools-btn {
  background: var(--brand-yellow);
  color: #000000;
  font-weight: 900;
  justify-content: center;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   5. TICKER DE ÚLTIMA HORA
   -------------------------------------------------------------------------- */
.breaking-ticker {
  background-color: #1A1D21;
  color: #FFFFFF;
  border-bottom: 2px solid var(--brand-yellow);
  display: flex;
  flex-direction: column;
}

.ticker-label {
  background-color: var(--brand-yellow);
  color: #000000;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 4px 10px;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.ticker-content a {
  color: #E2E8F0;
  margin-right: 25px;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   6. CONTENIDO PRINCIPAL (NEWS GRID LAYOUT) - MÓVIL EN 1 COLUMNA
   -------------------------------------------------------------------------- */
.news-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.main-content-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Article Card */
.hero-news-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.hero-img-wrap {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background-color: #DDE2E8;
}

.hero-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--brand-yellow);
  color: #000000;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-body {
  padding: 16px;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-main);
}

.hero-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #000000;
  background-color: var(--brand-yellow);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
}

/* Sub Noticias Grid */
.sub-news-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card-sm {
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.news-card-sm .img-wrap {
  height: 160px;
  width: 100%;
  position: relative;
}

.news-card-sm .card-body {
  padding: 14px;
}

.news-card-sm .card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   7. SIDEBAR (CLIMA, SERVICIOS & ENCUESTAS)
   -------------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.weather-services-widget, .poll-widget, .widget-box {
  background: var(--bg-card);
  border: 2px solid var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  border-bottom: 3px solid var(--brand-yellow);
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-city-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: var(--bg-body);
  padding: 4px;
  border-radius: 8px;
}

.weather-tab-btn {
  flex: 1;
  padding: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  text-align: center;
}

.weather-tab-btn.active {
  background: var(--brand-yellow);
  color: #000000;
}

.weather-display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #121417 0%, #1C1F23 100%);
  color: white;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.weather-temp-main {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brand-yellow);
}

.weather-icon-large {
  font-size: 2.2rem;
  color: var(--brand-yellow);
}

.emergency-numbers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.emergency-btn {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. SECCIÓN AHORA TV AUDIOVISUAL (OPCIÓN C)
   -------------------------------------------------------------------------- */
.video-section-option-c {
  background: #000000;
  color: #FFFFFF;
  border: 2px solid var(--brand-yellow);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  margin-bottom: 30px;
}

.video-section-option-c-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.video-section-option-c-header h2 span {
  background: var(--brand-yellow);
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 900;
  display: inline-block;
  max-width: 100%;
}

.video-grid-option-c {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-card-option-c {
  background: #15171A;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #272A2E;
}

.video-card-option-c-thumb {
  position: relative;
  height: 200px;
  width: 100%;
}

.video-card-option-c-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--brand-yellow);
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.video-card-option-c-body {
  padding: 12px;
}

.video-card-option-c-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   9. DENUNCIAS CIUDADANAS Y FOOTER
   -------------------------------------------------------------------------- */
.denuncias-section-wrapper {
  background: rgba(255, 214, 0, 0.1);
  border: 2px solid var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 30px;
}

.denuncias-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.denuncias-header h2 {
  font-size: 1.3rem;
}

.btn-enviar-denuncia {
  background-color: var(--brand-yellow);
  color: #000000;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.88rem;
}

.site-footer {
  background-color: #000000;
  color: #A0AAB4;
  padding: 35px 0 20px 0;
  margin-top: 40px;
  border-top: 3px solid var(--brand-yellow);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   11. MODALES DE VIDEO Y DENUNCIAS (OCULTOS POR DEFECTO)
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85) !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.modal-overlay.active {
  display: flex !important;
}

.video-story-modal-box, .modal-box {
  background: #15171A;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 2px solid var(--brand-yellow);
  width: 100%;
  max-width: 680px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  color: #FFFFFF;
  font-size: 1.8rem;
  z-index: 10;
  line-height: 1;
}
@media (min-width: 769px) {
  .top-bar .container {
    flex-direction: row;
    justify-content: space-between;
  }
  .top-date-weather {
    flex-direction: row;
    gap: 16px;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .nav-list {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
  .sub-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .video-grid-option-c {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .breaking-ticker {
    flex-direction: row;
    align-items: center;
  }
  .ticker-label {
    min-width: 180px;
  }
}

@media (min-width: 993px) {
  .header-brand-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .logo-group {
    align-items: flex-start;
  }
  .ad-leaderboard {
    display: block !important;
  }
  .news-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
  }
  .video-grid-option-c {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
  }
  .hero-img-wrap {
    height: 380px;
  }
  .hero-title {
    font-size: 1.9rem;
  }
}

