:root {
    --bg-color: #fbf9f8;
    --text-color: #1a1a1a;
    --accent-red: #cc0000;
    --border-color: #e5e5e5;
    --footer-bg: #2d2422;
    --footer-text: #b5a9a7;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

.header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.logo-container {
    margin-bottom: 1rem;
}

.header-banner {
    width: 100%;     /* Se adapta al ancho disponible */
    max-width: 600px; /* Pero no crece más de 600px en pantallas grandes */
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.station-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.station-subtitle {
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 2px;
}

.on-air {
    margin-right: 5px;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    padding: 0 1.5rem 2rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 2rem;
    align-items: start;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.side-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 1rem;
}

.vertical-banner {
    width: 100%;
    height: 600px;
}

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

.album-art-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0e6e6;
    border: 2px solid #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-badge .dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.track-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

#track-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

#track-artist {
    font-size: 0.9rem;
    color: #666;
}

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

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: transform 0.2s, color 0.2s;
}

.control-btn:hover {
    color: var(--accent-red);
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: #000;
    color: #fff;
    border-radius: 0; /* Square button as per design */
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background-color: var(--accent-red);
    color: #fff;
    transform: scale(1.05);
}

.progress-container {
    width: 100%;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: #666;
    margin-bottom: 5px;
}

.streaming-text {
    color: var(--accent-red);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%; /* Simulamos la mitad de progreso para el diseño, o dinámico en JS */
    background-color: var(--accent-red);
}

/* Carousel Banner */
.carousel-banner {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.ad-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    background-color: #f0f0f0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    width: 100%;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-top: auto;
}

.frequency-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frequency-bar .highlight {
    color: #fff;
}

.frequency-bar .directo {
    color: #fff;
    font-weight: bold;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 850px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .vertical-banner {
        height: 100px;
    }
    .carousel-container {
        aspect-ratio: 16/9;
    }
}
