/* --- Radio Fontibón FM Modern Styles --- */
/* Variables & Theme */
:root {
    /* Brand Colors - Preserving original identity */
    --primary-color: #002a5c;
    /* Deep Navy */
    --primary-light: #004080;
    /* Lighter Navy for hover */
    --accent-color: #d62828;
    /* Journalistic Red */
    --accent-hover: #b31e1e;

    /* Neutrals */
    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #f4f6f9;
    /* Slight off-white for depth */
    --bg-card: #ffffff;
    --border-color: #e0e0e0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

/* 1. Global Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* 2. Layout Wrapper */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 3. Top Bar (Date & Socials) */
.top-bar {
    background-color: #1a1a1a;
    color: #eee;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.social-link img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    /* Make icons white for dark bar */
}

/* 4. Main Header */
.main-header {
    background: var(--bg-card);
    padding: 25px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-logo-img {
    height: 85px;
    object-fit: contain;
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.5px;
}

.brand-text .fm {
    color: var(--accent-color);
    /* Highlight FM */
}

.site-tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 5px;
}

/* Header Ad Space / Banner */
.header-ad-space img {
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.header-ad-space img:hover {
    transform: scale(1.01);
}

/* 5. Navigation - Sticky & Frosted */
.main-nav {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center nav items */
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    padding: 18px 25px;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    border-bottom-color: var(--accent-color);
}

/* 6. Main Content Area */
.main-content {
    padding: 40px 0;
}

.section-heading {
    position: relative;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
}

.section-heading span {
    display: inline-block;
    padding: 8px 0;
    border-bottom: 3px solid var(--accent-color);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: -2px;
    /* Pull down to overlap border */
}

/* News Grid */
.news-grid-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    /* Wider content, narrower sidebar */
    gap: 40px;
    align-items: start;
}

/* News Cards */
.news-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-item.large {
    margin-bottom: 30px;
}

.news-img {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Hover Zoom Effect on Images */
.news-item:hover .news-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.news-text {
    padding: 25px;
}

.meta-tag {
    background-color: var(--primary-color);
    /* Dark Blue */
    color: white;
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    align-self: flex-start;
    border-radius: 2px;
}

.news-item.small .meta-tag {
    /* Optional: Different color or style for secondary news */
    background-color: var(--accent-color);
}

.news-item h3,
.news-item h4 {
    font-family: var(--font-heading);
    color: #111;
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.news-item h3 {
    font-size: 2rem;
}

.news-item h4 {
    font-size: 1.3rem;
    margin-top: 0;
    padding: 0;
}

/* Reset formatting */

.news-item:hover h3,
.news-item:hover h4 {
    color: var(--primary-color);
}

.news-item p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* "Leer nota completa" Button Style */
.read-more {
    margin-top: auto;
    /* Push to bottom */
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 2px;
}

.read-more::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.read-more:hover::before {
    width: 100%;
}

/* Correction for Small News padding */
.news-item.small .news-text {
    padding: 20px;
}

.news-item.small h4 {
    margin: 5px 0 10px;
    padding: 0;
    /* Override generic removal */
}

/* Secondary News Grid */
.secondary-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

/* Sidebar Widgets match News Style */
.sidebar-widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Slightly lighter than main cards */
    margin-bottom: 35px;
    border: 1px solid #eee;
    border-top: 3px solid var(--accent-color);
    /* Visual unity */
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--text-main);
}

/* Sidebar Player - Modernized */
.mini-player {
    background: linear-gradient(135deg, #111, #222);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mini-player p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.sidebar-play-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(214, 40, 40, 0.4);
}

.sidebar-play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* Audio Visualizer (CSS Animation) */
.audio-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 40px;
    gap: 6px;
    margin: 15px 0;
}

.audio-visualizer .bar {
    width: 6px;
    background: #00d4ff;
    border-radius: 3px;
    animation: bounce 1s infinite ease-in-out;
}

.audio-visualizer .bar:nth-child(2) {
    animation-delay: 0.1s;
    background: #0088ff;
}

.audio-visualizer .bar:nth-child(3) {
    animation-delay: 0.2s;
    background: #0044ff;
}

.audio-visualizer .bar:nth-child(4) {
    animation-delay: 0.3s;
    background: #00d4ff;
}

@keyframes bounce {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 100%;
    }
}

/* Volume Slider */
.volume-box {
    margin-top: 15px;
}

input[type=range] {
    cursor: pointer;
}

/* Popular List */
.popular-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list .number {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.1);
    min-width: 30px;
}

.popular-list a {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

.popular-list a:hover {
    color: var(--primary-color);
}

/* Video Widget */
.caja-video-personalizada video {
    box-shadow: var(--shadow-md);
    border-radius: 8px;
}

/* 7. Carousel & Interviews */
.interview-section {
    padding: 20px 0;
}

.carousel-container {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
}

.slide-content {
    display: flex;
    align-items: stretch;
}

.slide-image {
    flex: 1;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.slide-image .placeholder-img {
    transition: transform 0.5s;
}

.slide-image:hover .placeholder-img {
    transform: scale(1.05);
}

.play-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s;
}

.play-overlay .material-icons {
    font-size: 5rem !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s;
}

.play-overlay:hover .material-icons {
    transform: scale(1.1);
}

.slide-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.category-badge {
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.quote {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 30px;
}

.listen-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.listen-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Carousel Buttons */
.carousel-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: white !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* 8. Footer */
.main-footer {
    background: #111;
    color: #888;
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

/* 9. Responsive adjustments */
@media (max-width: 992px) {
    .news-grid-layout {
        grid-template-columns: 1fr;
    }

    .main-col {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .slide-content {
        flex-direction: column;
    }

    .slide-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-grid {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
    }

    .main-nav {
        position: static;
        /* Unstick on mobile to save screen space or use JS toggle */
    }

    .nav-list {
        display: block;
        white-space: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        text-align: left;
    }

    .nav-list li {
        display: inline-block;
    }

    .secondary-news-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-play-btn {
        padding: 15px;
        /* Larger touch target */
    }
}

/* --- NEW HERO PLAYER STYLES --- */
.hero-player-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a2e 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 20px;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Info Section */
.player-info-large {
    flex: 2;
}

.live-badge {
    background-color: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.station-name-large {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 5px;
}

.now-playing {
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: italic;
}

/* Controls Section (Center) */
.player-controls-large {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.main-play-btn:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.play-icon-large {
    font-size: 5rem !important;
    /* Huge icon */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.play-text-large {
    font-weight: 900;
    font-size: 1rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Extras (Visualizer & Volume) */
.player-extras {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.large-viz {
    height: 40px;
    margin: 0;
}

.large-viz .bar {
    width: 6px;
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff;
    animation: bounce 1s infinite ease-in-out;
}

.large-viz .bar:nth-child(1) {
    animation-delay: 0.1s;
    background: #00d4ff;
    height: 60%;
}

.large-viz .bar:nth-child(2) {
    animation-delay: 0.3s;
    background: #0088ff;
    height: 100%;
}

.large-viz .bar:nth-child(3) {
    animation-delay: 0.2s;
    background: #0044ff;
    height: 80%;
}

.large-viz .bar:nth-child(4) {
    animation-delay: 0.4s;
    background: #00d4ff;
    height: 50%;
}

.large-viz .bar:nth-child(5) {
    animation-delay: 0.25s;
    background: #0088ff;
    height: 90%;
}


.volume-box-large {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-box-large input {
    accent-color: var(--accent-color);
    cursor: pointer;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive adjustments for Hero Player */
@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .player-extras {
        align-items: center;
    }

    .station-name-large {
        font-size: 1.8rem;
    }
}