/* Reset global de márgenes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Contenedor Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    padding: 10px 5%;
}

/* Fila Superior (Logo y botones) */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #14213d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e63946;
    font-size: 20px;
	background-color: #ffffff;
}

.logo-text h1 {
    font-size: 37px;
    color: #14213d;
}

.logo-text h1 span { color: #e63946; }

.logo-text h2 {
    font-size: 18px;
    /*color: #777;*/
	color: #14213d;
    /*text-transform: uppercase;*/
}

.logo-text h2 span{
    font-size: 18px;
    /*color: #777;*/
	color: #e63946;
    /*text-transform: uppercase;*/
}

.logo-text h3 {
    font-size: 18px;
    /*color: #777;*/
	color: #ffffff;
    /*text-transform: uppercase;*/
}

.logo-text h4 span{
    font-size: 18px;
    /*color: #777;*/
	color: #ffffff;
    /*text-transform: uppercase;*/
}

.logo-text h5 {
    font-size: 37px;
    /*color: #777;*/
	color: #ffffff;
    /*text-transform: uppercase;*/
}

.logo-text h6 span{
    font-size: 18px;
    /*color: #777;*/
	color: #ffffff;
    /*text-transform: uppercase;*/
}

.logo-text p {
    font-size: 10px;
    /*color: #777;*/
	color: #14213d;
    /*text-transform: uppercase;*/
}

.logo-text p span{
    font-size: 10px;
    /*color: #777;*/
	color: #e63946;
    /*text-transform: uppercase;*/
}

.logo-footer-text h1 {
    font-size: 37px;
    color: #ffffff;
}

.logo-footer-text h1 span { color: #e63946; }

.logo-footer-text h2 {
    font-size: 18px;
    /*color: #777;*/
	color: #ffffff;
    /*text-transform: uppercase;*/
}

.logo-footer-text h2 span{
    font-size: 18px;
    /*color: #777;*/
	color: #e63946;
    /*text-transform: uppercase;*/
}

.logo-footer-text p {
    font-size: 10px;
    /*color: #777;*/
	color: #ffffff;
    /*text-transform: uppercase;*/
}

/* Redes y Botón En Vivo */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.social-icon.facebook { background-color: #1877f2; }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.instagram { background-color: #e1306c; }
.social-icon.whatsapp { background-color: #25d366; }

.live-btn {
    background-color: #e63946;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

/* Fila Inferior (Enlaces de navegación) */
.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: #e63946;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* Ocultar elementos móviles en la versión de escritorio */
.mobile-socials, .menu-toggle {
    display: none;
}

/**/
/* 2. El contenedor se estira horizontalmente */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Separa los bloques del botón "Ver todas" */
    background-color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	margin-bottom: 8px; /* Separa la parte baja */
}

/* 3. Alineación interna de los bloques de categorías */
.nav-items {
    display: flex;
    gap: 30px; /* Espacio de separación entre cada categoría */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre el icono y el texto */
    text-decoration: none;
    color: #333333;
}

/* 4. Diseño del bloque de textos */
.text-group {
    display: flex;
    flex-direction: column; /* Apila el título arriba y el subtítulo abajo */
}

.title {
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 11px;
    color: #777777;
    margin-top: 2px;
}

/* 5. Iconos y botón derecho */
.icon {
    font-size: 22px;
}

.btn-more {
	margin-left: 20px;
	margin-right: 20px;
    font-weight: bold;
    font-size: 12px;
    color: #000000;
    text-decoration: none;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}
/**/

/* Cuando la pantalla mida 768 píxeles de ancho o menos: */
@media (max-width: 1024px) {
    
    /* Buscamos el contenedor de textos y lo ocultamos por completo */
    .text-group {
        display: none; 
    }

    /* Reducimos el espacio entre los iconos para que quepan bien */
    .nav-items {
        gap: 5px; 
    }
}

/**/

@media (max-width: 992px) {
    /* Asegura que el header sea el contenedor de referencia y se superponga al hero */
    .site-header {
        position: relative;
        z-index: 999; /* Mayor que el z-index de .hero-overlay (2) y .hero-container (3) */
    }

    /* Quitamos la línea de división del escritorio */
    .header-top { border-bottom: none; }

    /* Escondemos el bloque original de redes y botón superior */
    .header-actions { display: none; }
	
	.nav-item {
		width: 10px;
	}

    /* Activamos el botón hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #333;
        transition: 0.3s;
    }

    /* MENÚ MÓVIL FLOTANTE: Se posiciona absolutamente respecto a .site-header */
    .header-bottom {
        position: absolute;
        top: 100%;       /* Se posiciona justo al terminar la barra superior */
        left: -150%;     /* Oculto a la izquierda */
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 5%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Sombra más pronunciada sobre el carrusel */
        transition: left 0.4s ease; 
        gap: 20px;
        z-index: 1000;   /* Capa superior absoluta para flotar sobre el reproductor y fotos */
    }

    /* Clase activa de JavaScript */
    .header-bottom.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
    }

    /* Redes sociales móviles */
    .mobile-socials {
        display: block;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
        text-align: center;
    }

    .mobile-socials p {
        font-size: 13px;
        color: #666;
        margin-bottom: 10px;
    }

    .mobile-socials .social-icons {
        justify-content: center;
    }

    /* Animación de la X */
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

/**/

/* ==========================================
   ESTILOS DE LA SECCIÓN HERO Y REPRODUCTOR
   ========================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
	margin-bottom: 8px; /* Separa la parte baja */
}

/* Carrusel de fondo absoluto */
.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Capa de contraste */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(11 32 133 / 58%) 0%, rgb(23 53 201 / 12%) 100%);
    z-index: 2;
}

/* Contenedor principal alineado */
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Bloque Izquierdo */
.hero-left-content {
    flex: 1;
    color: #ffffff;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-title span {
    color: #e63946;
}

.hero-subtitle {
    font-size: 16px;
    color: #ffffff;
	background-color: #2683b994;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Botones de acción */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

.btn-tv {
    background-color: #e63946;
    color: #fff;
}

.btn-radio {
    background-color: #1487a37d;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-radio:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-news {
    background-color: #ffffff;
    color: #14213d;
}

/* Tarjeta del Reproductor (Derecha) */
.player-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.player-brand h3 {
    font-size: 20px;
    color: #14213d;
    font-weight: 700;
}

.player-brand p {
    font-size: 12px;
    color: #666;
}

.badge-live {
    background-color: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Reproductor de Audio e Indicador de ondas */
.audio-player-control {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 50px;
}

.play-pause-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e63946;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.play-pause-btn:hover {
    background-color: #cb2d3a;
}

.audio-waves {
    display: flex;
	align-items: center;
    gap: 3px;
    height: 30px;
}

.audio-waves span {
    width: 3px;
    background-color: #e63946;
    border-radius: 3px;
    height: 4px;
}

/* Simulación de movimiento cuando esté activo */
.audio-waves.playing span {
    animation: waveAnimation 1.2s ease-in-out infinite alternate;
}
.audio-waves.playing span:nth-child(2) { animation-delay: 0.2s; }
.audio-waves.playing span:nth-child(4) { animation-delay: 0.4s; }
.audio-waves.playing span:nth-child(6) { animation-delay: 0.6s; }
.audio-waves.playing span:nth-child(8) { animation-delay: 0.2s; }
.audio-waves.playing span:nth-child(10) { animation-delay: 0.4s; }
.audio-waves.playing span:nth-child(12) { animation-delay: 0.6s; }
.audio-waves.playing span:nth-child(14) { animation-delay: 0.2s; }
.audio-waves.playing span:nth-child(16) { animation-delay: 0.4s; }
.audio-waves.playing span:nth-child(18) { animation-delay: 0.6s; }
.audio-waves.playing span:nth-child(20) { animation-delay: 0.2s; }
.audio-waves.playing span:nth-child(22) { animation-delay: 0.4s; }
.audio-waves.playing span:nth-child(24) { animation-delay: 0.6s; }
.audio-waves.playing span:nth-child(26) { animation-delay: 0.2s; }
.audio-waves.playing span:nth-child(28) { animation-delay: 0.4s; }
.audio-waves.playing span:nth-child(30) { animation-delay: 0.6s; }
.audio-waves.playing span:nth-child(32) { animation-delay: 0.2s; }
.audio-waves.playing span:nth-child(34) { animation-delay: 0.4s; }
.audio-waves.playing span:nth-child(36) { animation-delay: 0.6s; }

@keyframes waveAnimation {
    0% { height: 4px; }
    100% { height: 28px; }
}

/* Listado de Programación */
.schedule-section h4 {
    font-size: 11px;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 12px;
}

.schedule-list {
    list-style: none;
    margin-bottom: 20px;
}

.schedule-list li {
    display: flex;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.schedule-list li .time {
    font-weight: 700;
    color: #14213d;
}

.schedule-list li .show-name {
    color: #444;
}

/* Botón inferior Ver Todo */
.btn-full-schedule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #14213d;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-full-schedule:hover {
    background-color: #0f192e;
}

/* ==========================================
   DISEÑO ADAPTABLE (MEDIA QUERIES MÓVIL)
   ========================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-subtitle {
        margin: 0 auto 25px auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .player-card {
        max-width: 100%;
    }
}

/**/

/* 1. Reset básico para limpiar márgenes del navegador */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f4f6; /* Fondo gris claro para resaltar los bloques blancos */
    padding: 40px 20px;
}

/* 2. Contenedor padre en formato fila */
.main-section {
    display: flex;
    gap: 6px; /* Espacio de separación entre cada uno de los 3 bloques */
    display: flex;
    flex-wrap: wrap; /* Permite el salto de línea obligatorio */
    margin: 0 auto; /* Centra toda la sección en la pantalla */
    width: 100%;
	margin-bottom: 8px; /* Separa la parte baja */
}

/* 3. Estilo clave: Los 3 divs con bordes redondeados */
.content-box {
    flex: 1; /* Obliga a los 3 divs a tener exactamente el mismo ancho matemático */
    background-color: #ffffff; /* Fondo blanco idéntico al de la imagen */
    border: 1px solid #e5e7eb; /* Borde gris sutil y elegante */
    border-radius: 12px; /* Redondeado de esquinas pronunciado como en la captura */
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Sombra suave para dar relieve */
	margin: 0 auto;
    overflow: hidden; /* Corta cualquier elemento que intente sobresalir */
    box-sizing: border-box;
}

/* 4. Estilos de los títulos internos */
.box-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase; /* Forzar mayúsculas como Diana TV */
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.box-body {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

/**/

/* Cuando la pantalla sea menor o igual a 992px de ancho (Tablets y Celulares) */
@media (max-width: 993px) {
    .main-section {
        flex-direction: column; /* Cambia la fila horizontal por una columna vertical */
        /*gap: 20px;*/ /* Ajusta el espacio de separación vertical */
    }
	.content-box {
		width: 100%;
	}
}

:root {
            --color-primary: #333333;
            --color-accent: #e03a3a; /* Rojo para el efecto hover/focus */
            --color-bg: #ffffff;
            --color-button: #0a1128;
			
			--color-title: #0a1128;
            --color-text: #4a5568;
            --color-link: #1a202c;
            --bg-card: #ffffff;
            
            /* Colores de categorías */
            --cat-salud: #319795;
            --cat-economia: #805ad5;
            --cat-internacional: #dd6b20;
            --cat-educacion: #3182ce;
			
			/**/
			--bg-color: #0b1426;
            --text-main: #ffffff;
            --text-sub: #a0aec0;
            --border-btn: #38bdf8;
			
}

.services-container {
            background-color: var(--color-bg);
           /* max-width: 900px;*/
            width: 100%;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            text-align: center;
        }

        .services-header h2 {
            font-size: 24px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--color-primary);
            margin-bottom: 5px;
        }

        .services-header h2 span {
            color: var(--color-accent);
        }

        .services-header p {
            font-size: 14px;
            color: #666;
            margin-bottom: 40px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }

        /* Ajuste responsivo para pantallas pequeñas */
        @media (max-width: 768px) {
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 480px) {
            .services-grid {
                grid-template-columns: 1fr;
            }
        }

        .service-item {
            text-decoration: none;
            color: var(--color-primary);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px 10px;
            border-radius: 6px;
            outline: none;
            /* Transición suave para color y transformación (zoom) */
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
        }

        /* Animación de zoom pequeño y cambio de color al pasar el cursor o seleccionar */
        .service-item:hover,
        .service-item:focus {
            transform: scale(1.08);
            color: var(--color-accent);
        }

        .service-icon {
            font-size: 32px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 40px;
        }

        .service-title {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.4;
        }

        .btn-all-services {
            display: inline-flex;
            align-items: center;
            background-color: var(--color-button);
            color: #ffffff;
            text-decoration: none;
            padding: 12px 35px;
            font-size: 13px;
            font-weight: bold;
            letter-spacing: 1px;
            border-radius: 4px;
            text-transform: uppercase;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .btn-all-services:hover,
        .btn-all-services:focus {
            background-color: var(--color-accent);
            transform: translateY(-2px);
            outline: none;
        }

        .btn-all-services-arrow {
            margin-left: 10px;
            font-size: 10px;
        }
		
/**/

/* Contenedor Principal de la Sección */
        .news-section {
            background-color: var(--bg-card);
            max-width: 1100px;
            width: 100%;
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            box-sizing: border-box;
        }

        /* Encabezado */
        .news-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 12px;
            margin-bottom: 24px;
        }

        .news-header h2 {
            font-size: 20px;
            font-weight: 800;
            color: var(--color-title);
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .view-more {
            font-size: 11px;
            font-weight: 700;
            color: var(--color-title);
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: color 0.2s;
        }

        .view-more:hover {
            color: var(--color-accent);
        }

        /* Distribución de Contenido */
        .news-layout {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 32px;
        }

        /* Noticia Principal (Izquierda) */
        .main-article {
            text-decoration: none;
            display: flex;
            flex-direction: column;
            outline: none;
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .main-article:hover, .main-article:focus {
            transform: scale(1.02);
        }

        .main-img-wrapper {
            position: relative;
            width: 100%;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 16px;
            aspect-ratio: 16 / 9;
            background-color: #e2e8f0;
        }

        .main-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .badge-politica {
            position: absolute;
            bottom: 12px;
            left: 12px;
            background-color: var(--color-accent);
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 4px;
            text-transform: uppercase;
        }

        .main-title {
            font-size: 22px;
            font-weight: 800;
            color: var(--color-title);
            line-height: 1.3;
            margin: 0 0 10px 0;
            transition: color 0.3s ease;
        }

        .main-article:hover .main-title, .main-article:focus .main-title {
            color: var(--color-accent);
        }

        .main-excerpt {
            font-size: 14px;
            color: var(--color-text);
            line-height: 1.5;
            margin: 0 0 16px 0;
        }

        .meta-text {
            font-size: 12px;
            color: #a0aec0;
        }

        /* Lista de Noticias Secundarias (Derecha) */
        .side-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .side-article {
            display: flex;
            gap: 16px;
            text-decoration: none;
            outline: none;
            border-radius: 8px;
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .side-article:hover, .side-article:focus {
            transform: scale(1.03);
        }

        .side-img-wrapper {
            width: 120px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background-color: #e2e8f0;
        }

        .side-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .side-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .category {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 4px;
            letter-spacing: 0.5px;
        }

        .side-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--color-link);
            line-height: 1.3;
            margin: 0 0 4px 0;
            transition: color 0.3s ease;
        }

        /* Variaciones de color por hover/focus según sección */
        .side-article:hover .side-title, .side-article:focus .side-title {
            color: var(--color-accent);
        }

        /* Colores asignados a categorías específicas */
        .cat-salud { color: var(--cat-salud); }
        .cat-economia { color: var(--cat-economia); }
        .cat-internacional { color: var(--cat-internacional); }
        .cat-educacion { color: var(--cat-educacion); }

        /* Ajustes Responsivos */
        @media (max-width: 850px) {
            .news-layout {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            .main-title {
                font-size: 20px;
            }
        }
		
/**/

/* Contenedor Principal */
        .gallery-section {
            background-color: var(--bg-card);
            /*max-width: 1100px;*/
            width: 100%;
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            box-sizing: border-box;
        }

        /* Encabezado */
        .gallery-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 12px;
            margin-bottom: 24px;
        }

        .gallery-header h2 {
            font-size: 20px;
            font-weight: 800;
            color: var(--color-title);
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .view-all {
            font-size: 11px;
            font-weight: 700;
            color: var(--color-title);
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: color 0.2s;
        }

        .view-all:hover {
            color: var(--color-accent);
        }

        /* Cuadrícula de la Galería */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        /* Tarjeta de Imagen individuales con enlace */
        .gallery-item {
            display: block;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            aspect-ratio: 16 / 10;
            background-color: #e2e8f0;
            outline: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            /* Transición para el zoom suave */
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Efecto Zoom y Sombra al pasar el cursor o seleccionar */
        .gallery-item:hover,
        .gallery-item:focus {
            transform: scale(1.04);
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
            z-index: 2; /* Asegura que la tarjeta con zoom quede encima */
        }

        /* Capa oscura decorativa opcional que se aclara al hacer hover */
        .gallery-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.1);
            transition: background 0.3s ease;
            pointer-events: none;
        }

        .gallery-item:hover::after,
        .gallery-item:focus::after {
            background: rgba(0, 0, 0, 0);
        }

        /* Ajustes Responsivos */
        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }
        }
		
/**/

/* Contenedor Principal del Banner */
        .podcast-banner {
            background-color: var(--bg-color);
            border-radius: 12px;
            padding: 15px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--text-main);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            flex-wrap: wrap;
            gap: 20px;
        }

        /* Sección Izquierda: Textos */
        .banner-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .banner-title {
            font-weight: 800;
            font-size: 1.3rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0;
        }

        .banner-subtitle {
            color: var(--text-sub);
            font-size: 0.9rem;
            margin: 0;
        }

        /* Sección Central: Botón de Acción */
        .banner-action {
            flex-grow: 1;
            display: flex;
            justify-content: center;
        }

        .btn-listen {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: var(--text-main);
            padding: 10px 24px;
            font-size: 0.85rem;
            font-weight: 700;
            border-radius: 8px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .btn-listen:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--text-main);
        }

        /* Sección Derecha: Iconos de Plataformas */
        .banner-platforms {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .platform-link {
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
        }

        .platform-link:hover {
            transform: scale(1.1);
        }

        .platform-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }

        /* Adaptabilidad para Pantallas Pequeñas */
        @media (max-width: 768px) {
            .podcast-banner {
                flex-direction: column;
                text-align: center;
                padding: 20px;
            }
            .banner-action {
                width: 100%;
            }
        }

/**/

/* Contenedor Principal */
.footer-container {
    background-color: #000c24; /* Azul oscuro del fondo */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 20px 20px 20px;
    box-sizing: border-box;
}

/* Grilla de 5 Columnas */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Estilos de Columnas */
.footer-col h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Ajuste para la columna 4 que no lleva título superior */
.padding-top-links {
    padding-top: 31px; 
}

/* Iconos Sociales */
.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.facebook { background-color: #3b5998; }
.youtube { background-color: #ff0000; }
.instagram { background-color: #e1306c; }
.whatsapp { background-color: #25d366; }

/* Información de Contacto dentro de la Columna 5 */
.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sección Inferior de Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #aaaaaa;
    margin: 0;
}

/* Responsividad para pantallas medianas y móviles */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
    .padding-top-links {
        padding-top: 0; /* Resetea el espacio en móviles */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
}

/* Contenedor flotante con transición suave */
/* Contenedor flotante principal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000; /* Capa base del lightbox */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Imagen ampliada */
.lightbox img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 1001; /* Por debajo de los botones */
    pointer-events: none; /* Hace que los clics la ignoren y pasen al fondo si es necesario */
}

.lightbox.active img {
    transform: scale(1);
}

/* Estilo unificado para TODOS los botones interactivos */
.close-btn, .nav-btn {
    position: absolute;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 1010 !important; /* Fuerza a que estén por encima de la imagen */
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover, .nav-btn:hover {
    color: #ff9900;
    transform: translateY(-50%) scale(1.2); /* Efecto visual al pasar el mouse */
}

/* Posiciones exactas */
.close-btn {
    top: 20px;
    right: 30px;
    font-size: 40px;
}
.close-btn:hover {
    transform: scale(1.2); /* Corrección de transformación para la X */
}

.nav-btn {
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px; /* Un poco más grandes para facilitar el clic */
    padding: 20px;   /* Área de clic expandida */
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Ocultar flechas en pantallas muy pequeñas si estorban a la imagen */
@media (max-width: 480px) {
    .nav-btn {
        font-size: 40px;
        padding: 0 10px;
    }
}

/* Sección Noticias */
/* Contenedor principal flotante */
.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Tarjeta contenedora de la noticia */
.news-modal-content {
    background: #111; /* Fondo oscuro elegante */
    color: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 8px;
    overflow-y: auto; /* Permite scroll si el texto es largo */
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 2001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.news-lightbox.active .news-modal-content {
    transform: scale(1);
}

/* Imagen dentro del modal */
#news-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: cover;
    display: block;
}

/* Cuerpo de texto */
.news-lightbox-body {
    padding: 25px;
    font-family: Arial, sans-serif;
}

/* Detalles del texto */
.news-modal-badge {
    display: inline-block;
    background: #ff9900;
    color: #000;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 3px;
}

#news-lightbox-title {
    font-size: 22px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

#news-lightbox-text {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-modal-meta {
    font-size: 12px;
    color: #777;
}

/* Botones e interacción */
.news-close-btn, .news-nav-btn {
    position: absolute;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 2010;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-close-btn:hover, .news-nav-btn:hover { color: #ff9900; }
.news-close-btn { top: 20px; right: 30px; font-size: 40px; }
.news-nav-btn { top: 50%; transform: translateY(-50%); font-size: 60px; padding: 20px; }
.news-prev-btn { left: 10px; }
.news-next-btn { right: 10px; }

/* Ocultar flechas molestas en móviles para priorizar el gesto táctil */
@media (max-width: 768px) {
    .news-nav-btn { display: none; }
    .news-modal-content { width: 95%; }
}

/* Tarjeta contenedora de la noticia */
.news-modal-content {
    background: #111;
    color: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 8px;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 2001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.news-lightbox.active .news-modal-content {
    transform: scale(1);
}

/* Imagen dentro del modal */
#news-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease; /* Transición suave también para la imagen */
}

/* Cuerpo de texto con transición de efectos */
.news-lightbox-body {
    padding: 25px;
    font-family: Arial, sans-serif;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease; /* Efecto combinado */
}

/* Clase de animación temporal controlada por JavaScript */
.news-lightbox-body.changing, #news-lightbox-img.changing {
    opacity: 0;
    transform: translateY(10px); /* El texto baja levemente al desaparecer */
}

/* Detalles del texto */
.news-modal-badge {
    display: inline-block;
    background: #ff9900;
    color: #000;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 3px;
}

#news-lightbox-title {
    font-size: 22px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

#news-lightbox-text {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-modal-meta {
    font-size: 12px;
    color: #777;
}

.loader {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	/* background: url('pageloader.gif') 50% 50% no-repeat rgb(249,249,249); */
	background: url('load.jpg') 50% 50% no-repeat rgb(255,255,255);
	opacity: .95;
}

