/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc2626; /* Rojo del logo */
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --secondary-color: #22c55e; /* Verde del logo */
    --accent-color: #ef4444;
    --success-color: #22c55e; /* Verde del logo */
    --warning-color: #f59e0b;
    --info-color: #3b82f6; /* Azul del logo */
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-decoration: none !important;
    color: inherit !important;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(229, 9, 20, 0.05), 
        rgba(255, 255, 255, 0.1)
    );
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), #ff1744);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    transform: translateY(-2px);
}

/* Efectos para iconos del menú */
.nav-link i {
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Animaciones específicas por icono */
.nav-link:hover .fa-broadcast-tower {
    animation: pulse 1s infinite;
}

.nav-link:hover .fa-calendar-alt {
    transform: scale(1.2) rotateY(180deg);
}

.nav-link:hover .fa-newspaper {
    animation: shake 0.5s ease-in-out;
}

.nav-link:hover .fa-tv {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.nav-link:hover .fa-envelope {
    animation: bounce 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) scale(1.2); }
    25% { transform: translateX(-2px) scale(1.2); }
    75% { transform: translateX(2px) scale(1.2); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1.2) translateY(0); }
    50% { transform: scale(1.2) translateY(-3px); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-600);
    transition: var(--transition);
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
    padding-top: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Live Section */
.live-section {
    margin-bottom: 3rem;
}

/* Live Section - Eliminado grid lateral */
.video-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 0 auto 2rem auto; /* Centrar el contenedor */
    max-width: 900px; /* Ancho máximo del card */
    width: calc(90% - 2rem); /* Descontar padding del container */
    position: relative;
}

.video-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--info-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-header .section-title {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
}

.live-indicator {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-text {
    background: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.video-wrapper {
    position: relative;
    width: 100% !important; /* Llenar todo el card contenedor */
    max-width: none !important; /* Sin límite máximo dentro del card */
    padding-top: 56.25%; /* Aspect ratio 16:9 */
    background: var(--gray-900);
    margin: 0 !important; /* Sin margen para llenar el card */
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); /* Solo esquinas inferiores redondeadas */
    overflow: hidden;
}

.video-wrapper .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-js {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Botón grande de play centrado */
.vjs-big-play-centered .vjs-big-play-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    font-size: 3rem !important;
    background-color: rgba(229, 9, 20, 0.9) !important;
    border: 4px solid rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    animation: playButtonPulse 2s infinite ease-in-out !important;
}

@keyframes playButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(229, 9, 20, 0.4), 0 0 0 10px rgba(229, 9, 20, 0.1);
    }
}

.vjs-big-play-centered .vjs-big-play-button:hover {
    background-color: rgba(229, 9, 20, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4) !important;
    animation: none !important; /* Pausar animación en hover */
}

.vjs-big-play-centered .vjs-big-play-button .vjs-icon-placeholder:before {
    position: absolute !important;
    top: 50% !important;
    left: 52% !important; /* Ligeramente a la derecha para centrado óptico */
    transform: translate(-50%, -50%) !important;
    font-size: 2.5rem !important;
    color: white !important;
    margin: 0 !important;
}

/* Video fallback message styling */
.vjs-no-js {
    background: var(--gray-900);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.vjs-no-js a {
    color: var(--primary-light);
    text-decoration: underline;
    font-weight: 500;
}

/* Estados del reproductor - Botón de play se oculta cuando está reproduciendo */
.vjs-playing .vjs-big-play-button,
.vjs-has-started .vjs-big-play-button {
    display: none !important;
}

/* Mostrar botón cuando está pausado */
.vjs-paused .vjs-big-play-button {
    display: flex !important;
}

/* Responsive para botón de play */
@media (max-width: 768px) {
    .vjs-big-play-centered .vjs-big-play-button {
        width: 70px !important;
        height: 70px !important;
        font-size: 2.5rem !important;
        border-width: 3px !important;
    }
    
    .vjs-big-play-centered .vjs-big-play-button .vjs-icon-placeholder:before {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .vjs-big-play-centered .vjs-big-play-button {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
        border-width: 2px !important;
    }
    
    .vjs-big-play-centered .vjs-big-play-button .vjs-icon-placeholder:before {
        font-size: 1.75rem !important;
    }
}

/* Responsive para el ancho del reproductor */
@media (max-width: 1200px) {
    .video-container,
    .schedule-below-video {
        width: calc(85% - 2rem);
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    .video-container,
    .schedule-below-video {
        width: calc(90% - 2rem);
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .video-container,
    .schedule-below-video {
        width: calc(95% - 2rem);
        max-width: 100%;
        margin: 0 auto 2rem auto;
    }
}

@media (max-width: 480px) {
    .video-container,
    .schedule-below-video {
        width: calc(98% - 2rem);
        margin: 0 auto 1.5rem auto;
    }
}

.vjs-no-js a:hover {
    color: var(--white);
}

/* Asegurar que el botón se posicione correctamente en todos los estados */
.video-js .vjs-big-play-button {
    border-radius: 50% !important;
    background-color: rgba(229, 9, 20, 0.9) !important;
    border: 4px solid rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
}

/* Configuración mejorada del reproductor */
.video-js {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.control-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.control-btn:hover {
    background: var(--primary-dark);
}

.quality-selector select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 0.875rem;
}

/* Schedule Sidebar */
/* Schedule Below Video - Nuevo diseño horizontal */
.schedule-below-video {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 0 auto 2rem auto; /* Centrar igual que video-container */
    max-width: 900px; /* Mismo ancho máximo que video-container */
    width: calc(90% - 2rem); /* Mismo ancho que video-container, descontando padding */
    position: relative;
}

.schedule-below-video .schedule-header {
    padding: 1.25rem;
    background: var(--gray-900);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-below-video .schedule-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.schedule-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.schedule-content-grid .current-program,
.schedule-content-grid .next-program,
.schedule-content-grid .schedule-list {
    padding: 1.5rem;
    border-right: 1px solid var(--gray-200);
}

.schedule-content-grid .schedule-list {
    border-right: none;
}

.schedule-content-grid .current-program {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
}

.schedule-content-grid .next-program {
    background: var(--gray-50);
}

.schedule-content-grid .program-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    display: inline-block;
}

.schedule-content-grid .program-status.next {
    background: var(--warning-color);
    color: var(--white);
}

.schedule-content-grid .program-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.schedule-content-grid .program-info p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0.25rem 0;
}

.schedule-content-grid .schedule-list {
    background: var(--white);
}

.schedule-content-grid .schedule-list h4 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 1rem;
}

.schedule-content-grid .schedule-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-content-grid .schedule-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.schedule-content-grid .schedule-list li:last-child {
    border-bottom: none;
}

/* Mantener estilos antiguos para compatibilidad pero ocultar */
.schedule-sidebar {
    display: none;
}

.schedule-list .time {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.schedule-list .title {
    font-weight: 600;
    color: var(--gray-900);
}

/* Programs Section */
.programs-section {
    padding: 4rem 0;
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.program-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.program-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.program-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* News Section */
.news-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.news-sources {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sources-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.source-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.source-tag.nacional {
    background: var(--primary-color);
    color: var(--white);
}

.source-tag.internacional {
    background: var(--info-color);
    color: var(--white);
}

#refreshNewsBtn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

#refreshNewsBtn:hover .fa-sync-alt {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.last-update {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.last-update i {
    font-size: 0.7rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* News Ticker Styles */
.news-ticker-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    height: 300px;
    border: 2px solid var(--primary-color);
    display: block !important; /* Forzar visibilidad siempre */
    visibility: visible !important;
}

.news-ticker {
    display: flex !important;
    flex-direction: column;
    animation: tickerScroll 80s linear infinite;
    position: absolute;
    width: 100%;
    padding: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-ticker:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

.ticker-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 80px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.ticker-item:hover {
    background-color: var(--primary-light);
    background-color: rgba(59, 130, 246, 0.1);
}

.ticker-item:last-child {
    border-bottom: none;
}

.ticker-date {
    font-size: 0.75rem;
    color: var(--white);
    min-width: 70px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    line-height: 1.2;
}

.ticker-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.ticker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ticker-item:hover .ticker-image img {
    transform: scale(1.05);
}

.ticker-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.ticker-content {
    flex: 1;
}

.ticker-title {
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.ticker-title:hover {
    color: var(--primary-color);
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* News View Toggle */
.news-view-toggle {
    text-align: center;
    margin-top: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 2.5rem;
}

.news-content {
    padding: 1.25rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-category {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    border-left: 3px solid var(--primary-color);
}

.news-source i {
    color: var(--primary-color);
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
}

.news-load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Schedule Section */
.schedule-section {
    padding: 4rem 0;
    background: var(--white);
}

.schedule-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.875rem;
    min-width: 80px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

/* Weekend styling */
.filter-btn[data-day="sábado"],
.filter-btn[data-day="domingo"] {
    border-color: var(--warning-color);
}

.filter-btn[data-day="sábado"]:hover,
.filter-btn[data-day="sábado"].active,
.filter-btn[data-day="domingo"]:hover,
.filter-btn[data-day="domingo"].active {
    border-color: var(--warning-color);
    background: var(--warning-color);
    color: var(--white);
}

/* Schedule Ticker Container (similar a news ticker) */
.schedule-ticker-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
    max-height: 500px;
    position: relative;
}

.schedule-ticker {
    display: flex;
    flex-direction: column;
    animation: scheduleTickerScroll 80s linear infinite;
    animation-play-state: running;
}

.schedule-ticker:hover {
    animation-play-state: paused;
}

@keyframes scheduleTickerScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.schedule-ticker-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.schedule-ticker-item:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

.schedule-ticker-item:last-child {
    border-bottom: none;
}

.schedule-ticker-item.current {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
}

.schedule-ticker-item.current .schedule-ticker-time,
.schedule-ticker-item.current .schedule-ticker-program,
.schedule-ticker-item.current .schedule-ticker-duration {
    color: var(--white);
}

.schedule-ticker-time {
    font-size: 0.875rem;
    color: var(--white);
    min-width: 100px;
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    line-height: 1.2;
    flex-shrink: 0;
}

.schedule-ticker-item.current .schedule-ticker-time {
    background: var(--white);
    color: var(--success-color);
}

.schedule-ticker-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.schedule-ticker-item.current .schedule-ticker-icon {
    background: var(--white);
    color: var(--success-color);
}

.schedule-ticker-content {
    flex: 1;
    min-width: 0;
}

.schedule-ticker-program {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-ticker-duration {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.schedule-ticker-duration i {
    font-size: 0.75rem;
}

.schedule-ticker-item.current .schedule-ticker-duration {
    color: rgba(255, 255, 255, 0.9);
}

.schedule-table-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.schedule-table {
    width: 100%;
}

.schedule-row {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.schedule-row:hover {
    background: var(--gray-50);
}

.schedule-row.current {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
}

.schedule-time {
    font-weight: 600;
    font-size: 0.875rem;
}

.schedule-program {
    font-weight: 500;
}

.schedule-duration {
    text-align: right;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-300);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.app-link:hover {
    color: var(--white);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    font-size: 0.875rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.grupo-cam-logo {
    display: flex;
    align-items: center;
}

.grupo-cam-logo img {
    transition: transform 0.3s ease;
}

.grupo-cam-logo img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .grupo-cam-logo img {
        height: 40px !important;
    }
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Schedule Page Styles */
.schedule-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.schedule-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.current-program-card,
.next-program-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.current-program-card {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
}

.next-program-card {
    background: var(--gray-50);
}

.program-status-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.next-program-card .program-status-badge {
    background: var(--warning-color);
    color: var(--white);
}

.program-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.current-program-card .program-card-content h3 {
    color: var(--white);
}

.program-time {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.program-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.85;
}

.schedule-full {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.schedule-day-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-weight: 700;
}

/* Schedule Preview Section (for index page) */
.schedule-preview-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.section-header-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .schedule-content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .schedule-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-brand {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .nav-brand a {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .schedule-highlights {
        grid-template-columns: 1fr;
    }
    
    .schedule-content-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-content-grid .current-program,
    .schedule-content-grid .next-program,
    .schedule-content-grid .schedule-list {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .schedule-content-grid .schedule-list {
        border-bottom: none;
    }
    
    .video-wrapper {
        padding-top: 56.25%; /* Mantener aspecto 16:9 */
    }
    
    .news-ticker-container {
        height: 280px;
    }
    
    .ticker-item {
        padding: 0.875rem 1.25rem;
        min-height: 65px;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero {
        padding: 3rem 0 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schedule-filters {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .schedule-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .schedule-full {
        padding: 1.5rem;
    }
    
    .schedule-content-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-content-grid .current-program,
    .schedule-content-grid .next-program,
    .schedule-content-grid .schedule-list {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .schedule-content-grid .schedule-list {
        border-bottom: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-brand {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        flex-shrink: 0;
    }
    
    .nav-brand a {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    
    .logo {
        height: 40px !important;
        flex-shrink: 0;
    }
    
    .brand-text {
        line-height: 1 !important;
        margin: 0 !important;
        white-space: nowrap;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .video-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .live-status {
        justify-content: center;
    }
    
    .video-wrapper {
        padding-top: 56.25%; /* Mantener aspecto 16:9 */
    }
    
    .news-ticker-container {
        height: 250px;
    }
    
    .ticker-item {
        padding: 0.75rem 1rem;
        min-height: 60px;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .ticker-date {
        min-width: auto;
        align-self: flex-start;
    }
    
    .ticker-image,
    .ticker-icon {
        width: 50px;
        height: 50px;
    }
    
    .ticker-icon i {
        font-size: 1.25rem;
    }
    
    .ticker-title {
        font-size: 0.875rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .news-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .news-sources {
        order: -1;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .schedule-row {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .schedule-duration {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand {
        min-width: 0; /* Permite que el flex funcione correctamente */
    }
    
    .nav-brand a {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .logo {
        height: 35px;
        flex-shrink: 0;
    }
    
    .brand-text {
        font-size: 1.25rem;
        line-height: 1;
        margin: 0;
    }
    
    .video-wrapper {
        padding-top: 56.25%; /* Mantener aspecto 16:9 */
    }
    
    .news-ticker-container {
        height: 200px;
    }
    
    .ticker-item {
        padding: 0.5rem 0.75rem;
        min-height: 50px;
        gap: 0.375rem;
    }
    
    .ticker-date {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
        min-width: 50px;
    }
    
    .ticker-image,
    .ticker-icon {
        width: 40px;
        height: 40px;
    }
    
    .ticker-icon i {
        font-size: 1rem;
    }
    
    .ticker-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .news-view-toggle {
        margin-top: 1rem;
    }
    
    .video-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .control-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .program-card {
        padding: 1.5rem;
    }
    
    .program-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.contact-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray-600);
}

.contact-form {
    max-width: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.form-group label.focused {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-error::before {
    content: "⚠";
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Social Media Section */
.social-media-section {
    padding: 4rem 0;
    background: var(--white);
}

.social-description {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.social-card:hover::before {
    left: 100%;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.social-card.facebook {
    border-color: #1877f2;
}

.social-card.facebook:hover {
    border-color: #1877f2;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: var(--white);
}

.social-card.youtube {
    border-color: #ff0000;
}

.social-card.youtube:hover {
    border-color: #ff0000;
    background: linear-gradient(135deg, #ff0000, #ff5722);
    color: var(--white);
}

.social-card.twitter {
    border-color: #1da1f2;
}

.social-card.twitter:hover {
    border-color: #1da1f2;
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
    color: var(--white);
}

.social-card.instagram {
    border-color: #e4405f;
}

.social-card.instagram:hover {
    border-color: #e4405f;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: var(--white);
}

.social-card.tiktok {
    border-color: #000000;
}

.social-card.tiktok:hover {
    border-color: #000000;
    background: linear-gradient(135deg, #000000, #ff0050);
    color: var(--white);
}

.social-card.linkedin {
    border-color: #0077b5;
}

.social-card.linkedin:hover {
    border-color: #0077b5;
    background: linear-gradient(135deg, #0077b5, #42a5f5);
    color: var(--white);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.social-card.facebook .social-icon {
    background: #1877f2;
    color: var(--white);
}

.social-card.youtube .social-icon {
    background: #ff0000;
    color: var(--white);
}

.social-card.twitter .social-icon {
    background: #1da1f2;
    color: var(--white);
}

.social-card.instagram .social-icon {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: var(--white);
}

.social-card.tiktok .social-icon {
    background: #000000;
    color: var(--white);
}

.social-card.linkedin .social-icon {
    background: #0077b5;
    color: var(--white);
}

.social-content {
    flex: 1;
}

.social-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.social-card:hover .social-content p {
    color: rgba(255, 255, 255, 0.8);
}

.social-followers {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.social-card:hover .social-followers {
    color: var(--white);
}

.social-arrow {
    font-size: 1rem;
    opacity: 0.6;
    transition: var(--transition);
}

.social-card:hover .social-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray-600);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.map-placeholder p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Notification Styles */
.notification.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.notification.toast.success {
    border-left: 4px solid var(--success-color);
}

.notification.toast.error {
    border-left: 4px solid var(--accent-color);
}

.notification.toast.info {
    border-left: 4px solid var(--primary-color);
}

.close-notification {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.close-notification:hover {
    color: var(--gray-600);
}

/* Responsive Design for Contact Page */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .social-card {
        padding: 1.5rem;
    }
    
    .map-placeholder {
        padding: 3rem 1.5rem;
    }
    
    .map-placeholder i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 3rem 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .contact-info-section {
        padding: 3rem 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .social-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .notification.toast {
        left: 10px;
        right: 10px;
        min-width: auto;
    }
}

/* ==================== PROGRAMS PAGE STYLES ==================== */

.programs-page-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 50%);
}

.programs-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.programs-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.program-card-full {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.program-card-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.program-image-full {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.program-image-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
}

.program-image-full i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
    z-index: 1;
}

.program-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.program-badge.news {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.program-badge.politics {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.program-badge.variety {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
}

.program-badge.sports {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.program-badge.culture {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.program-badge.investigation {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
}

.program-content h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.program-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.program-schedule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    margin-top: auto;
}

.program-schedule i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.program-schedule span {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

/* Programs Page Responsive */
@media (max-width: 1200px) {
    .programs-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .programs-page-section {
        padding: 3rem 0;
    }

    .programs-filters {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .programs-grid-full {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-image-full {
        height: 160px;
    }

    .program-image-full i {
        font-size: 3rem;
    }

    .program-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .programs-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .program-content {
        padding: 1.25rem;
    }

    .program-schedule {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}