.hor-container,
    .hor-container * {
        box-sizing: border-box;
    }

    .hor-container {
        max-width: 1600px;
        width: 95%;
        margin: 25px auto 10px;
        padding: 0 15px;
        font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Page Title */
    .hor-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        margin: 0 0 20px 0;
        width: 100%;
    }
    .hor-page-title {
        font-family: 'Mulish', sans-serif;
        font-size: 24px;
        font-weight: 700;
        color: #212529;
        margin: 0;
        border-left: 4px solid #f39c12;
        padding-left: 12px;
        line-height: 1.25;
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 8px;
    }
    body.dark-mode .hor-page-title {
        color: #ffffff;
    }
    .hor-page-title .hor-season-months {
        font-size: 18px;
        font-weight: 600;
        color: #6c757d;
    }
    body.dark-mode .hor-page-title .hor-season-months {
        color: #b0b5c9;
    }

    /* Main Box */
    .hor-box {
        background: #ffffff;
        border-radius: 8px;
        padding: 26px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border: 1px solid #e2e8f0;
        width: 100%;
    }
    body.dark-mode .hor-box {
        background: #1f212b;
        border-color: #3b4059;
        box-shadow: none;
    }

    /* Tabs + Filter Row */
    .hor-tabs-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #edf0f5;
        padding-bottom: 16px;
        margin-bottom: 24px;
        flex-wrap: wrap;
        gap: 14px;
        width: 100%;
    }
    body.dark-mode .hor-tabs-wrap {
        border-bottom-color: #303240;
    }

    .hor-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }
    .hor-tab {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        height: 38px;
        padding: 0 15px;
        border-radius: 5px;
        color: #495057;
        font-family: 'Mulish', sans-serif;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }
    .hor-tab:hover {
        background: #e9ecef;
        color: #212529;
    }
    .hor-tab.active {
        background: #1fb0f4;
        color: #ffffff;
        border-color: #1fb0f4;
        box-shadow: 0 2px 6px rgba(31, 176, 244, 0.25);
    }
    body.dark-mode .hor-tab {
        background: #303240;
        border-color: #474c67;
        color: #c2c6d8;
    }
    body.dark-mode .hor-tab:hover {
        background: #3b4059;
        color: #ffffff;
    }
    body.dark-mode .hor-tab.active {
        background: #1fb0f4;
        color: #ffffff;
        border-color: #1fb0f4;
    }

    .hor-tab span.hoy-badge {
        font-size: 9.5px;
        font-weight: 800;
        opacity: 0.95;
        border-left: 1px solid rgba(255, 255, 255, 0.4);
        padding-left: 6px;
        letter-spacing: 0.3px;
    }
    .hor-tab:not(.active) span.hoy-badge {
        color: #f39c12;
        border-left-color: rgba(0, 0, 0, 0.15);
    }
    body.dark-mode .hor-tab:not(.active) span.hoy-badge {
        border-left-color: rgba(255, 255, 255, 0.2);
    }

    .hor-filter {
        position: relative;
        width: 240px;
        max-width: 100%;
        flex-shrink: 0;
    }
    .hor-filter input {
        width: 100%;
        height: 38px;
        padding: 0 34px 0 14px;
        border: 1px solid #ced4da;
        border-radius: 5px;
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: #333333;
        background: #ffffff;
        outline: none;
        transition: border-color 0.2s;
    }
    .hor-filter input:focus {
        border-color: #1fb0f4;
    }
    body.dark-mode .hor-filter input {
        background: #303240;
        border-color: #474c67;
        color: #ffffff;
    }
    .hor-filter .hor-filter-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #888888;
        pointer-events: none;
        display: flex;
        align-items: center;
    }

    /* Day Section */
    .day-section {
        display: none;
    }
    .day-section.active {
        display: block;
    }
    .day-title {
        font-size: 18px;
        color: #212529;
        font-weight: 700;
        margin: 0 0 20px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    body.dark-mode .day-title {
        color: #ffffff;
    }
    .day-title .day-count-pill {
        font-size: 12px;
        font-weight: 700;
        color: #1fb0f4;
        background: rgba(31, 176, 244, 0.12);
        padding: 2px 9px;
        border-radius: 12px;
    }

    /* Grid: Resolución 1 (Ultra-Wide >= 1634px) & Full HD (>= 1460px) => 6 columnas */
    .hor-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 20px;
        width: 100%;
    }
    .hor-card-wrap {
        display: flex;
        flex-direction: column;
        min-width: 0;
        width: 100%;
    }
    .hor-card {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        background: var(--ba-surface-2, #e2e8f0);
        display: block;
        width: 100%;
        text-decoration: none;
        aspect-ratio: 2 / 3;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        transform: translateZ(0);
    }
    .hor-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    }
    .hor-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }
    .hor-card:hover img {
        transform: scale(1.04);
    }

    .hor-card-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 2;
        background: #28a745;
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 3px 8px;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        line-height: 1.2;
    }

    .hor-card-title-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 36px 10px 10px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
        z-index: 2;
    }
    .hor-card-title-overlay h3 {
        margin: 0;
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

    .hor-meta {
        text-align: center;
        margin-top: 8px;
        padding: 0 4px;
    }
    .hor-meta-ep {
        font-size: 12.5px;
        color: #212529;
        margin-bottom: 2px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.dark-mode .hor-meta-ep {
        color: #e2e6f0;
    }
    .hor-meta-time {
        font-size: 11px;
        color: #6c757d;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.dark-mode .hor-meta-time {
        color: #9aa0b8;
    }

    .hor-empty-filter {
        display: none;
        grid-column: 1 / -1;
        text-align: center;
        color: #6c757d;
        padding: 30px 15px;
        font-size: 15px;
    }
    body.dark-mode .hor-empty-filter {
        color: #b0b5c9;
    }

    /* ==========================================================================
       4 RESOLUCIONES DEL PROYECTO - BREAKPOINTS ESTRICTOS
       ========================================================================== */

    /* 1. Resolución Ultra-Wide / 2K (>= 1634px) => 6 columnas */
    @media (min-width: 1634px) {
        .hor-grid {
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: 22px;
        }
    }

    /* 2. Resolución Laptop / Escritorio Estándar (1200px - 1459px) => 4 columnas */
    @media (min-width: 1200px) and (max-width: 1459px) {
        .hor-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 18px;
        }
        .hor-page-title {
            font-size: 22px;
        }
        .hor-page-title .hor-season-months {
            font-size: 16px;
        }
    }

    /* 3. Resolución Tablet (768px - 1199px) => 4 columnas */
    @media (min-width: 768px) and (max-width: 1199px) {
        .hor-container {
            width: 96%;
            margin: 20px auto 10px;
            padding: 0 12px;
        }
        .hor-page-title {
            font-size: 20px;
        }
        .hor-page-title .hor-season-months {
            font-size: 15px;
        }
        .hor-box {
            padding: 20px;
        }
        .hor-tabs-wrap {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }
        .hor-tabs {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 6px;
            width: 100%;
        }
        .hor-tab {
            flex-direction: column;
            gap: 1px;
            padding: 2px 4px;
            font-size: 12px;
            height: 40px;
            line-height: 1.1;
        }
        .hor-tab span.hoy-badge {
            border-left: none;
            padding-left: 0;
            font-size: 8.5px;
            line-height: 1;
        }
        .hor-filter {
            width: 100%;
        }
        .hor-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }
        .hor-card-title-overlay h3 {
            font-size: 12px;
        }
    }

    /* 4. Resolución Móvil (<= 767px) => 2 columnas */
    @media (max-width: 767px) {
        .hor-container {
            width: 100%;
            margin: 15px auto 10px;
            padding: 0 12px;
        }
        .hor-header {
            margin-bottom: 14px;
        }
        .hor-page-title {
            font-size: 17px;
            padding-left: 10px;
            gap: 4px;
        }
        .hor-page-title .hor-season-months {
            font-size: 13.5px;
        }
        .hor-box {
            padding: 14px;
        }
        .hor-tabs-wrap {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
            padding-bottom: 14px;
            margin-bottom: 18px;
        }
        .hor-tabs {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
            width: 100%;
        }
        .hor-tab {
            flex-direction: column;
            height: 40px;
            padding: 2px 4px;
            font-size: 11.5px;
            gap: 1px;
            line-height: 1.1;
        }
        .hor-tab span.hoy-badge {
            border-left: none;
            padding-left: 0;
            font-size: 8px;
            line-height: 1;
        }
        .hor-filter {
            width: 100%;
        }
        .hor-filter input {
            height: 38px;
            font-size: 13px;
        }
        .day-title {
            font-size: 16px;
            margin-bottom: 14px;
        }
        .hor-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        .hor-card-badge {
            font-size: 9px;
            padding: 2px 6px;
        }
        .hor-card-title-overlay {
            padding: 28px 8px 8px;
        }
        .hor-card-title-overlay h3 {
            font-size: 12px;
        }
        .hor-meta-ep {
            font-size: 11.5px;
        }
        .hor-meta-time {
            font-size: 10px;
        }
    }
