/* ============================================================
   RADIO EMOCIÓN - ESTILOS PRINCIPALES v2.0
   ============================================================ */

/* === VARIABLES CSS === */
:root {
    --primary: #8B5CF6;
    --accent: #EC4899;
    --primary-rgb: 139, 92, 246;
    --accent-rgb: 236, 72, 153;

    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a2e;
    --bg-header: rgba(10, 10, 15, 0.95);
    --text: #f0f0f5;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 4px 30px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.15);
    --overlay: rgba(0,0,0,0.6);
    --player-bg: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    --nav-height: 64px;
}

[data-theme="light"] {
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --bg-elevated: #f1f3f5;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-dim: #9ca3af;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px rgba(var(--primary-rgb), 0.1);
    --overlay: rgba(0,0,0,0.4);
    --player-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes equalizer { 0%, 100% { height: 4px; } 50% { height: 20px; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* === HEADER TOP - REDES SOCIALES === */
.header-top {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    padding: 8px 0;
    position: relative;
    z-index: 1002;
}
.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px) scale(1.1);
    color: #fff;
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* === NAVBAR STICKY === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    height: var(--nav-height);
}
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: rgba(10, 10, 15, 0.98);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.navbar-brand:hover { opacity: 0.85; }
.navbar-logo {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
.navbar-menu a {
    display: block;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}
.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--text);
    background: rgba(var(--primary-rgb), 0.1);
}
.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* === SLIDER === */
.slider-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.slider-container { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide.active { opacity: 1; }
/* El link envuelve la imagen y el texto sin alterar el layout del slide */
.slide-link { display: contents; cursor: pointer; }
.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
}
.slide-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.slide-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.dot.active {
    background: var(--primary);
    border-color: #fff;
    transform: scale(1.2);
}
.dot:hover { background: var(--accent); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* === PLAYER SECTION === */
.player-section {
    padding: 60px 20px;
    background: var(--bg);
    position: relative;
}
.player-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Player Switcher */
.player-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.player-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.player-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}
.player-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}
.player-btn svg { width: 20px; height: 20px; }

/* Player Container */
.player-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--player-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.player-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.03) 0%, transparent 70%);
    pointer-events: none;
}
.player-wrapper {
    display: none;
    position: relative;
    z-index: 1;
}
.player-wrapper.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Player embebido (audio y video son ambos players "listos" en iframe) */
.stream-embed iframe {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* === BANNER ADS === */
.banner-section {
    padding: 30px 20px;
    background: var(--bg);
    position: relative;
}
.banner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
}
.banner-slide a {
    display: block;
    width: 100%;
}
.banner-slide img {
    width: 100%;
    aspect-ratio: 1920 / 450;
    object-fit: cover;
    border-radius: 16px;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.banner-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.banner-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* === NOTICIAS === */
.news-section {
    padding: 60px 20px;
    background: var(--bg-elevated);
    position: relative;
}
.news-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.news-container {
    max-width: 1200px;
    margin: 0 auto;
}
.news-scroll-wrapper {
    position: relative;
    overflow: hidden;
}
.news-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.news-scroll::-webkit-scrollbar { height: 6px; }
.news-scroll::-webkit-scrollbar-track { background: transparent; }
.news-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.news-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(var(--primary-rgb), 0.3);
}
.news-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.news-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-date {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.news-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.news-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}
.news-card-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Scroll arrows for news */
.news-scroll-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}
.news-scroll-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}
.news-scroll-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* === PROGRAMAS DESTACADOS === */
.programs-section {
    padding: 60px 20px;
    background: var(--bg);
    max-width: 1200px;
    margin: 0 auto;
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1000px) {
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .programs-grid { grid-template-columns: 1fr; }
}
.program-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.program-card-img {
    position: relative;
    height: 130px;
    overflow: hidden;
}
.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.program-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}
.program-card-title-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 10px;
    z-index: 1;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.program-card-body { padding: 18px 20px 22px; }
.program-card-body h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.program-card-time {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.program-card-days {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.program-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 14px;
}
.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.program-card-link:hover { gap: 8px; }
.program-card-link-disabled {
    color: var(--text-dim);
    cursor: default;
}

/* === PROGRAMACIÓN COMPACTA === */
.schedule-section {
    padding: 60px 20px;
    background: var(--bg);
    position: relative;
}
.schedule-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.schedule-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Day Tabs */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.day-tab {
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.day-tab:hover {
    border-color: var(--primary);
    color: var(--text);
}
.day-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Schedule Grid Compact */
.schedule-grid {
    display: grid;
    gap: 10px;
}
.schedule-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease forwards;
}
.schedule-item:hover {
    transform: translateX(4px);
    border-color: rgba(var(--primary-rgb), 0.3);
}
.schedule-time {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 110px;
}
.schedule-time .time-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.schedule-time span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.schedule-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text);
}
.schedule-info .host {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}
.schedule-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.schedule-status {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.schedule-status.live {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    animation: pulse 2s ease infinite;
}
.schedule-status.upcoming {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}
.schedule-status.past {
    background: var(--bg-elevated);
    color: var(--text-dim);
}

/* === CONTACTO === */
.contact-section {
    padding: 80px 20px;
    background: var(--bg-elevated);
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateX(5px);
    border-color: rgba(var(--primary-rgb), 0.3);
}
.contact-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
}
.contact-card p, .contact-card a {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.contact-card a:hover { color: var(--primary); }

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input.field-error,
.form-group textarea.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.field-error-text {
    display: none;
    color: #f87171;
    font-size: 0.82rem;
    margin-top: 6px;
}
.form-group.has-error .field-error-text { display: block; }
.form-message {
    display: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}
.form-message.show { display: block; }
.form-message.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}
.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* === FOOTER === */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 50px 20px 30px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
}
.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-socials a svg { width: 18px; height: 18px; fill: currentColor; }

/* === THEME TOGGLE === */
.theme-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1) rotate(15deg);
}

/* === PARTICLES === */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .contact-container { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .slider-section { height: 400px; }
    .stream-embed iframe { height: 300px; }
    /* El player de audio es una interfaz propia (logo, título, botón play) que
       necesita más alto que el video para no cortarse */
    #audio-wrapper .stream-embed iframe { height: 450px; }
    .navbar-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg-header);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    .navbar-menu.open { transform: translateY(0); }
    .menu-toggle { display: block; }
    .news-card { flex: 0 0 260px; }
}

@media (max-width: 600px) {
    .schedule-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    .schedule-time { justify-content: center; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .slider-section { height: 300px; }
    .stream-embed iframe { height: 220px; }
    #audio-wrapper .stream-embed iframe { height: 400px; }
    .player-container { padding: 20px; }
    .news-card { flex: 0 0 240px; }
    .theme-toggle {
        right: 14px;
        width: 30px; height: 30px;
    }
    .navbar-brand { font-size: 1.1rem; }
}

/* === MODAL / LIGHTBOX DE NOTICIAS === */
.news-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.news-modal.open { display: block; }
.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    animation: fadeInModal 0.25s ease;
}
.news-modal-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    width: 92%;
    max-height: 85vh;
    margin: 6vh auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: newsModalIn 0.3s ease;
}
.news-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease;
}
.news-modal-close:hover { background: rgba(0,0,0,0.75); }
.news-modal-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}
.news-modal-body { padding: 28px 32px 36px; }
.news-modal-date {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.news-modal-title {
    color: var(--text);
    font-size: 1.6rem;
    margin-bottom: 18px;
    line-height: 1.3;
}
.news-modal-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
/* Contenido enriquecido del editor visual (imágenes, listas, video embebido) */
.news-modal-text p { margin-bottom: 14px; }
.news-modal-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}
.news-modal-text ul, .news-modal-text ol {
    margin: 0 0 14px 22px;
}
.news-modal-text blockquote {
    border-left: 3px solid var(--primary);
    padding: 4px 0 4px 16px;
    margin: 14px 0;
    color: var(--text);
    font-style: italic;
}
.news-modal-text h2, .news-modal-text h3, .news-modal-text h4 {
    color: var(--text);
    margin: 20px 0 10px;
}
.news-modal-text a { color: var(--primary); }
.news-embed-youtube {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
}
.news-embed-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes newsModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
    .news-modal-content { margin-top: 4vh; max-height: 90vh; }
    .news-modal-body { padding: 20px 20px 28px; }
    .news-modal-title { font-size: 1.3rem; }
}

/* === COMPARTIR NOTICIA (dentro del modal) === */
.news-modal-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.news-modal-share-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 2px;
}
.news-share-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.news-share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.news-share-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* === BOTÓN FLOTANTE DE WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.whatsapp-float-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    position: relative;
    flex-shrink: 0;
    animation: whatsappPulse 2.5s ease infinite;
}
.whatsapp-float-btn svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float-btn:hover { transform: scale(1.08); }
@keyframes whatsappPulse {
    0%   { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-bubble {
    position: relative;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 34px 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    margin-bottom: 8px;
    animation: bubbleIn 0.4s ease 1.2s both, bubbleFloat 3s ease 1.6s infinite;
}
.whatsapp-bubble.hidden { display: none; }
.whatsapp-bubble-close {
    position: absolute;
    top: 6px; right: 8px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}
.whatsapp-bubble-close:hover { color: var(--text); }
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@media (max-width: 600px) {
    .whatsapp-float { bottom: 20px; right: 16px; }
    .whatsapp-float-btn { width: 50px; height: 50px; }
    .whatsapp-float-btn svg { width: 26px; height: 26px; }
    .whatsapp-bubble { max-width: 170px; font-size: 0.8rem; }
}
