.calendar-info-row {
        margin-top: 15px;
        padding: 20px;
        background: #f8fafc;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        max-height: 380px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #006272 #f1f5f9;
        grid-column: 1 / -1;
    }

    .calendar-info-row::-webkit-scrollbar {
        width: 6px;
    }

    .calendar-info-row::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .calendar-info-row::-webkit-scrollbar-thumb {
        background: #006272;
        border-radius: 10px;
    }

    .calendar-info-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
        font-weight: 700;
        color: #313450;
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .calendar-info-title .controls-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    @media (max-width: 576px) {
        .calendar-info-title {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .calendar-info-title .controls-wrapper {
            width: 100%;
            justify-content: flex-start;
        }

        #groupFilter {
            flex: 1;
            min-width: 0; /* Permitir que el select se encoja */
        }
    }

    .calendar-info-title i {
        color: #006272;
        font-size: 1.2rem;
    }

    .calendar-shortcuts {
        display: flex;
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: thin;
        scrollbar-color: #006272 #f1f5f9;
        scroll-behavior: smooth;
    }

    .calendar-shortcuts::-webkit-scrollbar {
        height: 6px;
    }

    .calendar-shortcuts::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .calendar-shortcuts::-webkit-scrollbar-thumb {
        background: #006272;
        border-radius: 10px;
    }

    .cal-card {
        flex: 0 0 140px;
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
        transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        text-align: center;
        text-decoration: none !important;
        border: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
    }

    .cal-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        border-color: #006272;
    }

    .cal-card-header {
        background: #006272;
        color: #fff;
        padding: 6px;
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .cal-card-body {
        padding: 12px 10px;
        background: #fff;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80px;
    }

    .cal-card-number {
        display: block;
        font-size: 2.2rem;
        font-weight: 800;
        color: #1e293b;
        line-height: 1;
        margin-bottom: 2px;
    }

    .cal-card-time {
        display: block;
        font-size: 0.8rem;
        color: #006272;
        font-weight: 700;
        margin-top: 5px;
    }

    .cal-card-footer {
        background: #f8fafc;
        padding: 8px;
        font-size: 0.7rem;
        color: #64748b;
        font-weight: 700;
        text-transform: capitalize;
        border-top: 1px solid #f1f5f9;
        margin-top: auto;
    }

    .view-toggle-btn {
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        color: #64748b;
        padding: 8px 16px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.9rem;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
        min-width: 44px; /* Un tamaño mínimo táctil */
    }

    /* En móvil: botones grandes y ocupando espacio */
    @media (max-width: 576px) {
        .calendar-info-title .controls-wrapper .d-flex {
            width: 100%;
            gap: 10px;
        }
        
        .view-toggle-btn {
            flex: 1; /* Ocupar el 50% cada uno */
            padding: 10px 0;
            font-size: 1rem;
        }
    }

    .view-toggle-btn:hover {
        border-color: #006272;
        color: #006272;
        background: #fff;
    }

    .view-toggle-btn.active {
        background: #006272;
        border-color: #006272;
        color: #fff !important;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(0, 98, 114, 0.3);
    }

    .view-toggle-btn.active i {
        color: #fff !important;
    }

    /* List View Styles - REDISEÑADO: Limpio y tipo Agenda */
    .calendar-shortcuts.list-view {
        flex-direction: column;
        gap: 10px;
        overflow-x: visible;
    }

    .calendar-shortcuts.list-view .cal-card {
        flex: 1 1 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #fff;
        border-radius: 12px;
        padding: 12px 20px;
        gap: 15px;
        border: 1px solid #e2e8f0;
        transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    /* Ajustes necesarios para que funcione el scroll horizontal SOLO EN MÓVIL */
    @media (max-width: 576px) {
        .calendar-shortcuts.list-view {
            display: flex; /* Volvemos a flex, pero row */
            flex-direction: row; /* Horizontal */
            flex-wrap: nowrap; /* Sin saltos */
            overflow-x: auto; /* Scroll si se pasa */
            padding-bottom: 10px;
        }

        .calendar-shortcuts.list-view .cal-card {
            flex: 0 0 90%; /* Tarjetas casi ancho completo */
            min-width: 300px; /* Ancho mínimo garantizado */
            margin-right: 15px; /* Espacio entre tarjetas */
        }
    }

    .calendar-shortcuts.list-view .cal-card:hover {
        border-color: #006272;
        background: #f8fafb;
        transform: translateX(8px);
        box-shadow: 0 4px 12px rgba(0, 98, 114, 0.08);
    }

    .calendar-shortcuts.list-view .cal-card-header {
        order: 2;
        background: #e6f6f7 !important;
        color: #006272 !important;
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        border-radius: 8px !important;
        width: 85px !important;
        text-align: center;
        letter-spacing: 0.5px;
    }

    .calendar-shortcuts.list-view .cal-card-body {
        order: 1;
        flex: 0 0 65px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0 !important;
        min-height: auto !important;
        background: transparent !important;
    }

    .calendar-shortcuts.list-view .cal-card-number {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        color: #1e293b !important;
        margin-bottom: 0 !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .calendar-shortcuts.list-view .cal-card-time {
        order: unset;
        margin-left: 0;
        margin-top: -2px !important;
        background: transparent !important;
        color: #006272 !important;
        padding: 0 !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }



    .calendar-shortcuts.list-view .cal-card-footer {
        order: 3;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        font-size: 1rem !important;
        color: #64748b !important;
        font-weight: 600 !important;
        text-transform: capitalize;
        margin: 0 !important;
        min-width: auto !important;
    }

    /* Card Closed State - List View Overrides */
    .calendar-shortcuts.list-view .cal-card.is-closed {
        background: #f1f5f9 !important;
        border-color: #e2e8f0 !important;
        opacity: 0.7;
        cursor: not-allowed !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .calendar-shortcuts.list-view .cal-card.is-closed .cal-card-header {
        background: #cbd5e1 !important;
        color: #64748b !important;
    }
    .calendar-shortcuts.list-view .cal-card.is-closed .cal-card-number {
        color: #94a3b8 !important;
    }
    .calendar-shortcuts.list-view .cal-card.is-closed .cal-card-time {
        color: #94a3b8 !important;
    }
    .calendar-shortcuts.list-view .cal-card.is-closed .cal-card-footer {
        color: #94a3b8 !important;
    }

    /* Ajustes Mobile para la Vista Lista - TODO EN UNA LÍNEA CON SCROLL */
    @media (max-width: 576px) {
        .calendar-shortcuts.list-view {
            overflow-x: auto; /* Permitir scroll horizontal */
            padding-bottom: 5px; /* Espacio para scrollbar si aparece */
            display: block; /* Cambiar a block para que el ancho funcione bien */
            white-space: nowrap; /* Mantener hijos inline */
        }

        .calendar-shortcuts.list-view .cal-card {
            display: flex; /* Volver a flex para contenido interno */
            padding: 10px 15px;
            gap: 15px;
            flex-wrap: nowrap;
            min-width: 320px; /* ANCHO MÍNIMO GARANTIZADO: Fuerza scroll si pantalla < 320 */
            margin-bottom: 10px; /* Separación vertical entre tarjetas */
            width: fit-content; /* Ocupar solo lo necesario, o el min-width */
        }

        .calendar-shortcuts.list-view .cal-card-header {
            width: 70px !important;
            min-width: 70px !important;
            font-size: 0.65rem !important;
            padding: 4px 6px !important;
        }

        .calendar-shortcuts.list-view .cal-card-number {
            font-size: 1.3rem !important;
        }

        .calendar-shortcuts.list-view .cal-card-footer {
            font-size: 0.85rem !important;
            white-space: nowrap; /* No romper el día de la semana */
        }

        .calendar-shortcuts.list-view .cal-card-time {
            margin-left: auto !important; /* Empujar a la derecha */
            order: 5;
            width: auto;
            font-size: 0.75rem !important;
            padding: 4px 8px !important;
            white-space: nowrap; /* No romper la hora */
            flex-shrink: 0; /* Que no se encoja la hora */
        }
    }

    .info-item.full-width {
        grid-column: 1 / -1;
    }

    /* Video play icon overlay */
    .course-gallery .ratio {
        position: relative;
    }

    .course-gallery .video-play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        background: rgba(0, 98, 114, 0.85);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 20px;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .course-gallery a:hover .video-play-icon {
        background: rgba(0, 176, 185, 0.95);
        transform: translate(-50%, -50%) scale(1.1);
    }

    /* Button Color Variants */
    .main-btn.btn-primary {
        background: #006272 !important;
        border-color: #006272 !important;
        color: #fff !important;
    }

    .main-btn.btn-success {
        background: #2e7d32 !important;
        border-color: #2e7d32 !important;
        color: #fff !important;
    }

    .main-btn.btn-warning {
        background: #fbc02d !important;
        border-color: #fbc02d !important;
        color: #333 !important;
    }

    .main-btn.btn-danger {
        background: #c62828 !important;
        border-color: #c62828 !important;
        color: #fff !important;
    }

    .main-btn.btn-orange {
        background: #ef6c00 !important;
        border-color: #ef6c00 !important;
        color: #fff !important;
    }

    .main-btn.btn-primary:hover {
        background: #004d5a !important;
        filter: brightness(1.1);
    }

    .main-btn.btn-success:hover {
        background: #1b5e20 !important;
        filter: brightness(1.1);
    }

    .main-btn.btn-warning:hover {
        background: #f9a825 !important;
        filter: brightness(1.1);
    }

    .main-btn.btn-danger:hover {
        background: #b71c1c !important;
        filter: brightness(1.1);
    }

    .main-btn.btn-orange:hover {
        background: #e65100 !important;
        filter: brightness(1.1);
    }

    /* Gradient background for courses page */
    .courses-grid,
    .course-search {
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    }

    /* Course Detail Enhancements */
    .course-detail-card {
        padding: 40px !important;
        background: #fff;
        border-radius: 24px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        margin-bottom: 30px;
    }

    .course-header-section h1 {
        font-size: 2rem;
        line-height: 1.3;
        color: #1e293b;
        margin-bottom: 1rem;
    }

    .course-subtitle {
        font-weight: 500;
        letter-spacing: 0.01em;
        margin-bottom: 1.5rem;
    }

    .course-divider-subtle {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, #e2e8f0, rgba(226, 232, 240, 0.1));
        margin: 20px 0;
    }

    .text-justify {
        text-align: justify;
        line-height: 1.8;
    }

    /* Forzar contenedores de descripción alineados a la izquierda */
    .course-description-content {
        text-align: justify !important;
        width: 100%;
    }

    .course-description-content .lead {
        color: #475569;
        font-size: 1.125rem;
        line-height: 1.7;
    }

    .course-description-content .lead p {
        margin-bottom: 0;
        display: inline;
    }

    .course-description-content .lead br {
        content: "";
        display: block;
        margin-bottom: 0.5rem;
    }

    /* Simple fix for first paragraph gap */
    .course-description-content p:first-child {
        margin-top: 0;
    }

    .course-description-content p {
        margin-bottom: 1.2rem;
    }

    .course-description-content ul,
    .course-description-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .course-description-content ul {
        list-style-type: disc;
    }

    .course-description-content ol {
        list-style-type: decimal;
    }

    .course-description-content li {
        margin-bottom: 0.5rem;
    }

    .course-description-content a {
        color: #006272;
        text-decoration: underline;
        font-weight: 600;
        transition: color 0.3s;
    }

    .course-description-content a:hover {
        color: #00B0B9;
    }

    /* Force 4:3 Aspect Ratio for Course Cards */
    .single-service.course-card .image-wrapper {
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
        background: #f1f5f9;
        position: relative;
    }

    .single-service.course-card .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Closed Banner - Diagonal overlay */

    .single-service.course-card .image-wrapper .closed-banner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-25deg);
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: #fff;
        font-weight: 800;
        font-size: 1.1rem;
        letter-spacing: 3px;
        text-transform: uppercase;
        padding: 8px 60px;
        box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
        z-index: 10;
        white-space: nowrap;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50px;
    }

    .single-service.course-card .image-wrapper .closed-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: -1;
        border-radius: 50px;
    }

    /* Ribbon más grande en el detalle */
    .course-card.detail-ribbon-wrap .ribbon {
        font-size: 14px !important;
        padding: 10px 25px 10px 18px !important;
        top: 35px !important;
        border-radius: 0 30px 30px 0 !important;
        letter-spacing: 0.5px !important;
    }

    /* Darken image when closed */
    .single-service.course-card .image-wrapper:has(.closed-banner) img {
        filter: grayscale(30%) brightness(0.7);
    }