/* ============================================
   NOTICIAS.HTML — Estilos independientes
   Fuente: Montserrat (Google Fonts)
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 75px;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111111;
    padding: 15px 5%;
    border-bottom: 3px solid #c0392b;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: color 0.3s;
}

.nav-links li.active a,
.nav-links a:hover {
    color: #d35400;
}

.nav-sub {
    display: block;
    font-size: 0.65rem;
    color: #b3b3b3;
    font-weight: 300;
}

/* --- HERO SECTION CON AUDIO --- */
.hero-section {
    position: relative;
    padding: 80px 5%;
    background-image: url('images/boulevar.png');
    background-size: cover;
    background-position: center;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 500px;
    width: 100%;
    height: auto;
}

.station-callout {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.station-name {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 6px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
}

.live-badge {
    background-color: #c0392b;
    color: #fff;
    padding: 5px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 3px;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.player-container {
    background-color: #d35400;
    padding: 18px;
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.player-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f7f9fa;
}

.status-dot {
    color: #c0392b;
    font-weight: 700;
}

.html5-audio {
    width: 100%;
    height: 38px;
    outline: none;
}

.hero-slogan {
    font-family: 'Oooh Baby', cursive !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #f5f5f5 !important;
    letter-spacing: 2px !important;
    margin-top: 15px !important;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 40px #d35400, 0 2px 8px rgba(0, 0, 0, 1) !important;
}

/* ============================================
   SECCIÓN NOTICIAS HOY
   ============================================ */
.noticias-section {
    background-color: #f9fafb;
    padding: 60px 2% 70px;
}

.noticias-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* --- Encabezado --- */
.noticias-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid #0284c7;
}

.noticias-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111111;
    letter-spacing: 1px;
}

.noticias-date {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 4px;
    text-transform: capitalize;
}

/* --- HERO FEATURE --- */
.noticias-hero {
    margin-bottom: 28px;
}

.noticias-hero-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.noticias-hero-link:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.noticias-hero-media {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.noticias-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.noticias-hero-link:hover .noticias-hero-media img {
    transform: scale(1.03);
}

.noticias-badge-live {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    animation: noticias-pulse 1.5s infinite;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
}

.noticias-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px 30px;
}

.noticias-cat-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.noticias-hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.35;
    margin-bottom: 14px;
    transition: color 0.3s;
}

.noticias-hero-link:hover .noticias-hero-title {
    color: #0284c7;
}

.noticias-hero-desc {
    font-size: 0.93rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 18px;
}

.noticias-read-more {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0284c7;
    transition: letter-spacing 0.3s;
}

.noticias-hero-link:hover .noticias-read-more {
    letter-spacing: 1px;
}

/* --- DESTACADAS GRID --- */
.noticias-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.noticias-featured-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.noticias-featured-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

.noticias-featured-img {
    overflow: hidden;
    height: 230px;
}

.noticias-featured-side .noticias-featured-img {
    height: 185px;
}

.noticias-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.noticias-featured-card:hover .noticias-featured-img img {
    transform: scale(1.05);
}

.noticias-featured-info {
    padding: 18px 20px 20px;
}

.noticias-featured-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.4;
    margin-top: 8px;
    transition: color 0.3s;
}

.noticias-featured-card:hover .noticias-featured-title {
    color: #0284c7;
}

/* --- CARRUSEL INFERIOR --- */
.noticias-carousel-section {
    margin-top: 10px;
}

.noticias-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 18px;
    padding-left: 4px;
}

.noticias-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.noticias-carousel-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 10px;
}

.noticias-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticias-carousel-item {
    min-width: calc((100% - 32px) / 3);
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.noticias-carousel-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

.noticias-thumb {
    overflow: hidden;
    height: 140px;
}

.noticias-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.noticias-carousel-item:hover .noticias-thumb img {
    transform: scale(1.05);
}

.noticias-thumb-info {
    padding: 12px 14px 14px;
}

.noticias-thumb-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.35;
    margin-top: 6px;
    transition: color 0.3s;
}

.noticias-carousel-item:hover .noticias-thumb-title {
    color: #0284c7;
}

/* Botones de navegación del carrusel */
.noticias-nav-btn {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.noticias-nav-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

/* Puntos indicadores del carrusel */
.noticias-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.noticias-dot {
    width: 10px;
    height: 10px;
    background-color: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.noticias-dot.active {
    background-color: #0284c7;
    transform: scale(1.2);
}

/* --- ANIMACIÓN FADE-IN --- */
.noticias-fade-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.noticias-fade-item.noticias-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- KEYFRAME: Pulse para badge EN VIVO --- */
@keyframes noticias-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* ============================================
   SECCIÓN CONTÁCTENOS
   ============================================ */
.contact-section {
    background-color: #1a1a1a;
    padding: 60px 5%;
    border-top: 3px solid #c0392b;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-logo img {
    height: 80px;
    width: auto;
}

.contact-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.contact-info p {
    font-size: 0.88rem;
    color: #cccccc;
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-social {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link.facebook { background-color: #1877f2; }
.social-link.youtube { background-color: #ff0000; }
.social-link.whatsapp { background-color: #25d366; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.social-link:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

/* ============================================
   BARRA FLOTANTE CON VISUALIZADOR
   ============================================ */
.fixed-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 5%;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-top: 2px solid #d35400;
}

.fixed-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fixed-status {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    white-space: nowrap;
}

.visualizer-canvas {
    flex: 1;
    height: 45px;
    border-radius: 4px;
    display: block;
}

.player-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #d35400;
}

/* ============================================
   MODAL NOTICIA EXPANDIDA
   ============================================ */
.noticias-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.noticias-modal-overlay.noticias-modal-open {
    opacity: 1;
    visibility: visible;
}

.noticias-modal {
    background: #ffffff;
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.noticias-modal-overlay.noticias-modal-open .noticias-modal {
    transform: translateY(0) scale(1);
}

.noticias-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.noticias-modal-close:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

.noticias-modal-img {
    position: relative;
    overflow: hidden;
    max-height: 340px;
}

.noticias-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noticias-modal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 1.5px;
}

.noticias-modal-body {
    padding: 28px 32px 32px;
}

.noticias-modal-body .noticias-cat-label {
    margin-bottom: 12px;
}

.noticias-modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.35;
    margin-bottom: 18px;
}

.noticias-modal-text p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: justify;
}

.noticias-modal-text p:last-child {
    margin-bottom: 0;
}

.noticias-modal-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Scrollbar personalizada dentro del modal */
.noticias-modal::-webkit-scrollbar {
    width: 6px;
}
.noticias-modal::-webkit-scrollbar-track {
    background: transparent;
}
.noticias-modal::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .noticias-hero-link {
        grid-template-columns: 1fr;
    }
    .noticias-hero-media {
        min-height: 240px;
    }
    .noticias-hero-content {
        padding: 25px 22px;
    }
    .noticias-hero-title {
        font-size: 1.3rem;
    }
    .noticias-featured {
        grid-template-columns: 1fr;
    }
    .noticias-featured-img {
        height: 200px;
    }
    .noticias-carousel-item {
        min-width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 4%;
    }
    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.78rem;
    }
    .nav-sub {
        font-size: 0.55rem;
    }
    .hero-section {
        padding: 60px 4%;
        min-height: 400px;
    }
    .hero-logo {
        max-width: 350px;
    }
    .station-name {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    .live-badge {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
    .player-container {
        padding: 14px;
        max-width: 100%;
    }
    .hero-slogan {
        font-size: 0.9rem !important;
    }
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 4%;
    }
    .contact-logo img {
        height: 60px;
    }
    .contact-info h2 {
        font-size: 1.2rem;
    }
    .contact-info p {
        font-size: 0.78rem;
    }
    .contact-social {
        justify-content: center;
    }
    .social-link {
        width: 40px;
        height: 40px;
    }
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    .fixed-player-content {
        gap: 8px;
    }
    .fixed-status {
        font-size: 0.65rem;
    }
    .visualizer-canvas {
        height: 30px;
    }
    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .noticias-modal {
        max-height: 80vh;
    }
    .noticias-modal-title {
        font-size: 1.25rem;
    }
    .noticias-modal-body {
        padding: 22px 24px 26px;
    }
}

@media (max-width: 600px) {
    .noticias-section {
        padding: 40px 4% 50px;
    }
    .noticias-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .noticias-title {
        font-size: 1.5rem;
    }
    .noticias-hero-media {
        min-height: 200px;
    }
    .noticias-hero-content {
        padding: 20px 16px;
    }
    .noticias-hero-title {
        font-size: 1.15rem;
    }
    .noticias-hero-desc {
        font-size: 0.88rem;
    }
    .noticias-featured-img {
        height: 180px;
    }
    .noticias-featured-title {
        font-size: 0.95rem;
    }
    .noticias-carousel-item {
        min-width: 100%;
    }
    .noticias-nav-btn {
        display: none;
    }
    .station-name {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    .hero-logo {
        max-width: 280px;
    }
    .hero-slogan {
        font-size: 0.8rem !important;
    }
    .noticias-modal-overlay {
        padding: 10px;
    }
    .noticias-modal {
        max-height: 85vh;
        border-radius: 10px;
    }
    .noticias-modal-title {
        font-size: 1.1rem;
    }
    .noticias-modal-body {
        padding: 18px 18px 22px;
    }
    .noticias-modal-text p {
        font-size: 0.9rem;
    }
}
