/* General */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #0f171e;
    color: #ffffff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1c1f2b;
    padding: 0 20px;
    height: 60px;
    position: fixed;
    top: 0.3cm; /* Separa la barra del borde superior */
    left: 1cm; /* Separa la barra del borde izquierdo */
    right: 1cm; /* Separa la barra del borde derecho */
    width: calc(100% - 2cm); /* Calcula el ancho considerando los márgenes */
    z-index: 1000;
    border-radius: 8px; /* Opcional: bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para darle profundidad */
    box-sizing: border-box; /* Asegura que el padding no altere el tamaño */
}

.logo img {
    max-height: 90%;
    height: auto;
    max-width: 150px;
}

.nav-list {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 15px 0; /* Agrega espacio vertical entre los botones */
}

.nav-list a {
    text-decoration: none;
    color: white;
    padding: 15px 20px; /* Aumenta el área de clic para mejor experiencia */
    font-size: 18px; /* Ajusta el tamaño de la fuente para que sea más legible */
    transition: background 0.3s ease;
}

.nav-list a:hover {
    background-color: #2c3440;
    border-radius: 5px;
}

.live {
    background-color: #ff4c4c;
    border-radius: 5px;
    color: white;
}

/* Botón de menú para dispositivos móviles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: white;
    height: 3px;
    width: 25px;
    margin: 3px 0;
}

/* Barra de navegación para dispositivos móviles */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0; /* Barra en la parte superior */
        left: 0; /* Barra en el borde izquierdo */
        right: 0; /* Barra en el borde derecho */
        width: 100%; /* Ocupa el ancho completo */
        height: 60px; /* Altura estándar de la barra */
        background-color: #1c1f2b; /* Color de fondo */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px; /* Espaciado interno */
        z-index: 1000; /* Encima de otros elementos */
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Sombra para profundidad */
    }

    .logo img {
        max-height: 50px; /* Ajusta el tamaño del logo */
    }

    .menu-toggle {
        display: flex; /* Mostrar el botón de menú */
        flex-direction: column;
        cursor: pointer;
    }

    .menu-toggle .bar {
        background-color: white;
        height: 3px;
        width: 25px;
        margin: 4px 0;
        transition: all 0.3s ease;
    }

    .nav-list {
        position: fixed; /* Barra desplegable fija */
        top: 60px; /* Debajo de la barra principal */
        left: 0;
        width: 80%; /* Ocupa todo el ancho */
        background-color: #1c1f2b;
        display: none; /* Oculto por defecto */
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Espaciado entre los enlaces */
        padding: 10px 0;
        z-index: 999;
    }

    .nav-list.active {
        display: flex; /* Mostrar barra al hacer clic */
    }

    .nav-list a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 10px 20px;
        width: 100%; /* Cada enlace ocupa el ancho completo */
        text-align: center;
        transition: background-color 0.3s ease;
    }

    .nav-list a:hover {
        background-color: #2c3440; /* Fondo al pasar el mouse */
    }
}

/* Carrusel */
.carousel {
    position: relative;
    margin: 1cm;
    height: 15cm; /* Ajusta el tamaño del carrusel */
    overflow: hidden;
    z-index: 1;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-card {
    flex: 0 0 100%; /* Cada tarjeta ocupa el 100% del contenedor */
    opacity: 0; /* Oculto por defecto */
    transition: opacity 1.5s ease-in-out;
    position: absolute; /* Superposición */
    top: 0;
    left: 0;
}

.carousel-card.active {
    opacity: 1; /* Imagen visible cuando está activa */
    z-index: 1;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta las imágenes al recuadro */
    border-radius: 15px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent; /* Fondo transparente */
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.carousel-button:hover {
    color: #00a8e1; /* Cambia el color de las flechas al pasar el mouse */
}

/* Estilos responsivos para dispositivos móviles */
@media (max-width: 768px) {
    .carousel-track {
        flex-direction: column; /* Disposición vertical en móviles */
    }

    .carousel {
        height: auto; /* Ajusta la altura automáticamente */
    }

    .carousel-card img {
        object-fit: contain; /* Evita el recorte de imágenes */
    }
}

/* Sección de Afiliados */
.affiliates-section {
    padding: 40px;
    background-color: #0f171e; /* Fondo acorde con la paleta */
    color: #e0e0e0;
    margin-top: 80px; /* Evita solapamiento con el header */
}

.affiliates-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff; /* Título destacado */
    margin-bottom: 30px;
}

.affiliates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.affiliate-card {
    background-color: #232f3e; /* Fondo acorde */
    border-radius: 15px;
    width: 220px; /* Tamaño fijo para todas las tarjetas */
    height: 180px; /* Tamaño fijo */
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.affiliate-card:hover {
    transform: translateY(-5px); /* Efecto al pasar el mouse */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.6); /* Sombra más fuerte */
}

.affiliate-card img {
    max-width: 100%;
    max-height: 80px; /* Tamaño máximo para imágenes */
    object-fit: contain; /* Ajusta la imagen al recuadro sin deformarla */
    margin-bottom: 10px;
}

.affiliate-card p, .affiliate-card a {
    font-size: 14px;
    color: #b0b0b0; /* Color suave para texto */
    margin: 0;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.affiliate-card a:hover {
    color: #00a8e1; /* Destaca el enlace al pasar el mouse */
}

/* Botón "En Vivo" */
.live-button {
    color: #fff;
    background-color: transparent; /* Fondo transparente para alineación */
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2px solid #ff2e2e; /* Borde rojo */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.live-button:hover {
    background-color: #e53935; /* Rellena el botón al pasar el mouse */
    color: #fff; /* Cambia el texto a blanco */
    transform: scale(1.05); /* Aumenta ligeramente el tamaño */
}

/* Círculo parpadeante */
.live-circle {
    color: #e53935; /* Rojo brillante */
    font-size: 20px;
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5; /* Reduce la opacidad a la mitad */
    }
}

/* Sección de contacto */
.contact-section {
    padding: 40px;
    background-color: #0f171e;
    color: #e0e0e0;
    text-align: center;
}

.contact-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    font-size: 16px;
    text-align: left;
    color: #ffffff;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #232f3e;
    color: #ffffff;
    font-size: 14px;
}

input::placeholder, textarea::placeholder {
    color: #aaa;
}

button {
    background-color: #e53935;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d32f2f;
}

/* Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #232f3e;
    color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.5;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
}

/* Pie de página */
.footer {
    background-color: #0f171e;
    color: #ffffff;
    text-align: center;
    padding: 40px 10px; /* Espacio adicional */
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-top: 1px solid #ffffff22; /* Línea superior */
    margin-top: 40px; /* Espacio hacia abajo del formulario */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-menu {
    margin-bottom: 20px;
}

.footer-menu a {
    color: #ffc107; /* Color amarillo para los enlaces */
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-size: 14px;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.footer-text p {
    margin: 5px 0;
    font-size: 12px;
    color: #aaaaaa; /* Texto secundario */
}

/* Sección de canales */
.canales-section {
    padding: 50px 20px;
    background-color: #0f171e; /* Color de fondo principal */
    text-align: center;
}

.canales-section h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 30px;
}

.canales-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.canal-item {
    position: relative;
    width: 250px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.canal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.canal-item:hover img {
    transform: scale(1.1); /* Ampliar ligeramente la imagen */
    filter: blur(4px) brightness(0.7); /* Difuminar y oscurecer */
}

.canal-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.canal-item:hover .canal-overlay {
    opacity: 1; /* Mostrar la descripción al pasar el mouse */
}

.canal-overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffc107; /* Color amarillo */
}

.canal-overlay p {
    font-size: 14px;
    line-height: 1.5;
}
/* Separación entre secciones */
.canales-section {
    margin-bottom: 40px; /* Espacio entre canales y el reproductor */
}

/* Sección de canales */
.canales-section {
    margin-bottom: 20px; /* Reducir el espacio debajo de los canales */
    padding: 30px 20px; /* Ajustar el padding interno */
}

/* Apartado de redes sociales */
.social-icons {
    position: fixed;
    right: 20px; /* Distancia del borde derecho */
    top: 50%; /* Centrado vertical */
    transform: translateY(-50%); /* Ajuste para centrar */
    z-index: 1000; /* Asegura que esté encima del contenido */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre los iconos */
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px; /* Tamaño del círculo */
    height: 50px; /* Tamaño del círculo */
    background-color: #ff1744; /* Color de fondo del círculo */
    border-radius: 50%; /* Hace el elemento circular */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1); /* Ampliar ligeramente al pasar el mouse */
    background-color: #ff4569; /* Color más claro al pasar el mouse */
}

.social-icons img {
    width: 24px; /* Tamaño del ícono */
    height: 24px;
    filter: invert(1); /* Hace los íconos blancos para contraste */
}

/* Efectos generales de los enlaces de la barra */
.navigation a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Animación al pasar el mouse (borde inferior animado) */
.navigation a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px; /* Grosor de la línea */
    background-color: #07f7ff; /* Color amarillo */
    transition: width 0.3s ease;
}

.navigation a:hover {
    color: #07f7ff; /* Cambia el color del texto al pasar el mouse */
}

.navigation a:hover::after {
    width: 100%; /* Línea animada que aparece */
}

/* Efectos adicionales para el botón En Vivo */
.live-button {
    position: relative;
    background-color: #ff1744; /* Rojo llamativo */
    border-radius: 5px;
    padding: 10px 20px;
    color: #ffffff;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.live-button:hover {
    background-color: #ff4569; /* Rojo más claro */
    transform: scale(1.1); /* Ampliar ligeramente */
}

.live-circle {
    font-size: 16px;
    animation: pulse 1.5s infinite; /* Animación de pulso */
    color: #ffffff;
}

/* Animación de pulso para el icono de "En Vivo" */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}
/* Estilo para las secciones de términos y privacidad */
.terms-section {
    margin: 50px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #0f171e;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.terms-section h1, .terms-section h2 {
    color: #ffc107; /* Amarillo para los títulos */
    margin-bottom: 15px;
}

.terms-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Enlace de pie de página */
.footer img {
    max-width: 100%; /* Permite que la imagen se ajuste al tamaño del contenedor */
    height: auto; /* Mantiene las proporciones originales de la imagen */
    display: block; /* Elimina márgenes extra por comportamiento inline */
    margin: 0 auto; /* Centra la imagen en el contenedor */
}

/* Consultas de medios para dispositivos móviles */
@media (max-width: 768px) { /* Tablets y celulares */
    .footer img {
        max-width: 70%; /* Reduce el tamaño de la imagen en pantallas pequeñas */
    }
}

@media (max-width: 480px) { /* Celulares pequeños */
    .footer img {
        max-width: 50%; /* Imagen más pequeña en dispositivos más pequeños */
    }
}

/* Contenedor de noticias */
.news-container {
    padding: 20px;
    display: grid;
    grid-template-areas: 
        "featured-news featured-news"
        "secondary-news secondary-news"
        "thumbnail-news thumbnail-news";
    gap: 20px;
}

/* Noticia destacada */
.featured-news {
    grid-area: featured-news;
    position: relative;
}

.featured-news img {
    width: 100%;
    border-radius: 10px;
}

.featured-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.featured-content h1 {
    margin: 0;
    font-size: 24px;
}

.featured-content span {
    font-size: 14px;
    display: block;
    margin-top: 10px;
}

/* Noticias secundarias */
.secondary-news {
    grid-area: secondary-news;
    display: flex;
    gap: 20px;
}

.secondary-news article {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secondary-news img {
    width: 100%;
    border-radius: 10px;
}

.secondary-news h2 {
    font-size: 18px;
    margin: 0;
}

/* Noticias en miniaturas */
.thumbnail-news {
    grid-area: thumbnail-news;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.thumbnail-news article {
    flex: 1 1 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(33.333% - 20px);
}

.thumbnail-news img {
    width: 100%;
    border-radius: 10px;
}

.thumbnail-news h3 {
    font-size: 16px;
    margin: 0;
}
/* Ventana emergente */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    background-color: #232f3e; /* Fondo principal del popup */
    color: #ffffff;
    padding: 30px;
    border-radius: 15px; /* Bordes redondeados */
    width: 90%;
    max-width: 700px; /* Tamaño máximo */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Sombra elegante */
    animation: fadeIn 0.3s ease-out;
    overflow: hidden; /* Para contenido adicional */
}

/* Encabezado del popup */
.popup-header {
    font-size: 22px;
    font-weight: bold;
    color: #ffc107;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

/* Cuerpo del popup */
.popup-body {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    padding: 10px 0;
    color: #e0e0e0;
}

/* Botón de cierre */
.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff1744;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.close-popup:hover {
    background-color: #ff4569;
    transform: scale(1.1); /* Ligeramente más grande al pasar el mouse */
}

/* Animación del popup */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección del Reproductor */

.player-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Contenedor General del Reproductor */
#player-container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    background-color: #000; /* Negro sólido */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease; /* Transiciones generales */
}

/* Reproductor */
#player {
    width: 100%;
    height: 100%;
}

/* Tamaños del Reproductor */
.player-size {
    width: 100%;
    max-width: 1152px;
    height: auto;
    max-height: 648px;
}

/* Tamaño reducido del reproductor */
.player-mini {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 240px; /* Ancho reducido */
    height: 135px; /* Alto reducido (relación de aspecto 16:9) */
    z-index: 1000;
    border-radius: 8px; /* Bordes más redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Estilos Responsivos */
@media (max-width: 1024px) {
    #player-container {
        max-width: 90%;
        height: auto;
    }

    .player-mini {
        width: 90%;
        height: auto;
        bottom: 10px;
        left: 5%;
    }
}

@media (max-width: 768px) {
    .player-section {
        padding: 20px; /* Reduce el padding en pantallas pequeñas */
    }

    #player-container {
        max-width: 100%;
        height: auto;
    }

    .player-mini {
        width: 100%;
        height: auto;
        bottom: 0;
        left: 0;
        border-radius: 0; /* Elimina bordes redondeados en móviles */
    }
}

@media (max-width: 480px) {
    .player-section h2 {
        font-size: 22px; /* Reduce el tamaño del título */
    }

    .player-mini {
        width: 100%;
        height: 150px; /* Ajusta la altura para pantallas muy pequeñas */
    }
}

.section-title {
    text-align: center;
    margin-bottom: 20px; /* Espacio entre el título y el contenido */
}

.section-title img {
    max-width: 100%; /* Ajusta el tamaño del GIF al contenedor si es necesario */
    height: auto;
    display: inline-block;
}

        /* Centrar el apartado */
        .section-title {
            display: flex;
            justify-content: center; /* Centra horizontalmente */
            align-items: center; /* Centra verticalmente */
            text-align: center; /* Asegura que el texto o contenido esté alineado en el centro */
        }
        .popup {
            display: none; /* Esto asegura que el popup esté oculto inicialmente */
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: transparent;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            width: 80%;
            max-width: 500px;
        }
        
        .popup-content {
            position: relative;
            text-align: center;
        }
        
        .popup-image {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .close-btn {
            position: absolute;
            top: 10px; /* Ajusta la distancia desde la parte superior */
            left: 10px; /* Coloca la X en la parte izquierda */
            font-size: 30px; /* Tamaño de la X */
            color: #333; /* Color de la X */
            cursor: pointer;
            z-index: 1010; /* Asegura que la X esté por encima del contenido */
        }
        
        .download-btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
            margin-top: 20px;
        }
        
        .download-btn:hover {
            background-color: #45a049;
        }