/* Variables de colores basadas en los logos */
:root {
    --primary-color: #ff3366;
    --secondary-color: #00b8d4;
    --accent-color: #ffcc00;
    --dark-color: #333333;
    --light-color: #ffffff;

    /* Gradiente estático (púrpura a azul como Elevate FM) */
    --gradient-start: #8a2be2;
    --gradient-end: #00b8d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    overflow-x: hidden;
    padding: 15px 0;
}

.next-program-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    text-align: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.next-program-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-title {
    font-size: 1.1rem;
    color: var(--light-color);
    font-weight: 500;
}

.program-schedule {
    font-size: 0.95rem;
    color: var(--light-color);
    opacity: 0.9;
}

.program-date {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0 4px;
}

.program-hour {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0 4px;
}

.container {
    width: 90%;
    max-width: 600px;
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    margin: 2rem auto 0;
}

/* Diseño para el logo principal - más grande y limpio */
.main-logo-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 1.5rem;
}

.main-logo {
    height: 100%;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.03);
}

/* Efecto de resplandor detrás del logo principal */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 30%, rgba(0, 184, 212, 0.9) 33%, rgba(0, 200, 255, 1) 35%, transparent 37%);
    z-index: -1;
    animation: pulse 5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.008);
        opacity: 1;
    }
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

h2 {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.station-info {
    margin-bottom: 2rem;
}

.station-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.now-playing {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.play-button.playing {
    background-color: var(--accent-color);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.play-button.playing:hover {
    background-color: var(--accent-color);
}

.play-button:not(.playing):hover {
    background-color: var(--primary-color);
}

.play-button i {
    font-size: 2.5rem;
    color: var(--light-color);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.play-button:hover i {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 280px;
    margin-bottom: 1rem;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.volume-control:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.volume-icon {
    font-size: 1.3rem;
    color: var(--light-color);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 2px;
}

.volume-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.volume-slider {
    flex-grow: 1;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.volume-slider:hover {
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.35) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3), 
                0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.5), 
                0 0 0 3px rgba(255, 255, 255, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3), 
                0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.5), 
                0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Efecto sutil que sale desde el logo más grande */
.main-logo-container.playing {
    position: relative;
}

.main-logo-container.playing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        transparent 75px, 
        rgba(0, 184, 212, 0.4) 78px, 
        rgba(0, 184, 212, 0.6) 82px,
        rgba(255, 255, 255, 0.1) 86px,
        rgba(0, 184, 212, 0.3) 88px,
        transparent 92px);
    transform: translate(-50%, -50%);
    animation: radioMusicBeat 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    filter: blur(4px);
}

.main-logo-container.playing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 215px;
    height: 215px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        transparent 70px, 
        rgba(0, 184, 212, 0.3) 73px, 
        rgba(0, 184, 212, 0.5) 77px,
        rgba(0, 184, 212, 0.2) 82px,
        transparent 85px);
    transform: translate(-50%, -50%);
    animation: radioMusicBeatSecondary 1.2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    filter: blur(3px);
}

@keyframes radioMusicBeat {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
}

@keyframes radioMusicBeatSecondary {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

/* Animaciones más suaves para móviles */
@keyframes radioMusicBeatMobile {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
}

@keyframes radioMusicBeatSecondaryMobile {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

.app-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.app-button:hover::after {
    animation: button-shine 1.5s;
}

@keyframes button-shine {
    100% {
        transform: translateX(100%);
    }
}

.app-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.app-button i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Carrusel de logos en la parte inferior */
.logo-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    padding: 1rem 0;
}

.logo-carousel-inner {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    padding: 0.5rem;
    width: 100%;
}

.logo-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    filter: brightness(0.85) contrast(1.1) opacity(0.8);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.05);
    border-color: #fff;
    filter: brightness(1) contrast(1.2) opacity(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.social-links {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.3);
}

.social-link i {
    font-size: 1.5rem;
    position: relative;
}

/* Animación para el cambio de programa */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.fade-in-out {
    animation: fadeInOut 1s ease;
}

@media (max-width: 768px) {
    .container {
        width: 88%;
        padding: 2.5rem 1.5rem 1.5rem 1.5rem; /* Reducido padding inferior */
        position: relative;
    }

    h1 {
        font-size: 1.7rem;
        margin-bottom: 1.2rem; /* Más espacio debajo del título */
    }

    .main-logo-container {
        width: 145px;
        height: 145px;
        margin: 0 auto 1.8rem; /* Más espacio debajo del logo */
    }

    /* Animaciones más suaves para móviles */
    .main-logo-container.playing::before {
        animation: radioMusicBeatMobile 1.8s ease-in-out infinite;
    }

    .main-logo-container.playing::after {
        animation: radioMusicBeatSecondaryMobile 1.5s ease-out infinite;
    }

    .station-name {
        font-size: 1.3rem;
    }

    .station-info {
        margin-bottom: 3.5rem; /* Botón de play más abajo dentro del contenedor */
    }

    .play-button {
        width: 58px;
        height: 58px;
    }

    .play-button i {
        font-size: 1.6rem;
    }

    .volume-control {
        margin-bottom: 0.3rem; /* Mínimo espacio debajo del control de volumen */
        max-width: 260px;
        padding: 10px 14px;
        gap: 0.7rem;
    }

    .volume-slider {
        height: 5px;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    .volume-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }

    /* Ocultar carrusel de logos en dispositivos móviles */
    .logo-carousel {
        display: none;
    }

    .logo-carousel-inner {
        gap: 14px;
        padding: 10px;
        width: 100%;
    }

    .logo-item {
        width: 44px;
        height: 44px;
    }

    /* Reposicionar social-links dentro del contenedor en móviles */
    .social-links {
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
        margin: 0.8rem 0 0 0 !important; /* Menor separación del contenedor */
        padding: 15px 0 !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        display: flex !important;
    }

    .next-program-banner {
        padding: 13px 0;
    }

    .next-program-text {
        padding: 0 15px;
        gap: 6px;
    }

    .program-title {
        font-size: 1rem;
    }

    .program-schedule {
        font-size: 0.9rem;
    }

    .inclusive-phrase {
        font-size: 0.8rem;
        margin-bottom: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 3rem 1.8rem 1.8rem 1.8rem; /* Reducido padding inferior */
        margin: 0.8rem auto; /* Más margen superior */
        position: relative;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem; /* Más espacio debajo del título */
    }

    .station-name {
        font-size: 1.2rem;
    }

    /* Animaciones aún más suaves para móviles pequeños */
    .main-logo-container.playing::before {
        animation: radioMusicBeatMobile 2s ease-in-out infinite;
        width: 190px;
        height: 190px;
    }

    .main-logo-container.playing::after {
        animation: radioMusicBeatSecondaryMobile 1.7s ease-out infinite;
        width: 185px;
        height: 185px;
    }

    .station-info {
        margin-bottom: 3.2rem; /* Botón de play más abajo dentro del contenedor */
    }

    .play-button {
        width: 52px;
        height: 52px;
    }

    .play-button i {
        font-size: 1.5rem;
    }

    .volume-control {
        max-width: 240px;
        margin-bottom: 0.2rem; /* Mínimo espacio debajo del control de volumen */
        padding: 8px 12px;
        gap: 0.6rem;
    }

    .volume-slider {
        height: 4px;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

    .volume-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }

    /* Mantener carrusel oculto en móviles pequeños */
    .logo-carousel {
        display: none;
    }

    .logo-carousel-inner {
        gap: 12px;
        padding: 12px;
    }

    .logo-item {
        width: 40px;
        height: 40px;
    }

    /* Mantener social-links dentro del contenedor en móviles pequeños */
    .social-links {
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 12px !important;
        margin: 1rem 0 0 0 !important; /* Menor separación del contenedor */
        padding: 15px 0 !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        display: flex !important;
    }

    .app-links {
        flex-direction: column;
        gap: 10px;
    }

    .next-program-banner {
        padding: 11px 0;
    }

    .next-program-text {
        padding: 0 10px;
        gap: 5px;
    }

    .program-title {
        font-size: 0.95rem;
    }

    .program-schedule {
        font-size: 0.85rem;
    }

    .inclusive-phrase {
        font-size: 0.7rem;
        margin-bottom: 1.1rem;
        padding: 0 8px;
        line-height: 1.2;
    }
}

.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.schedule-item {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 184, 212, 0.2));
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(0, 184, 212, 0.3));
}

.schedule-item:hover::before {
    left: 100%;
}

.schedule-item h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.schedule-item p {
    color: var(--light-color);
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem 1rem 1rem; /* Reducido padding inferior */
        margin: 15px auto 0;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-top: -0.5rem;
        margin-bottom: 1rem;
    }

    .schedule-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0.5rem 0;
    }

    .schedule-item {
        padding: 0.6rem;
    }

    .schedule-item h3 {
        font-size: 1rem;
    }

    .schedule-item p {
        font-size: 0.85rem;
    }
}

/* Media queries para dispositivos móviles - removida para evitar conflictos */

/* Esta regla ya está incluida en la media query principal de 480px */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(0);
    }
}

.accessibility-widget {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.accessibility-fab {
    background: #222;
    color: #ffe066;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.accessibility-fab:focus, .accessibility-fab:hover {
    background: #ffe066;
    color: #222;
}

.accessibility-menu {
    margin-top: 10px;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 10px 0;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.accessibility-menu-btn {
    background: none;
    color: #ffe066;
    border: none;
    text-align: left;
    padding: 10px 18px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    outline: none;
}
.accessibility-menu-btn:focus, .accessibility-menu-btn:hover {
    background: #ffe066;
    color: #222;
}

@media (max-width: 600px) {
    .accessibility-widget {
        left: 10px;
        bottom: 80px; /* Elevado para mejor posición en móviles */
    }
    .accessibility-fab {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .accessibility-menu {
        min-width: 150px;
        padding: 6px 0;
    }
    .accessibility-menu-btn {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
}

.accessibility-menu[hidden] {
    display: none !important;
}

.inclusive-phrase {
    font-size: 0.9rem;
    color: #ffe066;
    opacity: 0.85;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.18);
    letter-spacing: 0.02em;
}
