@import url('https://fonts.googleapis.com/css?family=Poppins');

:root {
    --uacj-azul: #1F3354;
    --uacj-oro: #f4c009;
}
 
html {
    font-size: 12px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #9bcafd;
}

/* Forzar el tamaño de los toggles por problemas en carta descritiva create*/
.toggle.btn {
    min-width: 3.7rem !important;
    min-height: 2.15rem !important;
}

html {
    position: relative;
    min-height: 100%;
}

body {
/*    margin-bottom: 60px;*/
/*    font-family: 'Poppins' !important;*/
    font-family: 'Roboto', sans-serif !important;
}

/*.nav .nav-item button.active {
    background-color: transparent;
    color: var(--bs-danger) !important;
}

.nav .nav-item button.active::after {
    content: "";
    border-right: 4px solid var(--bs-danger);
    height: 100%;
    position: absolute;
    right: -1px;
    top: 0;
    border-radius: 5px 0 0 5px;
}*/

.borderTabs {
/*    border-right: 1px solid #dee2e6;*/
    padding-right: 10px;
}

.contentTabs {
    /*border: 1px solid #dee2e6;*/
    /*background-color: #0d6efd;*/
    /*padding: 15px;*/

    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, #b3d1fe, #e0cffc) border-box;
    border-radius: 8px;
    padding: 1rem;
}

.red-border {
    border-color: red !important;
}

.borderTabs .nav-link {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.2s ease;
}

.borderTabs .nav-link.disabled {
    background-color: #f0f2f4;
    color: #97a6b5; /*b4bfca*/
}

.borderTabs .nav-link .error-icon {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.borderTabs .nav-link:hover {
    background-color: #e2e6ea;
}

/*.borderTabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}*/

.borderTabs .nav-link.active {
    background-color: #cfe2ff;
    color: #084298;
    border-color: #b6d4fe;
/*    font-weight: bold;*/
}

.action-btn {
    padding: 1px 3px !important;
    margin-bottom: 4px !important;
}

.actions-width {
    width: 150px;
}

.actions-width {
    width: 200px;
}

.menu-lateral {
    width: 100%;
}

.menu-lateral .nav-link {
    white-space: normal;
    word-wrap: break-word;
}

/* Estilos personalizados para el nav del menu principal*/
.navbar-nav .nav-item.active .nav-link {
    border-bottom: 3px solid #66b0ff;
    padding-bottom: 10px;
}

/* Tabs no mantienen el mismo tamaño dependiendo del contenido*/
#v-pills-tabContent.tab-content {
    min-height: 500px; /* Ajusta este valor según el contenido más grande */
    display: flex;
}

.tab-pane {
    width: 100%; /* Asegura que todos los tabs ocupen el mismo ancho */
}

.scale-hover {
    transition: transform 0.3s ease-in-out;
}

.scale-hover:hover {
    transform: scale(1.1);
}

.margin-x-0 {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.padding-x-0 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.left-padding-0 {
    padding-left: 0px !important;
}

.right-padding-0 {
    padding-right: 0px !important;
}

/* Antecedente y Consecuente Tables (registro Carta descriptiva)*/
.card-hoverable {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border-radius: 0.75rem;
    background-color: #fff;
}

.card-hoverable:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #0d6efd;
}

.card-shadow {
    transition: box-shadow 0.3s ease;
    border-radius: 0.75rem;
    background-color: #fff;
}

.card-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

.table th, .table td {
    vertical-align: middle;
}

.btn i {
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Textareas de carta descriptiva */
textarea.form-control {
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    resize: vertical;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

textarea.form-control:focus {
    border-color: #0d6efd; /* azul Bootstrap */
    outline: none;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
    background-color: #fdfdfd;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.temas,
.actividades{
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px;
}

.unidades {
    background-color: #cfe2ff;
}

.temas {
    background-color: #d1e7dd;
}

.subtemas {
/*    background-color: #cde5da;*/
}

.subtemas {
    background-color: #cff5fc;
}

.actividades {
    background-color: #ffe5d0;
}

.unidad .card-header {
    background-color: #9ec5fe;
}

.temasArea .card-header {
    background-color: #a3cfbb;
}

.actividadesArea .card-header {
    background-color: #fecba1;
}

.btn-orange {
    color: #fff;
    background-color: #fd7e14;
    border-color: #fd7e14;
}

.btn-orange:hover {
    color: #fff;
    background-color: #ca6510;
    border-color: #ca6510;
}


.tema .card-header {
    background-color: #a3cfbb;
}

.actividad .card-header {
    background-color: #fecba1;
}

.input-error {
    border: 1px solid red;
    background-color: #ffe6e6;
}

/*Forza mayusculas center label primera letra del datapicker*/
.tempus-dominus-widget .dow,
.tempus-dominus-widget .month,
.tempus-dominus-widget .decade,
.tempus-dominus-widget .year,
.tempus-dominus-widget .date-container {
    text-transform: capitalize;
}

.error-icon {
    color: #dc3545; 
}

.requiredAsterisk {
    color: #dc3545 !important;
}

/* Sobreescribimos clase de checkbox toogle ya que no muestra bien el contenido en palabra pequeña (No)*/
.toggle > .toggle-group > .toggle-off.btn {
    padding-left: 1.2rem !important;
}

span.text-danger {
    font-size: 0.9rem !important;
}
.externo-border-grueso {
    border-bottom: 1px solid #28a745 !important;
    border-style: solid !important;
}

/* Estilos Planes de Estudio*/
/* Comparaciones de Planes de Estudio*/
.comparacion:nth-child(even) {
    background-color: #f8f9fa; /* gris clarito Bootstrap */
}

.comparacion:nth-child(odd) {
    background-color: #ffffff;
}

.dropzone {
    border: 2px dashed #6c757d;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.dropzone:hover {
    background-color: #e9ecef;
    border-color: #495057;
    color: #495057;
}

.dropzone input[type="file"] {
    display: none;
}

/*.nucleoInput {
    font-size: 
}
*/
.fr-view table {
    border-collapse: collapse;
    width: 100%;
}

.fr-view td, .fr-view th {
    border: 1px solid #ccc;
    padding: 8px;
}

.nucleo input, .nucleo textarea {
    font-size: 0.75rem !important;
}

.nucleoTable td {
    font-size: 0.72rem !important;
}

.uacj-bg {
    background-color: #1f3354;
}

.banner-welcome {
    background: linear-gradient(135deg, var(--uacj-azul) 0%, #2c4a7c 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 51, 84, 0.15);
    border: 15px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.banner-welcome:hover .banner-logo {
    transform: scale(1.05) rotate(-2deg);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-logo {
    height: 110px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.titulo-pagina {
    font-weight: 800;
    letter-spacing: -1.5px;
    /*font-family: roboto-black;*/
}

.footer {
    position: static !important; /* evita que se sobreponga */
    line-height: 0px !important;
}

.btn-uacj-primary {
    background-color: transparent;
    border: 2px solid var(--uacj-oro);
    color: var(--uacj-oro) !important;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: normal;
    border-radius: 10px;
    padding: 10px 25px;
    padding-right: 25px;
    padding-left: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-uacj-primary:hover {
    background-color: var(--uacj-oro);
    color: var(--uacj-azul) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 192, 9, 0.3);
}

.btn-uacj-primary:active {
    transform: translateY(-1px);
}

.card-info {
    margin-top: -40px;
    border-radius: 16px;
}

.note-area {
    background: #fff9e6; /* un tono suave tipo “sticky note” */
    border: 3px solid #ffc107; /* amarillo Bootstrap */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.note-area:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: scale(1.01);
}

.note-area textarea.act {
    background-color: #fff !important;
}

.note-area textarea.act.is-invalid {
    border-color: #dc3545 !important;
}

.form-control[readonly]:focus {
    background-color: #e9ecef;
    opacity: 1;
}

.note-textarea {
    resize: vertical;
    min-height: 120px;
    background: transparent;
    font-size: 0.95rem;
    line-height: 1.4;
}

.note-label {
    display: inline-block;
    background: #ffc107;
    color: #212529;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
}

.borderTabs .note-tab {
    background-color: #fff9e6 !important;
    border: 1px solid #ffc107;
    color: #cc9900;
}

.borderTabs .note-tab.active {
    background-color: #fff3cc !important;
    border: 1px solid #ffc107;
    color: #664d00; /*997300*/
}

.border-left-info {
    border-left: 4px solid #0dcaf0;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.index-table {
    font-size: 0.82rem !important;
}
.img-magnifier-container {
    position: relative;
}

.img-magnifier-container img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.img-magnifier-container img:hover {
    transform: scale(1.02);
}

.img-magnifier-glass {
    position: absolute;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: none;
    /* tamaño de la lupa */
    width: 380px;
    height: 280px;
    /* evita selección de texto/imágenes */
    user-select: none;
    pointer-events: none;
    /* sombra sutil */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 999;
}

.form-select.form-select-sm.index-select {
    width: 100%; /* Que todos los selects ocupen el mismo ancho que su contenedor */
    min-width: 0; /* Evita que crezcan más allá del contenedor */
    text-overflow: ellipsis; /* Muestra "..." si el texto es muy largo */
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

.d-flex.flex-column.flex-fill {
    flex: 1;
    min-width: 0; /* Esto es clave para evitar que flex-grow rompa el ancho */
}

.restore-header-bg {
    background-color: #e6e6e6;
}

.restore-body-bg {
    background-color: #f2f2f2;
}

.permisosBox {
    border: 1px solid #bfbfbf;
    border-radius: 5px;
}

.forbidden-container {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.forbidden-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: min(600px, 130vw) !important;
    color: rgba(220, 53, 69, 0.25); /* Rojo muy suave, tipo degradado */

    z-index: -1; /* Queda atrás del texto */
    user-select: none;
    pointer-events: none;
}

.NotFound-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: min(690px, 130vw) !important;
    color: rgba(220, 53, 69, 0.25); /* Rojo muy suave, tipo degradado */

    z-index: -1; /* Queda atrás del texto */
    user-select: none;
    pointer-events: none;
}

.icon-img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.apa-reference {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 12px 16px;
    margin: 10px 0;
    font-family: "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.5;
    text-indent: -1.5em;
    padding-left: 2em;
    border-radius: 6px;
}

.apa-title {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 6px;
    font-family: system-ui;
}

.apa-box {
    position: relative;
}

.btn-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
}

.menu-lateral-compact {
    width: 100%;
}

.menu-lateral-compact .nav-link {
    padding: 6px 8px;
    text-align: center;
}

@media (min-width: 300px) and (max-width: 400px) {
    .forbidden-bg {
        top: 40%;
    }
    .NotFound-bg {
        top: 38%;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .planTableFontSize {
        font-size: 12px;
    }

    .borderTabs .nav-link.active::after {
        content: "";
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid #cfe2ff;
    }

    .borderTabs .note-tab.active::after {
        border-left: 10px solid #ffc107;
    }

    .borderTabs .nav-link.red-border::after {
        border-left-color: red !important;
    }
}

@media (min-width: 768px) and (max-width: 990.98px) {
    .menu-lateral {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }

    .nav-content {
        font-size: 0.9rem;
    }
}

@media (min-width: 991px) {
    .menu-lateral {
        width: 250px;
        min-width: 250px;
        max-width: 250px;
    }
}

@media (min-width: 768px) {
    .menu-lateral-compact {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
}

@media (max-width: 768px) {
    .menu-lateral-compact {
        width: 100%;
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
    }

    .menu-lateral-compact .nav-link {
        flex: 1;
    }
}
