* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    margin: 0;
    padding: 0;
}

/* Variables CSS */
:root {
    --primary-color: #1DB954;
    --secondary-color: #333;
    --background-color: #f5f5f5;
    --text-color: #000;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: system-ui, -apple-system, sans-serif;
}

/* ESTILOS PARA LA BARRA DE NAVEGACIÓN */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
    width: auto;
    margin-left: 1rem;
    filter: brightness(1.2) contrast(1.1) saturate(1.2);
}

.navbar-nav .nav-item {
    color: #333;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
}

.navbar-nav .nav-link {
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    color: inherit;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Mejoras de accesibilidad */
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ESTILOS PARA EL CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

/* ESTILOS PARA EL REPRODUCTOR DE AUDIO PERSONALIZADO DE IRS */
.spotify-player {
    background: #fff;
    border: 2px solid #1DB954;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    font-family: system-ui, -apple-system, sans-serif;
}

.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.album-art {
    width: 80px;
    /* Aumentado de 56px */
    height: 80px;
    /* Aumentado de 56px */
    background: #404040;
    border-radius: 4px;
    margin-right: 16px;
    padding: 5px;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(1.2) contrast(1.1) saturate(1.2);
}

.track-info {
    color: #000;
}

.track-title {
    font-size: 18px;
    /* Aumentado de 14px */
    font-weight: 600;
    margin-bottom: 4px;
}

.track-artist {
    font-size: 14px;
    /* Aumentado de 12px */
    color: #000;
}

audio {
    width: 100%;
}

audio::-webkit-media-controls-panel {
    background: transparent !important;
}

audio::-webkit-media-controls-play-button {
    background-color: #1DB954;
    border-radius: 50%;
    transform: scale(1.2);
}

audio::-webkit-media-controls-timeline {
    border-radius: 4px;
    height: 4px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #b3b3b3;
    font-size: 11px;
}

.track-artist img {
    width: 18px;
    /* Aumentado de 16px */
    height: 18px;
    /* Aumentado de 16px */
    vertical-align: middle;
    margin-left: 4px;
    filter: brightness(1.2) contrast(2) saturate(2);
    animation: latido 1s infinite;
}

@keyframes latido {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Oscurecer la imagen */
.darken-image {
    filter: brightness(0.5);
    /* Brillo reducido */
}

/* Texto superpuesto centrado */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    /* Limita el ancho máximo del texto para que no se extienda demasiado en pantallas grandes */
    max-width: 1000px;
    width: 90%;
    /* Para que en pantallas pequeñas no se corte */
    padding: 0 1rem;
    /* Un poco de padding horizontal */
    box-sizing: border-box;
}

/* Puntos de ruptura */

/* Móvil: 320px - 480px */
@media (max-width: 480px) {
    .text-overlay h1 {
        font-size: 1.15rem;
    }

    .text-overlay p {
        font-size: 0.65rem;
    }
}

/* Tableta: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .text-overlay h1 {
        font-size: 2rem;
    }

    .text-overlay p {
        font-size: 1.25rem;
    }
}

/* Escritorio: 1200px - 1440px */
@media (min-width: 1200px) and (max-width: 1440px) {
    .text-overlay h1 {
        font-size: 2.5re
    }

    .text-overlay p {
        font-size: 1.5rem;
    }
}

/* Escritorio grande: 1600px+ */
/* Estilos para la sección de eventos */
#proximos-eventos {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

#proximos-eventos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1DB954, #333);
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.event-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (height/width = 9/16 = 0.5625) */
    background: #f5f5f5;
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.03);
}

.event-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    font-family: system-ui, -apple-system, sans-serif;
}

.event-location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.event-location i {
    margin-right: 8px;
    color: #1DB954;
}

.event-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Estilos para el contador */
.countdown-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.countdown-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    max-width: 500px;
}

.countdown-item {
    text-align: center;
    flex: 1;
}

.countdown-number {
    background: white;
    border-radius: 10px;
    padding: 0.8rem 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.countdown-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1DB954, #333);
}

.countdown-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Botón de calendario */
.calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.calendar-btn i {
    margin-right: 8px;
}

.calendar-btn:hover {
    background: #1DB954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.2);
}

/* Evento en curso */
.event-in-progress {
    background: linear-gradient(135deg, #1DB954, #198c3f);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-in-progress i {
    margin-right: 10px;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .event-card {
        margin: 0 1rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
        padding: 0.6rem 0.4rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
}

@media (min-width: 1600px) {
    .text-overlay h1 {
        font-size: 3rem;
    }

    .text-overlay p {
        font-size: 1.55rem;
    }
}

/* Media queries optimizadas */
@media screen and (max-width: 768px) {
    .text-overlay {
        padding: 1rem;
    }

    .contador-container {
        padding: 10px 20px;
    }
}

/* Animaciones optimizadas */
@media (prefers-reduced-motion: no-preference) {
    .text-overlay {
        transition: opacity 0.3s ease;
    }
}

.contador-container {
    text-align: center;
    background: #ffffff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

#contador {
    font-size: 2rem;
    font-weight: bold;
    color: #e73c3c;
    margin-top: 20px;
}

/* ESTILOS PARA LA SECCIÓN DE RADIO MODERNA */
.custom-audio-player {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.custom-audio-player:hover {
    border-color: #343a40;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-audio-controls {
    border-radius: 8px;
}

.custom-audio-controls::-webkit-media-controls-panel {
    background-color: #f8f9fa;
}

.custom-audio-controls::-webkit-media-controls-play-button {
    background-color: #343a40;
    border-radius: 50%;
}

/* Animación de latido solo para el icono Live */
@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Efectos hover para las tarjetas de características */
.bg-primary.bg-opacity-10:hover,
.bg-success.bg-opacity-10:hover,
.bg-warning.bg-opacity-10:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Responsive para la sección de radio */
@media (max-width: 768px) {
    .custom-audio-player {
        padding: 1rem !important;
    }

    .bg-primary.bg-opacity-10,
    .bg-success.bg-opacity-10,
    .bg-warning.bg-opacity-10 {
        margin-bottom: 1rem;
    }
}

/* Animación de latido para el icono Live */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Aplicar la animación al icono Live en el panel izquierdo */
.pulse-dot img[src*="live.png"],
img[src*="live.png"] {
    animation: livePulse 2s infinite ease-in-out;
}