/* ============================================
   ORDEN DE PRESENTACIÓN CANDELARIA 2026
   Mobile-First Approach
   ============================================ */

/* Prevent horizontal scroll globally */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Prevent all elements from causing overflow */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================
   BASE STYLES - MOBILE (320px+)
   ============================================ */

/* Video Background Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-height: 100%;
    pointer-events: none;
    border: none;
}

/* Mobile: prevent iframe overflow */
@media (max-width: 767px) {
    .video-background iframe {
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
    }
}

/* Fallback background for loading/errors */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.8) 0%,
        rgba(22, 33, 62, 0.7) 50%,
        rgba(26, 26, 46, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 90%;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

/* Mobile: add space when live-band is active */
@media (max-width: 768px) {
    body.live-band-active .hero-content {
        padding-top: 40px;
    }
}

@media (max-width: 400px) {
    .hero-content {
        max-width: 95%;
        padding: 0 0.75rem;
    }

    body.live-band-active .hero-content {
        padding-top: 150px;
    }
}

.hero-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-size: clamp(1.75rem, 6vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 400px) {
    .hero-cta {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-controls:hover {
    opacity: 1;
}

.video-control-btn {
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-control-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.05);
}

.video-control-btn:active {
    transform: scale(0.95);
}

/* Loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #ffffff;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-loading.show {
    opacity: 1;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Volume indicator */
.volume-indicator {
    position: absolute;
    bottom: 75px;
    right: 15px;
    z-index: 4;
    background: rgba(26, 26, 46, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.volume-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Live Stream Section */
.live-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem 0;
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.live-video-col {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}

.live-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile: reduce padding on very small screens */
@media (max-width: 400px) {
    .live-container {
        padding: 0.875rem;
        border-radius: 8px;
    }
}

.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.live-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.live-icon {
    width: 24px;
    height: 24px;
}

.live-icon svg {
    width: 100%;
    height: 100%;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-secondary, #C41E3A);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-red, 0 4px 12px rgba(196, 30, 58, 0.3));
}

.live-indicator.offline {
    background: #6b7280;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.live-indicator.offline .live-dot {
    animation: none;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Countdown styles */
.countdown-container {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    margin-top: 1rem;
}

.countdown-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
    justify-items: center;
}

.countdown-item {
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    width: 100%;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    display: block;
}

/* Mobile: reduce size and spacing */
@media (max-width: 768px) {
    .countdown-grid {
        gap: 0.25rem;
        max-width: 350px;
    }

    .countdown-item {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 400px) {
    .countdown-grid {
        gap: 0;
        max-width: 280px;
    }

    .countdown-item {
        padding: 0.5rem 0.1rem;
    }

    .countdown-number {
        font-size: 1.25rem;
    }

    .countdown-label {
        font-size: 0.5rem;
    }
}

/* Extra small screens: even tighter */
@media (max-width: 375px) {
    .countdown-grid {
        gap: 0;
        max-width: 260px;
    }

    .countdown-item {
        padding: 0.5rem 0.05rem;
    }
}

.countdown-event {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-event strong {
    color: #ffd700;
}

/* Sidebar */
.live-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border-left: 4px solid transparent;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

@media (max-width: 400px) {
    .sidebar-card {
        padding: 1rem;
    }
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-card.stats-card {
    border-left-color: #2563eb;
}

.sidebar-card.stats-card:hover {
    background: #2563eb;
}

.sidebar-card.stats-card:hover .sidebar-card-title,
.sidebar-card.stats-card:hover .sidebar-card-desc,
.sidebar-card.stats-card:hover .sidebar-card-arrow {
    color: #ffffff;
}

.sidebar-card.stats-card:hover .sidebar-card-icon svg {
    stroke: #ffffff;
}

.sidebar-card.program-card {
    border-left-color: #10b981;
}

.sidebar-card.program-card:hover {
    background: #10b981;
}

.sidebar-card.program-card:hover .sidebar-card-title,
.sidebar-card.program-card:hover .sidebar-card-desc,
.sidebar-card.program-card:hover .sidebar-card-arrow {
    color: #ffffff;
}

.sidebar-card.program-card:hover .sidebar-card-icon svg {
    stroke: #ffffff;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-card-icon {
    width: 24px;
    height: 24px;
}

.sidebar-card-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.sidebar-card-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.sidebar-card-arrow {
    margin-left: auto;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.sidebar-card:hover .sidebar-card-arrow {
    transform: translateX(5px);
}

/* Banner publicitario */
.sidebar-banner {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Statistics Section */
.section {
    padding: 2rem 0;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--background-secondary, #F7FAFC) 100%);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-light, #E2E8F0);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-primary, #D4AF37);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold, 0 8px 24px rgba(212, 175, 55, 0.2));
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent, linear-gradient(135deg, #D4AF37 0%, #FFD700 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #4a5568) !important;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    color: #1a1a2e !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #2563eb !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #6b7280 !important;
    font-size: 0.9rem;
}

/* Banner horizontal */
.full-width-banner {
    display: block;
    width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.full-width-banner:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.full-width-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Container */
.section .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Program Section */
.program-section {
    margin: 2rem 0;
}

/* Search and Filter functionality */
.filters-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.search-container {
    max-width: 100%;
    margin: 0 0 1rem 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1a2e;
}

.search-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    width: 18px;
    height: 18px;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.85rem;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.filter-btn:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.filter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

.results-count {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.85rem;
}

.results-count strong {
    color: #2563eb;
}

/* Day Sections */
.day-section {
    margin-bottom: 2rem;
}

.day-section.hidden {
    display: none;
}

.day-title {
    text-align: center;
    font-size: 1.25rem;
    color: #ffffff !important;
    margin: 2rem 0 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.day-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.day-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Program Lists */
.program-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.program-list h3 {
    color: #1a1a2e !important;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ffd700;
}

.program-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-list li {
    display: block;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    color: #1a1a2e !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.program-list li:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

/* Program Items */
.program-item {
    display: block;
    padding: 0.875rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
}

.program-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}

.program-item .orden {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.program-item .nombre {
    font-weight: 500;
    color: #1a1a2e;
    font-size: 0.875rem;
}

.program-item .meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Go to top button */
.go-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.go-to-top-button.show-top-button {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top-button:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.go-to-top-button svg {
    width: 20px;
    height: 20px;
}

/* Scroll anchor offset */
#estadisticas,
#programa,
#envivo {
    scroll-margin-top: 70px;
}

/* ============================================
   TABLET - 576px and up
   ============================================ */
@media (min-width: 576px) {
    .hero-content {
        max-width: 540px;
        padding: 0 1.5rem;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .countdown-grid {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.75rem 0.5rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.625rem;
    }

    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-btn {
        width: auto;
        padding: 0.625rem 1.25rem;
        border-radius: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .live-container {
        padding: 1.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section .container {
        padding: 0 1.5rem;
    }
}

/* ============================================
   TABLET LANDSCAPE - 768px and up
   ============================================ */
@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero-content {
        max-width: 720px;
    }

    .video-controls {
        flex-direction: row;
        gap: 10px;
        bottom: 20px;
        right: 20px;
    }

    .video-control-btn {
        width: 48px;
        height: 48px;
    }

    .volume-indicator {
        bottom: 80px;
        right: 20px;
        font-size: 0.875rem;
        padding: 10px 15px;
    }

    .live-section {
        padding: 3rem 0;
    }

    .live-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .live-container {
        padding: 2rem;
    }

    .live-title {
        font-size: 1.5rem;
    }

    .live-icon {
        width: 28px;
        height: 28px;
    }

    .countdown-container {
        padding: 1.5rem;
    }

    .countdown-grid {
        gap: 1rem;
    }

    .countdown-item {
        padding: 1rem 0.75rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .sidebar-card-title {
        font-size: 1.1rem;
    }

    .sidebar-card-desc {
        font-size: 0.85rem;
    }

    .filters-container {
        padding: 1.5rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 1rem 1rem 1rem 3rem;
    }

    .program-list {
        padding: 2rem;
    }

    .program-list li {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }

    .day-title {
        font-size: 1.5rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .go-to-top-button {
        bottom: 30px;
        right: 30px;
        width: 52px;
        height: 52px;
    }

    .go-to-top-button svg {
        width: 24px;
        height: 24px;
    }

    #estadisticas,
    #programa,
    #envivo {
        scroll-margin-top: 80px;
    }
}

/* ============================================
   DESKTOP - 992px and up
   ============================================ */
@media (min-width: 992px) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        max-width: 800px;
        padding: 0 2rem;
    }

    .section .container {
        max-width: 960px;
    }

    .program-section .container {
        max-width: 1200px;
    }

    .day-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   LARGE DESKTOP - 1200px and up
   ============================================ */
@media (min-width: 1200px) {
    .section .container {
        max-width: 1140px;
    }

    .program-section .container {
        max-width: 1320px;
    }

    .day-title {
        font-size: 1.8rem;
    }
}

/* ============================================
   EXTRA LARGE DESKTOP - 1400px and up
   ============================================ */
@media (min-width: 1400px) {
    .section .container {
        max-width: 1200px;
    }

    .program-section .container {
        max-width: 1400px;
    }
}

/* ============================================
   ACCESSIBILITY & PREFERENCES
   ============================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .video-control-btn,
    .program-list li,
    .program-item,
    .sidebar-card,
    .filter-btn,
    .go-to-top-button {
        transition: none;
    }

    .spinner {
        animation: none;
    }

    .live-dot {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .video-control-btn {
        border-width: 3px;
        background: #000000;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.85);
    }
}

/* Print styles */
@media print {
    .search-container,
    .hero-cta,
    .video-background,
    .video-controls,
    .volume-indicator,
    .go-to-top-button,
    .filters-container {
        display: none !important;
    }

    .hero {
        background: #1a1a2e !important;
        min-height: 30vh !important;
    }

    .program-list {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .program-list li {
        color: #000 !important;
        background: #fff !important;
        border-left-color: #ccc !important;
    }
}
