/* =========================================
   1. ESTILOS GENERALES Y ESCRITORIO (PC)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Manda los logos a las esquinas en PC */
    padding: 15px 5%;
    background-color: #fff;
    width: 100%;
}

/* Tamaños de logos en PC */
.nav-logo-left img { height: 70px; width: auto; }
.nav-logo-right img { height: 50px; width: auto; }

/* Contenedor de botones en PC (alineados al centro) */
.nav-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Botones de colores en PC */
.btn {
    border: none;
    border-radius: 8px; 
    color: white;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 800; /* Letra gruesa */
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    filter: brightness(0.9);
}

/* Colores de cada botón */
.btn-red { background-color: #ff0033; }
.btn-orange { background-color: #ff9100; }
.btn-green { background-color: #00ff66; }
.btn-blue { background-color: #0091ff; }
.btn-dark { background-color: #555555; }

.arrow {
    font-size: 9px;
    margin-left: 8px;
}

/* El botón hamburguesa está oculto en PC */
.hamburger {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}


/* =========================================
   2. ESTILOS PARA MÓVILES Y TABLETS
   ========================================= */
@media (max-width: 1024px) {
    .navbar {
        position: relative;
        padding: 20px;
        display: flex;
        flex-direction: column; 
        align-items: center; /* Centra logos */
        justify-content: center;
        gap: 15px; 
        width: 100%;
    }

    /* Aparece la hamburguesa a la izquierda */
    .hamburger {
        display: block;
        position: absolute;
        top: 35px;
        left: 20px;
        z-index: 10;
    }

    /* Orden para centrar logos */
    .nav-logo-left { order: 1; width: 100%; text-align: center; }
    .nav-logo-right { order: 2; width: 100%; text-align: center; }
    .nav-logo-left img, .nav-logo-right img { display: block; margin: 0 auto; }

    /* Menú blanco desplegable */
    .nav-buttons {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 0; 
        box-shadow: 0px 8px 15px rgba(0,0,0,0.1);
        z-index: 100;
        border-bottom: 4px solid #ff0033;
    }

    .nav-buttons.active {
        display: flex;
    }

    /* Transforma los botones de colores a listas blancas */
    .btn, .dropdown .btn {
        width: 100%;
        background-color: transparent !important; 
        color: #555 !important; 
        font-weight: normal; 
        font-size: 15px;
        padding: 15px 20px;
        border-radius: 0;
        border: none !important; 
        border-bottom: 1px solid #eee !important; 
        justify-content: flex-start; 
    }

    .dropdown:last-child .btn { border-bottom: none !important; }
    a.btn-red { text-decoration: none; }
    
    .arrow {
        margin-left: auto;
        color: #999;
    }
    
    .dropdown { width: 100%; }
}

/* Ajustes finales para pantallas muy pequeñas (Celulares) */
@media (max-width: 768px) {
    .nav-logo-left img { height: 60px; }
    .nav-logo-right img { height: 45px; }
    .hamburger { top: 30px; } 
}

/* =========================================
   3. FRANJA SEÑAL ONLINE (Puro CSS)
   ========================================= */
.banner-senal-css {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    /* Este es el degradado de fondo que imita tu imagen */
    background: linear-gradient(90deg, #ffdeaa 0%, #ffffff 15%, #ffffff 85%, #ff9ebb 100%);
    gap: 8px; /* Espacio entre las cajas y las ondas */
    font-family: 'Arial', sans-serif;
}

/* Estilo de la palabra SEÑAL */
.caja-naranja {
    background-color: #ff9100;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}

/* Estilo de la palabra ONLINE */
.caja-roja {
    background-color: #ff0033;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}

/* Las ondas de transmisión a los lados */
.onda-naranja {
    color: #ff9100;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    margin-right: 5px;
    margin-top: -3px; /* Pequeño ajuste para alinear con las cajas */
}

.onda-roja {
    color: #ff0033;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    margin-left: 5px;
    margin-top: -3px;
}

/* --- RESPONSIVE: Ajuste para celulares --- */
@media (max-width: 768px) {
    .banner-senal-css {
        padding: 12px 0;
        /* En celular es mejor fondo blanco para que no se vea sobrecargado */
        background: #ffffff; 
        gap: 5px;
    }
    
    .caja-naranja, .caja-roja {
        font-size: 20px;
        padding: 5px 10px;
    }
    
    .onda-naranja, .onda-roja {
        font-size: 24px;
    }
}

/* =========================================
   4. REPRODUCTOR SEÑAL EN VIVO
   ========================================= */
.contenedor-envivo {
    width: 90%; /* Ocupa casi toda la pantalla dejando un margen limpio */
    max-width: 1000px; /* Evita que el video sea grotescamente grande en PC */
    margin: 40px auto; /* Lo centra en la pantalla y le da espacio arriba y abajo */
    background-color: #000; /* Fondo negro mientras carga */
    border-radius: 12px; /* Bordes un poco redondeados para que se vea moderno */
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3); /* Una sombra elegante alrededor */
}

/* El truco mágico para mantener la proporción de TV (16:9) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* =========================================
   5. FRANJA PROGRAMAS 2025 (Puro CSS)
   ========================================= */
.banner-programas-css {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    /* Degradado idéntico a tu imagen: Azul -> Blanco -> Verde */
    background: linear-gradient(90deg, #60a5fa 0%, #ffffff 30%, #ffffff 70%, #6ee7b7 100%);
}

.texto-programas {
    color: #3b82f6; /* El tono azul vibrante de las letras */
    font-family: 'Arial', sans-serif; /* Mantiene la misma tipografía limpia */
    font-size: 42px; /* Letra grande e imponente */
    font-weight: 900; /* Lo más gordita posible */
    margin: 0;
    letter-spacing: 2px;
}

/* --- RESPONSIVE: Ajuste para celulares --- */
@media (max-width: 768px) {
    .banner-programas-css {
        padding: 15px 0;
        /* Suavizamos el fondo en móvil para que lea mejor */
        background: linear-gradient(90deg, #e0f2fe 0%, #ffffff 50%, #d1fae5 100%);
    }
    
    .texto-programas {
        font-size: 28px; /* Achicamos el texto para que no se salga de la pantalla */
    }
}
/* =========================================
   6. CARRUSEL DE IMÁGENES
   ========================================= */
.contenedor-carrusel {
    width: 100%; /* Ahora ocupa el 100% de la pantalla */
    max-width: 100%; /* Quitamos el límite de 1000px */
    margin: 30px 0; /* Solo dejamos margen arriba y abajo */
    position: relative;
    overflow: hidden; 
    /* Le quitamos el borde redondeado para que se vea como un banner de punta a punta */
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
}

.carrusel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Animación suave al cambiar de foto */
    width: 100%;
}

.carrusel-slide {
    min-width: 100%; /* Cada imagen ocupa el 100% del contenedor */
    box-sizing: border-box;
}

.carrusel-slide img {
    width: 100%;
    display: block;
    object-fit: cover; /* Evita que las fotos se deformen o aplasten */
}

/* --- Diseño de las flechas --- */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Fondo negro semitransparente */
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.carrusel-btn:hover {
    background-color: rgba(255, 0, 51, 0.8); /* Cambia a rojo al pasar el mouse */
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* =========================================
   7. SECCIÓN INNOVACIÓN Y APRENDIZAJE
   ========================================= */
.seccion-innovacion {
    width: 100%;
    /* El degradado de azul a verde brillante */
    background: linear-gradient(90deg, #186bba 0%, #29b85c 45%, #0de02e 100%);
    padding: 60px 20px;
    box-sizing: border-box;
    margin-bottom: 40px; /* Un poco de espacio al final */
}

.innovacion-contenido {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Separación entre el texto y la foto */
}

.innovacion-texto {
    flex: 1; /* Ocupa la mitad del espacio */
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

.innovacion-texto h2 {
    font-size: 34px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.innovacion-texto p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.innovacion-media {
    flex: 1; /* Ocupa la otra mitad del espacio */
    display: flex;
    justify-content: center;
}

.innovacion-media img {
    width: 100%;
    max-width: 550px;
    height: auto;
    /* Le damos un bordecito redondeado y una sombra para que resalte sobre el fondo */
    border-radius: 8px; 
    box-shadow: 0px 10px 25px rgba(0,0,0,0.3);
}

/* --- RESPONSIVE: Ajuste para celulares --- */
@media (max-width: 768px) {
    .innovacion-contenido {
        flex-direction: column; /* Pone la foto debajo del texto en móviles */
        text-align: center;
    }
    
    .innovacion-texto h2 {
        font-size: 28px;
    }
}
/* =========================================
   8. PIE DE PÁGINA (FOOTER)
   ========================================= */
.footer-sitio {
    width: 100%;
    /* Degradado de azul intenso a verde neón, igual a tu imagen */
    background: linear-gradient(90deg, #0076db 0%, #00a676 50%, #00ea00 100%);
    padding: 25px 15px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px;
}

.footer-sitio p {
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 18px; /* Tamaño de letra equilibrado */
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- RESPONSIVE: Ajuste para celulares --- */
@media (max-width: 768px) {
    .footer-sitio {
        padding: 20px 15px;
    }
    .footer-sitio p {
        font-size: 14px; /* Letra un poco más chica en móviles para que no ocupe tantas líneas */
        line-height: 1.6;
    }
}