/* Variables y Sistema de Diseño */
:root {
    /* Colores de Marca */
    --brand-red: #B70000;
    --brand-orange: #ff6600;
    --brand-dark: #2c2c2c;
    
    /* Colores UI */
    --bg-color: #fafafa;
    --surface-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    
    /* Sombras Suaves (Neumorfismo/Glass) */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(183, 0, 0, 0.15);
    
    /* Bordes y Cristal */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Reseteo Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 100px; /* Espacio para el reproductor flotante */
}

/* Capa de fondo con la imagen y difuminado hacia abajo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Altura más comprimida */
    z-index: -1;
    background-image: url('../images/fondo.png');
    background-size: cover;
    background-position: center top;
    
    /* Degradado más denso y comprimido (se desvanece antes y más rápido) */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 95%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 95%);
    
    opacity: 0.95;
}

/* ==================================
   NAVEGACIÓN (GLASSMORPHISM)
================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px); /* El efecto cristal clave */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.logo span {
    color: var(--brand-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-orange);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================================
   SECCIÓN INICIO (HERO)
================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 7rem 2rem 3rem;
    background: transparent; /* Removemos el gradiente para que se vea la imagen de fondo */
    overflow: hidden;
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.75); /* Fondo blanco traslúcido */
    backdrop-filter: blur(12px); /* Desenfoque de fondo para mejorar la legibilidad */
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.badge {
    background: rgba(183, 0, 0, 0.1);
    color: var(--brand-red);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem; /* Un poco más pequeña para el contenedor */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

.hero-title span {
    background: linear-gradient(45deg, var(--brand-red), var(--brand-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #2c2c2c; /* Color más oscuro para mejor contraste */
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.btn-primary {
    background: var(--brand-red);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(183, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--brand-orange);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 102, 0, 0.3);
}

/* Efectos de fondo abstracto para el Hero */
.blob {
    position: absolute;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.5;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(183, 0, 0, 0.3);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 102, 0, 0.2);
    bottom: 50px;
    left: -50px;
}

/* ==================================
   SECCIONES GENERALES
================================== */
.section {
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

/* ==================================
   NOTICIAS (Tarjetas con sombras)
================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--brand-orange);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--brand-dark);
}

.news-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================================
   REPRODUCTOR FLOTANTE
================================== */
.floating-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--brand-dark);
    border-radius: 50px;
    padding: 10px 20px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.player-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Animación de "En vivo" */
.pulse-ring {
    width: 12px;
    height: 12px;
    background-color: #ff3333;
    border-radius: 50%;
    position: relative;
}

.pulse-ring.playing::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #ff3333;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.station-details {
    display: flex;
    flex-direction: column;
}

.station-name {
    font-weight: 600;
    font-size: 1rem;
}

.station-freq {
    font-size: 0.75rem;
    color: #aaaaaa;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--brand-red);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.play-btn:hover {
    background: var(--brand-orange);
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

input[type=range] {
    -webkit-appearance: none;
    width: 80px;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--brand-orange);
    cursor: pointer;
    margin-top: -4px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #555;
    border-radius: 2px;
}

/* ==================================
   QUIENES SOMOS
================================== */
.bg-light { background-color: #f4f6f8; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-features {
    list-style: none;
    margin-top: 2rem;
}
.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.about-features i {
    color: var(--brand-red);
    font-size: 1.2rem;
}
.about-image-card {
    height: 400px;
    background: var(--brand-dark); /* Placeholder until image is added */
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-soft);
}
.glass-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    max-width: 250px;
    border: var(--glass-border);
}

/* ==================================
   BANNERS PUBLICITARIOS
================================== */
.ad-banner-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.ad-banner {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
.ad-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--text-secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 10px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom-right-radius: 10px;
    z-index: 2;
}
.ad-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ad-text {
    padding: 2rem;
    flex: 1;
}
.ad-text h4 {
    color: var(--brand-orange);
    margin-bottom: 0.5rem;
}
.ad-img {
    width: 250px;
    height: 150px;
    background-size: cover;
    background-position: center;
}

/* ==================================
   PROGRAMACIÓN
================================== */
.program-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.program-card {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}
.program-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}
.program-time {
    background: var(--brand-red);
    color: white;
    padding: 2rem 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    font-size: 1.1rem;
}
.program-info {
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
}
.program-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================================
   WIDGET DEL CLIMA
================================== */
.weather-widget-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
.weather-card {
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease;
}
.weather-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.weather-header {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
}
.weather-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.weather-body {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

/* ==================================
   CONTACTO
================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.contact-form-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
}
.contact-form-card h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--brand-dark);
}
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-group input, 
.form-group textarea {
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}
.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}
.btn-submit {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.25);
}
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.contact-status {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}
.contact-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.contact-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.contact-status.hidden {
    display: none;
}

.contact-info-card {
    background: var(--brand-dark);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.info-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.info-block i {
    font-size: 1.8rem;
    color: var(--brand-orange);
}
.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.info-text p {
    color: #cccccc;
    font-size: 0.95rem;
}
.social-links-container h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
}
.social-links a.facebook {
    background: #3b5998;
}
.social-links a.facebook:hover {
    background: #4d70ba;
    transform: translateY(-2px);
}
.social-links a.whatsapp {
    background: #25d366;
}
.social-links a.whatsapp:hover {
    background: #34e073;
    transform: translateY(-2px);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
}
.map-container iframe {
    display: block;
}

/* ==================================
   FOOTER
================================== */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 3px solid var(--brand-red);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
}
.footer-logo h2 span {
    color: var(--brand-red);
}
.footer-logo p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.footer-copyright {
    text-align: right;
}
.footer-copyright p {
    font-size: 0.95rem;
    color: #bbb;
}
.footer-copyright small {
    color: #666;
    font-size: 0.8rem;
}

/* ==================================
   MEDIA QUERIES (Mobile First)
================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .floating-player {
        width: 95%;
        border-radius: 20px;
        bottom: 10px;
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .player-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .volume-control {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-card {
        height: 300px;
        margin-top: 2rem;
    }

    .glass-card {
        bottom: -10px;
        right: -10px;
        padding: 1rem;
        max-width: 200px;
    }

    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-text {
        padding: 1.5rem;
    }

    .ad-img {
        width: 100%;
        height: 200px;
    }

    .program-card {
        flex-direction: column;
    }

    .program-time {
        min-width: 100%;
        padding: 1rem;
    }

    .program-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    /* Adaptaciones para Contacto y Footer en Móvil */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info-card {
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

/* ==================================
   ANIMACIONES DE ENTRADA (Scroll Animations)
================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}


