body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #680148;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
}


.header-left, .header-right {
    display: flex;
    align-items: center;
}


.header-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    height: 100%; /* Que use todo el alto del header */
    display: flex;
    align-items: center;
}

#logo, #mensaje, #dark-mode-toggle, #contactanos {
    height: 60px;
    width: 60px;
    max-width: 60px;
    max-height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 5px;
}

#logo {
    order: 0;
    margin-right: 10px;
}

#dark-mode-toggle {
    order: 1;
    margin: 0 10px;
}

#mensaje {
    order: 2;
    margin-left: 10px;
}

#logo:hover, #mensaje:hover, #dark-mode-toggle:hover, #contactanos:hover {
    transform: scale(1.05);
}

h1 {
    margin: 0;
    font-size: 2em;
}

nav {
    background-color: #520d3c;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.career-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

nav button {
    background-color: #fbb03b;
    border: none;
    color: #ffffff;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 5px;
    white-space: nowrap;
}

nav button span {
    display: block;
    line-height: 1.2;
}

#btn-gestion-tecnologica {
    margin-left: 11.5%;
}

#btn-gestion-tecnologica, #btn-economia-empresarial, #btn-administracion, #btn-contador-publico {
    width: 180px;
}

#btn-save, #btn-download-pdf {
    width: 140px;
    position: relative;
}

#btn-save {
    background-color: #45b32f;
    color: #ffffff;
}

nav button.active {
    background-color: #916724;
    color: #ffffff;
}

nav button:hover {
    background-color: #80426cbd;
    color: #ffffff;
}

#btn-save:hover {
    background-color: #328621;
    color: #ffffff;
}

main {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.year-section, .mix-section {
    width: 100%;
    max-width: 300px;
    margin: 10px;
}

.year-title, .mix-title {
    background-color: #680148;
    color: white;
    padding: 5px;
    text-align: center;
    margin-bottom: 10px;
}

.course-grid {
    display: flex;
    flex-direction: column;
}

.course {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.course:hover {
    filter: brightness(0.85);
}

.course h2 {
    font-size: 0.9em;
    margin: 0;
}

.details {
    display: none;
    padding: 10px;
    border-top: 1px solid #cccccc;
    font-size: 0.8em;
}

.course.active .details {
    display: block;
}

.correlatives, .is-correlative-for {
    list-style-type: none;
    padding-left: 10px;
}

.status-buttons {
    margin-top: 5px;
}

.status-button {
    margin: 2px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: white;
    border: none;
    border-radius: 3px;
}

.final-aprobado, .ingreso-aprobado {
    background-color: #99d98c;
    padding: 10px;
}

.sin-cursada, .sin-ingreso {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
    padding: 10px;
}

.cursada-aprobada {
    background-color: #a1c4fd;
    padding: 10px;
}

.disabled {
    background-color: #7a7a7a;
    color: #ffffff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    margin-top: 0;
    color: #680148;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-form input,
.modal-form textarea {
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.modal-form button {
    background-color: #680148;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 3px;
}

.modal-form button:hover {
    background-color: #00406e;
}


#faqModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    background-color: #f1f1f1;
    padding: 10px;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.links-modal-content {
    max-width: 600px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 17px;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #ccc;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.link-item {
    margin-bottom: 15px;
}

.link-item a {
    font-size: 18px;
    color: #003366;
    text-decoration: none;
}

.link-item p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #666;
}

.derechos {
    bottom: 5px;
    text-align: center;
    color: #c2c3c2;
}

.cuatri {
    font-weight: bold;
}

.cuatri-a, .cuatri-b {
    color: #bebebe;
}

/* Estilo del botón de descarga PDF */
#btn-download-pdf {
    background-color: #c70d0d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#btn-download-pdf:hover {
    background-color: #940b0b;
}

@media screen and (max-width: 768px) {
    header {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 5px;
    }
    
    .header-content {
        margin: 0;
        padding: 0 5px;
    }
    
    /* Asegurar que todos los iconos del header tengan el mismo tamaño */
    #logo, #mensaje, #dark-mode-toggle, #contactanos {
        height: 50px;
        width: 50px;
        max-width: 50px;
        max-height: 50px;
        margin: 0 5px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    nav {
        flex-direction: column;
    }
    
    .career-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    nav button {
        margin: 5px auto;
        width: calc(100% - 20px);
        height: 50px;
    }
    
    /* Asegurar que todos los botones tengan la misma configuración de ancho */
    #btn-gestion-tecnologica, 
    #btn-contador-publico, 
    #btn-administracion, 
    #btn-economia-empresarial,
    #btn-save,
    #btn-download-pdf {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 20px);
        max-width: none;
        height: 50px;
    }
    
    .year-section, .mix-section {
        max-width: 100%;
    }
    
    .tutorial-content {
        width: 90%;
        height: auto;
        max-height: 90vh;
    }
    
    .nav-button {
        top: auto;
        transform: none;
        z-index: 1;
    }
}

/* Estilos para pantallas muy pequeñas (móviles) */
@media screen and (max-width: 480px) {
    header {
        padding: 3px;
    }
    
    #logo, #mensaje, #dark-mode-toggle, #contactanos {
        height: 40px;
        width: 40px;
        margin: 0 3px;
    }
       
    /* Asegurar que todos los botones tengan el mismo tamaño y formato */
    nav button,
    #btn-gestion-tecnologica, 
    #btn-contador-publico, 
    #btn-administracion, 
    #btn-economia-empresarial,
    #btn-save,
    #btn-download-pdf,
    #contactanos {
        width: 100%;
        z-index: 1;
        font-size: 12px;
        height: 45px;
        margin: 5px auto;
    }
    
    .tutorial-content {
        width: 95%;
    }
    
    .tutorial-tab h3 {
        font-size: 1.2em;
    }
    
    .tutorial-tab p {
        font-size: 0.9em;
    }
}

 

@media screen and (max-width: 1900px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 28%;
    }
    
    #nextButton {
        right: 28%;
    }
}  

@media screen and (max-width: 1800px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 26%;
    }
    
    #nextButton {
        right: 26%;
    }
}  

@media screen and (max-width: 1700px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 26%;
    }
    
    #nextButton {
        right: 26%;
    }
}  

@media screen and (max-width: 1600px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 24%;
    }
    
    #nextButton {
        right: 24%;
    }
}  


@media screen and (max-width: 1500px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 22%;
    }
    
    #nextButton {
        right: 22%;
    }
}  

@media screen and (max-width: 1400px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 20%;
    }
    
    #nextButton {
        right: 20%;
    }
}  

@media screen and (max-width: 1300px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 18%;
    }
    
    #nextButton {
        right: 18%;
    }
}  

@media screen and (max-width: 1200px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 15%;
    }
    
    #nextButton {
        right: 15%;
    }
}  

@media screen and (max-width: 1100px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 12%;
    }
    
    #nextButton {
        right: 12%;
    }
}  

@media screen and (max-width: 900px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 8%;
    }
    
    #nextButton {
        right: 8%;
    }
} 

@media screen and (max-width: 700px) {
    .nav-button {
        width: 50px;
        height: 40px;
        font-size: 20px;
    }
    
    #prevButton {
        left: 3%;
    }
    
    #nextButton {
        right: 3%;
    }
}

/* Estilos para el modal del tutorial */
#tutorialModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.tutorial-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    width: 70%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease;
}

/* Estilos para las pestañas del tutorial */
.tutorial-tab {
    display: none;
    text-align: center;
    padding: 10px;
}

.tutorial-tab h2, .tutorial-tab h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.tutorial-tab p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.tutorial-tab video {
    max-width: 82%;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin: 15px 0;
    background-color: #f0f0f0;
}

/* Estilos para los botones de navegación */
.nav-button {
    position: relative;
    
    
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}



/* Estilos para el botón de cierre y el checkbox */
#tutorialModal button {
    padding: 10px 20px;
    background-color: #91196b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#tutorialModal button:hover {
    background-color: #520d3c;
}

#tutorialModal label {
    display: block;
    margin: 15px 0;
    font-size: 16px;
    color: #555;
}

#noShowAgain {
    margin-right: 8px;
    vertical-align: middle;
}

/* Animación para el modal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos específicos para cada pestaña */
#tab1 {
    padding: 30px 20px;
}

#tab1 h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

#tab2 p {
    text-align: left;
    padding: 0 20px;
}

#tab2 p b {
    color: #e74c3c;
}

#tab3 {
    padding: 20px;
}

#tab4 {
    padding: 30px 20px;
}

#tab4 h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #3b3b3b;
}



/* Estilos responsivos */
@media (max-width: 768px) {
    .tutorial-content {
        width: 90%;
        padding: 20px;
    }
    
    .nav-button {
        padding: 10px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    
    #prevButton {
        left: 10px;
    }
    
    #nextButton {
        right: 10px;
    }
    
    .tutorial-tab h3 {
        font-size: 20px;
    }
    
    .tutorial-tab p {
        font-size: 14px;
    }
}

/* Background estático con imagen de león */
/* Background estático con imagen de león */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('media/leon.png');
    background-repeat: no-repeat;
    background-position: center center; /* Centrado horizontal y vertical */
    background-attachment: fixed;
    background-size: contain; /* Tamaño fijo más controlado */
    opacity: 0.20; /* Menos visible para que no interfiera */
    z-index: -1;
    pointer-events: none;
}

#header-title-img {
    max-height: 100%; /* Nunca más grande que el header */
    width: auto;      /* Mantiene proporción */
}


  