:root {
    --primary-color: #ab0033; /*Rojo*/
    --secondary-color: #bc955c; /*Dorado*/
    --text-color: #45494c;
    --primary-dark: #7a0024;
    --secondary-dark: #73552a;
    --accent: #bc955c;
    --light-bg: #f8f9fa;
    --dark-text: #45494c;
}
/* Tablas personalizadas */
.table-encabezado-oro {
    border: 1px solid #bc955c;
}
    /* Encabezado */
    .table-encabezado-oro thead th {
        background-color: #bc955c !important;
        color: white !important;
        border-color: #bc955c !important;
    }
    /* Filas pares */
    .table-encabezado-oro tbody tr:nth-child(even) {
        background-color: #f9f0e5 !important;
    }
    /* Hover */
    .table-encabezado-oro tbody tr:hover {
        background-color: rgba(188, 149, 92, 0.2) !important; /* dorado translúcido */
    }
/*.form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }*/
    .form-check-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(171, 0, 51, 0.25);
    }
    .form-check-label {
        color: var(--dark-text);
        font-weight: 500;
    }
    .form-check:hover .form-check-label {
        color: var(--primary-color);
    }
.form-check-input[type="radio"]:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.form-check-input[type="radio"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(188, 149, 92, 0.25); /* dorado con transparencia */
}
.form-check-input:checked + .form-check-label{
    color: var(--primary-color) !important;
}
.btn-cuartate {
    background: var(--primary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white;
    /*padding: 12px 18px;*/
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    font-size: 1rem;
}
    .btn-cuartate:hover {
        background: var(--primary-dark) !important;
        transform: translateY(-2px);
        color: white;
    }
    .btn-cuartate:focus,
    .btn-cuartate:active,
    .btn-cuartate:focus:active {
        background-color: var(--primary-color);
        border-color: var(--secondary-color);
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(var(--secondary-color), 0.5);
        outline: none !important;
    }
.btn-cuartate-dorado {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white;
    /*padding: 12px 18px;*/
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    font-size: 1rem;
}
    .btn-cuartate-dorado:hover {
        background: var(--secondary-dark) !important;
        transform: translateY(-2px);
        color: white;
    }
    .btn-cuartate-dorado:focus,
    .btn-cuartate-dorado:active,
    .btn-cuartate-dorado:focus:active {
        background-color: var(--secondary-color);
        border-color: var(--primary-color);
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.5);
        outline: none !important;
    }
.bg-cuartate {
    background: var(--primary-color);
    background-color: var(--primary-color);

}
.bg-cuartate-dorado {
    background: var(--secondary-color);
    background-color: var(--secondary-color);
}


.fa-primary {
    color:var(--primary-color) !important;
}
.fa-secondary {
    color: var(--secondary-color) !important;
}
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    height: 100%;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* asegura ocupar toda la pantalla */
    margin: 0; /* elimina márgenes inesperados */
    /* si quieres conservar fuente y overflow-x, mantenlos aquí */
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    color: #45494c;
    overflow-x: hidden;
}
/*@media (max-width: 991px) {
    .navbar-collapse {
        overflow: visible !important;
    }

    .navbar-toggler {
        border: none;
    }
}
    */
footer {
    position: relative; 
    bottom: auto;
    width: 100%;
    background-color: #ab0033;
    border-top: 7px solid #bc955c;
}
header {
    background-color: #ab0033;
    border-bottom: 7px solid #bc955c
}
.navbar-toggler-icon {
    background-color: black;
}
.logo {
    max-width: 100%;
    max-height: 70px;
    height: auto;
    width: auto;
    margin-right: 20px;
}
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(17, 17, 17, 0.9); /* Efecto glassmorphism */
    backdrop-filter: blur(8px);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.7);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow-x: hidden;
    transition: all 0.5s ease-in-out;
    padding-top: 60px;
    z-index:9999;
}
    .sidebar a {
        padding: 12px 20px;
        text-decoration: none;
        font-size: 20px;
        color: #f1f1f1;
        display: block;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }
        .sidebar a:hover {
            color: #bc955c;
            border-left: 3px solid #bc955c;
            background-color: rgba(255, 255, 255, 0.1);
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }
.openbtn {
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #ab0033, #bc955c);
    color: white;
    border: none;
    /*border-radius: 20px;*/
    padding: 5px 60px;
    position: fixed;
    top: 50%;
    left: -85px;
    transform: rotate(-90deg);
    transition: background 0.3s ease-in-out;
    margin: 2px;
    z-index: 9999;
}
    .openbtn:hover {
        background: linear-gradient(135deg, #bc955c, #ab0033);
    }

#menu_sistemas i {
    pointer-events: auto;
}

/*/////////////////////SWIPER///////////////////*/
.swiper-container {
    width: 100%;
    height: 350px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/

}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
    .swiper-slide img {
        /* width: 100%; */
        height: 100%;
        /* object-fit: cover; */
    }
.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    padding: 10px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 8px;
    max-width: 90%;
}
.swiper-button-next, .swiper-button-prev {
    color: #ab0033;
    /* background-color: rgba(0,0,0,0.5); */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
/*  .swiper-button-next:hover, .swiper-button-prev:hover {
                background-color: rgba(0,0,0,0.8);
            }  */
.swiper-pagination {
    /*border:solid;*/
}
.swiper-pagination-bullet {
    background: #b5b3b3;
    opacity: 0.4;
}
.swiper-pagination-bullet-active {
    background: #bc955c;
    opacity: 1;
}
.swiper-scrollbar {
    background: white;
}
.swiper-scrollbar-drag {
    background: #bc955c;
}
/*////////////////////////////////////////*/
.modal-inscripcion {
    max-width: 500px;
}
    .modal-inscripcion .modal-body {
        padding: 1.5rem;
    }
    .modal-inscripcion .modal-footer {
        padding: 0.75rem 1.5rem;
    }
.curso-catalog {
    padding-top: 2rem;
    padding-bottom: 4rem;
}
.curso-media {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}
    .curso-media iframe,
    .curso-media img {
        object-fit: cover;
        transition: transform 0.3s ease;
    }
.card:hover .curso-media img,
.card:hover .curso-media iframe {
    transform: scale(1.03);
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    }
.card-title {
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-body {
    flex: 1 0 auto; 
    display: flex;
    flex-direction: column;
}
.curso-contenido {
    max-width: 1200px;
}
/* Sidebar de módulos */
.sidebar-modules {
    border-radius: 8px;
    overflow: hidden;
}
.module-list {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}
.module-item {
    border-left: 0;
    border-right: 0;
    padding: 1rem 1.25rem;
}
    .module-item:first-child {
        border-top: 0;
    }
.content-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.content-item {
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
}
    .content-item.active {
        /*border-left-color: var(--bs-primary);*/ 
        background-color: rgba(13, 110, 253, 0.05);
    }
    .content-item a {
        text-decoration: none;
        padding: 0.5rem;
        border-radius: 4px;
        color: var(--bs-body-color);
        display: block;
    }
    .content-item.active a {
        font-weight: 500;
    }
    .content-item:hover a {
        background-color: rgba(0, 0, 0, 0.03);
    }
/* Tarjeta de contenido */
.content-card {
    border-radius: 8px;
}
/* Tipos de contenido */
.video-container {
    border-radius: 8px;
    overflow: hidden;
}
.document-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.presentation-container, .external-link-container {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}
/* Barra de progreso */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}
/* Detalles del curso */
.detail-item {
    display: flex;
    align-items: center;
}
    .detail-item i {
        font-size: 1.25rem;
    }
/* Navegación */
.content-navigation {
    padding-top: 1rem;
}
/* Evaluación */
.evaluation-card {
    border-radius: 8px;
}
.evaluation-info .alert {
    border-radius: 8px;
}
.preview-questions {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}
.list-group-item {
    cursor: pointer;
    transition: background-color 0.2s;
}
    .list-group-item:hover {
        background-color: #f8f9fa;
    }
.form-check-input:checked + .form-check-label {
    font-weight: bold;
    color: #0d6efd;
}
/*Registro*/
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23333' stroke-width='2' fill='none' stroke-dasharray='15.85 15.85' stroke-dashoffset='15.85'%3E%3Canimate attributeName='stroke-dashoffset' values='15.85;0;15.85' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px 20px;
    padding-right: 40px !important;
}
    .loading:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
.verified-field {
    background-color: #f8fff8 !important;
    border-color: #28a745 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem) !important;
}
/*////////////////////Toast/////////////////*/
.toast-container {
    z-index: 1055;
}
.toast {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(13, 110, 253, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
/*////////////////////Login/////////////////*/
/* Animaciones */
#welcome-content, #login-panel {
    transition: all 0.4s ease-in-out;
}
    #welcome-content.fade-out {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }
#login-panel {
    opacity: 0;
    transform: translateY(20px);
}
    #login-panel.fade-in {
        opacity: 1;
        transform: translateY(0);
    }
main[role="main"] {
    flex: 1 0 auto;
}
.dropdown-menu {
    z-index: 1050; 
}
.google-drive-container {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    .google-drive-container iframe {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #dee2e6;
    }

    .google-drive-container .btn-outline-primary {
        border-color: #4285f4;
        color: #4285f4;
    }

        .google-drive-container .btn-outline-primary:hover {
            background-color: #4285f4;
            color: white;
        }

.external-link-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

    .external-link-container .display-4 {
        color: rgba(255,255,255,0.9);
    }



.pregunta-sin-responder {
    background-color: #fff5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.error-pregunta {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pregunta-container:has(input[type="radio"]:checked) {
    border-left: 4px solid #28a745 !important;
    padding-left: 12px !important;
}

.curso-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .curso-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

.curso-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.curso-progress {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.curso-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
}


