/* ===== ESTILOS GENERALES ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
}

/* ===== BARRA SUPERIOR REDES ===== */
.barra-redes {
    background: #000;
    padding: 20px ;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.barra-redes img {
    width: 24px;
    height: 24px;
}

/* ===== HEADER ===== */
header {
    background: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
header img {
    height: 90px; /* 🔹 Logo más grande (+4cm aprox) */
}
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}
nav ul li a:hover {
    color: #ffcc00;
}

/* ===== TÍTULOS ===== */
.titulo-seccion {
    text-align: center;
    font-size: 3.2em; /* 🔹 Títulos 1cm más grandes */
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffcc00;
    text-transform: uppercase;
}

/* ===== SECCIONES ===== */
.seccion {
    padding: 40px 20px;
}

/* ===== VIDEO EN VIVO ===== */
#envivo {
    display: flex;
    justify-content: center; /* Centrar horizontal */
    padding: 0; /* Quitar espacio extra */
    margin: 0;
}

/* Contenedor del reproductor */
#telelima-player {
    display: block;
    max-width: 900px;        /* Límite en pantallas grandes */
    width: auto;             /* Se adapta al ancho del video */
    height: auto;            /* Se adapta a la altura del video */
    background: black;       /* Fondo negro */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    margin: 0 auto;          /* Centrado */
}

/* Video ajustado sin recortar */
#telelima-player video {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Muestra todo el video sin recortar */
    background: none; /* Sin franjas negras adicionales */
    margin: 0;
    padding: 0;
}

/* ===== NUESTROS PROGRAMAS ===== */
.programas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 🔹 3 imágenes por fila */
    gap: 15px;
}
.programa img {
    width: 100%;
    aspect-ratio: 3 / 4; /* Vertical */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.programa img:hover {
    transform: scale(1.05);
}
.programa h3 {
    text-align: center;
    margin-top: 8px;
    font-size: 1.2em;
}

/* ===== PROGRAMACIÓN (desde XML) ===== */
.programacion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 por fila */
    gap: 15px;
}
.programa-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}
.programa-card img {
    width: 100%;
    aspect-ratio: 3 / 4; /* Vertical */
    object-fit: cover;
}
.programa-card .info {
    padding: 8px;
}
.programa-card h3 {
    margin: 0;
    font-size: 1.1em;
    color: #fff;
}
.programa-card p {
    margin: 3px 0 0;
    font-size: 0.9em;
    color: #bbb;
}

/* ===== CONTACTO ===== */
#contacto form {
    max-width: 500px; /* 🔹 Mitad de pantalla */
    margin: auto; /* Centrado */
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#contacto input,
#contacto textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
}
#contacto button {
    background: #ffcc00;
    color: #000;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
#contacto button:hover {
    background: #ffdd33;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 15px;
    background: #111;
    font-size: 0.9em;
    color: #bbb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .programas-grid,
    .programacion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #telelima-player {
        width: 95%;
    }
}
@media (max-width: 480px) {
    .programas-grid,
    .programacion-grid {
        grid-template-columns: 1fr;
    }
    #telelima-player {
        width: 100%;
    }
}
