﻿/* Configuración Global y Fondo */
body {
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Encabezado Rojo Elegante */
.main-header {
    width: 100%;
    background: linear-gradient(135deg, #b30000 0%, #800000 100%);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #ff3333;
}

.logo-container {
    max-width: 220px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Contenedor de la TV (16:9) */
.tv-container {
    position: relative;
    width: 85%;
    max-width: 850px;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    border: 4px solid #1a1a1a;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff0000;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    z-index: 5;
}

.program-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
    border-left: 3px solid #ff1a1a;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.start-btn {
    background: linear-gradient(135deg, #ff1a1a 0%, #990000 100%);
    color: white;
    border: 1px solid #ff6666;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
}

/* Guía de Programación (EPG) */
.epg-container {
    width: 85%;
    max-width: 850px;
    margin-top: 30px;
    background-color: #141414;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
    margin-bottom: 50px; /* Espacio antes de llegar al footer */
}

.epg-title {
    color: #fff;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.epg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.epg-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.epg-time {
    color: #ff4d4d;
    font-weight: 700;
    font-size: 14px;
    min-width: 80px;
}

.epg-name {
    color: #cccccc;
    font-weight: 500;
    font-size: 15px;
    flex-grow: 1;
    margin-left: 15px;
}

.epg-item.active {
    background-color: #261010;
    border-color: #b30000;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.2);
}

.epg-item.active .epg-name {
    color: #ffffff;
    font-weight: 700;
}

.epg-status {
    background-color: #ff0000;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* NUEVOS ESTILOS: Pie de Página (Footer) */
.main-footer {
    width: 100%;
    margin-top: auto; /* Empuja el footer al fondo si hay pantallas muy altas */
    background-color: #0a0a0a;
    border-top: 1px solid #1f1f1f;
    padding-top: 30px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-content {
    max-width: 850px;
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Soporte para pantallas móviles */
    padding-bottom: 25px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 12px;
    border-left: 2px solid #b30000;
    padding-left: 8px;
}

.footer-section p {
    color: #888888;
    margin: 0;
    text-align: justify;
}

.footer-bottom {
    width: 100%;
    background-color: #050505;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #111;
}

.footer-bottom p {
    margin: 0;
    color: #555555;
    font-size: 12px;
}
