/* Estilos Generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #121212, #1a1a1a);
    color: #ffffff;
}

.title {
    margin-top: 180px;
    display: block;
    text-align: center;
    font-family: sans-serif;
    font-weight: 800;
    position: relative;
}

.main-content {
    padding-top: 8%;
    display: flex;
    width: 80%;
    margin: 20px auto;
}

.reproductor {
    position: relative;
    flex: 3;
    text-align: center;
    padding: 5%;
}

.reproductor iframe {
    padding-top: 10%;
    border: none;
}

.reproductor button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #c300ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.reproductor button:hover {
    background-color: #c6e3ff;
}

/* Mejoras en el Slider */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeInOut 35s infinite;
    transition: opacity 2s ease-in-out;
}

/* Animación de Fade In/Out para el slider */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        opacity: 1;
    }
    35% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Degradado suave para evitar cambios bruscos */
.slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    z-index: 1;
}

.publicity {
    flex: 1;
    text-align: center;
    margin-left: 20px;
}

.publicity img {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    border: 2px solid #444;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.publicity img:hover {
    transform: scale(1.1);
}

.visualizer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 80%;
    max-width: 50%;
    height: 200px;
    margin-left: 20%;
}

.bar {
    width: 8%;
    height: 50px;
    background: linear-gradient(180deg, #00ffcc, #0066ff);
    animation: bounce 0.5s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--delay));
    border-radius: 4px;
}

/* Diferentes animaciones para las barras */
.bar:nth-child(1) { --delay: 1; }
.bar:nth-child(2) { --delay: 2; }
.bar:nth-child(3) { --delay: 3; }
.bar:nth-child(4) { --delay: 4; }
.bar:nth-child(5) { --delay: 5; }
.bar:nth-child(6) { --delay: 6; }
.bar:nth-child(7) { --delay: 7; }
.bar:nth-child(8) { --delay: 8; }

@keyframes bounce {
    0%, 100% {
        height: 50px;
    }
    50% {
        height: 200px;
    }
}

.panel-info {
    float: right;
    width: 15%;
    padding: 6%;
    background-color: #2b2b2b;
    border-radius: 5px;
    text-align: center;
    margin-left: 5%;
}

/* Título Principal */
h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Panel de Información */
.panel-info img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.panel-info img:hover {
    background: #444444;
}

.panel-info h3 {
    margin: 10px 0;
    color: #dddddd;
    padding: 2%;
    border-top: 2px solid #444444;
}

.panel-info p {
    font-size: 0.9em;
    margin-bottom: 10%;
    text-align: center;
    margin: 20px 0;
}

.panel-info a {
    color: #b3b3b3;
    text-decoration: none;
}

.panel-info a:hover {
    color: #ffffff;
}

.panel-info ul {
    text-align: justify;
}

/* Sección Índice */
.panel-indice {
    margin: 5% 0;
    padding: 5%;
    background-color: #2b2b2b;
    border-radius: 5px;
    width: 20%;
}

.panel-indice h2 {
    margin-bottom: 2%;
    border-bottom: 2px solid #444444;
    padding-bottom: 2%;
}

.panel-indice .index ul {
    list-style: none;
    padding: 0;
}

.panel-indice .index li {
    margin: 5px 0;
}

.panel-indice a {
    color: #b3b3b3;
    text-decoration: none;
}

.panel-indice a:hover {
    color: #ffffff;
}

/* Secciones */
.intro-section,
.section {
    margin-bottom: 30px;
}

.section h2 {
    border-bottom: 2px solid #444444;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.imagen {
    right: 5%;
    width: 15%;
    padding: 3%;
    border-radius: 10%;
    background-color: #2b2b2b;
}

.section img {
    max-width: 100%;
    border-radius: 5px;
    margin: 10px 0;
}

.section p {
    line-height: 1.6;
}

.section a {
    color: #b3b3b3;
}

/* =========================================
   ESTILOS DEL REPRODUCTOR MARINA GAMING
   ========================================= */
.mg-radio-container {
    background: linear-gradient(145deg, #1a1a20, #25252d);
    border: 1px solid #0099FF;
    border-radius: 15px;
    padding: 25px;
    width: 80%;
    max-width: 450px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box; /* Asegura que el padding no rompa el ancho en móviles */
}

.mg-radio-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

/* Estilos para el Logo de la Radio */
.mg-logo-container {
    margin: 15px 0 10px 0;
    display: flex;
    justify-content: center;
}

.mg-radio-logo {
    max-width: 180px; /* Controla el tamaño de la imagen original gigantesca */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 153, 255, 0.3)); /* Resalta el logo blanco */
}

.mg-radio-header h3 {
    color: #ffffff;
    margin: 5px 0 0 0;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

/* Etiqueta "EN VIVO" parpadeante */
.mg-live-badge {
    background: rgba(255, 0, 50, 0.1);
    color: #ff3366;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 0, 50, 0.3);
}

.mg-live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3366;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

.mg-radio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.mg-btn {
    background: none;
    border: none;
    color: #0099FF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mg-btn:hover {
    color: #00ccff;
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
}

.mg-btn .material-symbols-outlined {
    font-size: 65px; 
}

.mg-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

/* Personalización de la barra de volumen para navegadores Webkit (Chrome/Safari) */
#mg-volume-slider {
    -webkit-appearance: none;
    width: 120px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
}

#mg-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0099FF;
    cursor: pointer;
    transition: background 0.3s;
}

#mg-volume-slider::-webkit-slider-thumb:hover {
    background: #fff;
    box-shadow: 0 0 10px #0099FF;
}

/* =========================================
   DISEÑO DEL CALENDARIO DE RADIO (POR HORA)
   ========================================= */
.mg-schedule-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mg-schedule-container h2 {
    color: #0099FF;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #111;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.mg-schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; 
    text-align: center;
}

.mg-schedule-table th {
    background-color: #0099FF;
    color: #fff;
    padding: 12px 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    border: 1px solid #007acc;
}

/* Diseño de las celdas (esta vez con texto en lugar de imágenes gigantes) */
.mg-schedule-table td {
    padding: 8px 5px; 
    border: 1px solid #333;
    vertical-align: middle;
    height: 45px; /* Altura un poco menor para la radio ya que no hay banners de imagen */
    font-size: 0.85rem;
    color: #ddd;
    transition: background 0.2s;
}

.mg-schedule-table td:hover {
    background-color: #1a1a20;
    color: #0099FF;
    font-weight: bold;
}

/* Columna de la hora */
.mg-time-col {
    background-color: #1a1a20;
    font-weight: bold;
    color: #0099FF;
    width: 70px;
}

/* Colores temáticos para los programas de Radio (Opcional, para darle vida) */
.show-seleccion { color: #888; } /* Gris para la madrugada */
.show-punto { color: #00ccff; }
.show-maquina { color: #ffcc00; }
.show-64bits { color: #ff9900; }
.show-indie { color: #cc66ff; }
.show-zelda { color: #33cc33; }
.show-otaku { color: #ff3399; }
.show-hispana { color: #ff6600; }
.show-halo { color: #0066cc; }
.show-boss { color: #ff3333; font-weight: bold; }
.show-santos { color: #ffcc00; }
.show-checkpoint { color: #9933ff; }
.show-vice { color: #ff00ff; }
.show-festival { color: #00ffcc; }

@media (max-width: 768px) {
    .mg-schedule-container { width: 95%; }
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES)
   ========================================= */
@media (max-width: 600px) {
    .mg-radio-container {
        width: 95%; /* Ocupa casi todo el ancho de la pantalla */
        padding: 20px 15px; /* Reduce los márgenes internos */
        margin: 10px auto;
    }

    .mg-radio-logo {
        max-width: 140px; /* Achica el logo un poco en móviles */
    }

    .mg-radio-header h3 {
        font-size: 1.1rem; /* Ajusta el tamaño de la fuente */
    }

    .mg-radio-controls {
        flex-direction: column; /* Apila el botón de play y el volumen verticalmente */
        gap: 15px; /* Espacio entre play y volumen */
    }

    .mg-btn .material-symbols-outlined {
        font-size: 55px; /* Reduce un poco el botón principal */
    }
    
    #mg-volume-slider {
        width: 150px; /* Al estar en su propia línea, el slider puede ser más largo */
    }
}

@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column; /* Cambia a disposición vertical */
        padding: 15%;
        margin-top: 10%;
    }

    .panel-info {
        position: relative; /* Deja de ser absoluto */
        width: 100%; /* Ocupa todo el ancho */
        margin-bottom: 20px; /* Espacio debajo del panel-info */
        top: 0;
        right: 0;
        padding: 5%; /* Aumenta el relleno en dispositivos pequeños */
    }

    .panel-indice {
        width: 100%; /* Índice ocupa todo el ancho */
        margin: 20px 0; /* Espacio entre secciones */
        padding: 5%;
    }

    .section {
        width: 100%; /* Secciones ocupan todo el ancho */
    }

    .imagen {
        margin: 0 auto; /* Centra las imágenes */
        width: 100%;
    }
}