:root {
    --color-primario: #653089;
    --color-morado-oscuro: #53206E;
    --color-verde: #BFFC19;
    --color-rosa: #FB1CAB;
    --color-amarillo: #F8B40B;
    --color-texto: #222222;
    --color-fondo: #ffffff;
    --color-gris: #A1A1A1;
    --color-verde: #C5D205;
    --color-negro: #000;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Nunito Sans';
}


body {
  margin: 0;
  margin-top: 70px;
  font-family: Arial, sans-serif;
  /*height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;*/
}

body#inicioSesion {
    background: #f2f2f2 url("../img/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    background-size: contain;
    padding: 5%;
}

.logo-container {
    text-align: center;
}

.logo-container img {
    width: 140px;
}

.login-container {
    width: 320px;
    margin: 30px auto;
    background: rgba(68, 18, 107, 0.74);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.logo-container img {
    width: 140px;
}

button.btn-informacion {
    position: fixed;
    right: 20px;
    bottom: 100px;
    border: none;
    padding: 0;
}

a.btn-pc {
    position: fixed;
    right: 20px;
    bottom: 35px;
}

h2.title-login {
    margin-bottom: 20px;
    color: white;
}

.font-miches {
    font-family: 'Miches';
}

.font-nun {
    font-family: 'Nunito Sans';
    font-weight: 300;
}

.login-container input {
    width: 90%;
    padding: 10px;
    margin: 8px auto;
    border: 1px solid #ffffff22;
    border-radius: 3px;
    background: #84649d;
    color: #FFF;
}

.login-container select#rol {
    width: 90%;
    padding: 10px;
    margin: 8px auto;
    border: 1px solid #ffffff22;
    border-radius: 3px;
    background: #84649d;
    color: #FFF;
}

.login-container select#rol:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-image: url(../img/flecha-34.svg);
}

.login-container input::placeholder {
    color: #FFF;
    font-style: italic;
}

button.btn-ingresar {
    background-color: var(--color-verde);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 97%;
    margin-top: 10%;
    margin-bottom: 10%;
    font-family: 'Miches';
}

button.btn-ingresar:hover {
    background-color: var(--color-rosa);
}

.error {
    color: red;
    margin-top: 10px;
}

.bg-rosa {
    background-color: var(--color-rosa);
}

.bg-morado {
    background-color: var(--color-primario);
}

.bg-morado2 {
    background-color: var(--color-morado-oscuro);
}

.bg-amarillo {
    background-color: var(--color-amarillo);
    border: none;
}



/* ----- Menu -----*/


/* ===== HEADER FIJO ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-primario);
    z-index: 1050;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.main-header.scrolled {
    height: 60px;
    background: var(--color-primario);
}

.main-header img.logo {
    width: 235px;
    /*height: 45px;*/
    transition: all 0.3s ease;
}

.main-header.scrolled img.logo {
    height: 50px;
}

/* ===== MENÚ OVERLAY ===== */
.menu-overlay {
    position: fixed;
    top: 70px;
    /* debajo del header */
    left: 0;
    width: 100%;
    height: calc(100vh - 140px);
    /* sin header ni footer */
    background: url('../img/bg-menu.png') center center / cover no-repeat;
    display: none;
    flex-direction: column;
    justify-content: start;
    align-items: left;
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 5%;
}

.menu-overlay.show {
    display: flex;
    opacity: 1;
}

/* ===== LINKS PRINCIPALES ===== */
.menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-overlay ul li {
    margin: 7px 0;
    position: relative;
    text-align: left;
    list-style: none;
}

.menu-overlay ul li a {
    color: var(--color-negro);
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito Sans';
}

.menu-overlay ul li a:hover {
    color: var(--color-rosa);
}

div#menuOverlay {
    list-style: none;
}

/* ===== SUBMENÚ ===== */
.submenu {
    display: none;
    margin-top: 10px;
    margin-left: 44px;
    animation: fadeIn 0.3s ease;
}

.submenu a {
    font-size: 18px;
    display: block;
    padding: 5px 0;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu-toggle i {
    transition: transform 0.3s;
}

.submenu-toggle i.bi-chevron-right {
    width: 30px;
    height: 30px;
    background: var(--color-rosa);
    border-radius: 50px;
    font-weight: bold;
    color: var(--color-fondo);
    text-align: center;
}

.submenu-toggle.open i {
    transform: rotate(90deg);
}

.submenu.submenu2 {
    margin-top: -35px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BOTÓN MENÚ ===== */
.menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--color-fondo);
    cursor: pointer;
}

.menu-btn .navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 2px;
    background-color: var(--color-fondo);
    position: relative;
    transition: all 0.3s;
    border-radius: 5px;
}

.menu-btn .navbar-toggler-icon::before,
.menu-btn .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: var(--color-fondo);
    transition: all 0.3s;
    border-radius: 5px;
    left: 0;
}

.menu-btn .navbar-toggler-icon::before {
    top: -7px;
}

.menu-btn .navbar-toggler-icon::after {
    top: 7px;
}

.menu-btn.active .navbar-toggler-icon {
    background-color: transparent;
}

.menu-btn.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-btn.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ------ fin menu */

/* Login */


/* Contenido de la modal */
.modal-content {
    background: #fff;
    border: 2px solid var(--morado);
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease forwards;
}

/* Animación al aparecer */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Texto dentro de la modal */
.modal-content h3 {
    margin-top: 0;
    color: var(--morado);
}

.modal-content p {
    font-size: 16px;
    color: var(--color-negro);
    margin: 0;
    line-height: 1.4;
}

.modal-content li {
    color: var(--color-negro);
}

/* Fin login*/



/* ------------ HOME ----------*/

section.container-bgHome {
    height: 87vh;
    background-image: url(../../assets/img/bg2.jpg);
    background-size: cover;
}

.container-Home.text-center {
    max-width: 1064px;
    /*margin: auto;*/
}

h4.text-start {
    color: white;
    text-shadow: 3px 0px var(--color-primario);
}

.container-txtHome {
    background: var(--color-primario);
    border-radius: 10px;
    position: relative;
    margin-left: 52px !important;
}

.container-txtHome h3 {
    color: #FFF;
    font-weight: 600;
}

.color-rosa {
    color: var(--color-rosa);
}

.btn-rosa {
    background-color: var(--color-rosa);
    border: none;
}

.btn-verde {
    background-color: var(--color-verde);
    border: none;
    color: var(--color-negro);
}

.btn-line {
    background-color: #ffffffbd;
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: bold;
}

a.btn-consulta {
    margin-left: 45px;
}

a.btn-consulta:before {
    content: "";
    width: 35px;
    height: 35px;
    position: absolute;
    background-image: url(../img/ico-libro.png);
    background-repeat: no-repeat;
    background-size: contain;
    left: 18px;
}


/*  ----Fin HOME --------*/

/* ======= Sección del proyecto ======= */
.seccion-proyecto,
.seccion-guia {
    background: url('../img/bg-interna.png') no-repeat center center/cover;
    color: #333;
    /*min-height: 100vh;*/
}

.w-80 {
    width: 80%;
}

.boton-circular {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 0px #E5E5E5;
}

.boton-circular img {
    width: 50%;
    transition: transform 0.3s ease;
}

.boton-circular:hover img {
    transform: scale(1.1);
}

.boton-circular.activo {
    background-color: var(--color-primario);
    /* Morado */
}

.boton-circular:not(.activo) {
    background-color: #b5b5b5;
    /* Gris */
}

a.boton-circular.activo.boton-circular-fases {
    background-color: var(--color-rosa);
}

a.boton-circular.activo.boton-circular-rol {
    background-color: var(--color-amarillo);
}

a.btn-cuadernos {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 5px;
    padding-top: 19px;
    background: var(--color-rosa);
    right: 19px;
    top: 42%;
    font-size: 12px;
    text-decoration: none;
    color: var(--color-fondo);
    font-weight: bold;
    line-height: 15px;
    transition: all 0.3s ease;
}

a.btn-cuadernos:hover {
    transform: scale(1.1);
}

a.btn {
    padding: 12px 24px;
    /* border-radius: 0px;*/
}

a.btn:hover {
    border: none !important;
    border-color: transparent !important;
    background-color: var(--color-primario);
}

.container-paragraph {
    position: relative;
    background-color: #F2F2F1;
    padding: 4% 5%;
    padding-bottom: 7%;
}

.container-paragraph:before {
    content: "";
    width: 100px;
    height: 34px;
    position: absolute;
    background: url(../img/puntos.png) no-repeat center center / contain;
    left: 27px;
    top: -18px;
}

span.text-resaltar {
    background-color: var(--color-verde);
}

.text-subtitle {
    color: var(--color-rosa);
    font-style: italic;
    font-size: 26px;
}

h1.text-title {
    font-size: 31px;
    color: var(--color-primario);
}

.container-paragraph2 {
    background: #f2f2f1b0;
}

.mb-ocultar {
    display: block;
}

.mb-mostrar {
    display: none;
}

/* --- ESTILOS DEL MENÚ DE SESIÓN Y LOGOUT --- */

/* Contenedor principal que ayuda a posicionar el desplegable */
.user-menu-container {
    position: relative;
    /* Base para el posicionamiento absoluto del dropdown */
    display: inline-block;
    /* Ajusta este margen si necesitas moverlo más hacia la derecha */
    margin-right: 15px;
}

/* Estilo del botón principal (Rol/Nombre) */
.user-info-btn {
    /* Color de fondo solicitado */
    background-color: #e6267c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    /* Bordes redondeados */
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.user-info-btn:hover,
.user-info-btn:focus {
    background-color: #b31e5f;
    /* Un color un poco más oscuro al pasar el ratón */
}

/* Estilos de los elementos dentro del botón */
.icon-user {
    margin-right: 8px;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Estilos del menú desplegable */
.menu-user {
    position: absolute;
    top: 100%;
    /* Justo debajo del botón */
    right: 0;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    min-width: 180px;
    border-radius: 5px;
    margin-top: 5px;
    /* Pequeño espacio entre el botón y el menú */
    /* OCULTAR por defecto y manejar con JS/CSS */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.title-preguntas{
 color: var(--color-primario);
}

.seccion-preguntas .container-paragraph {
    background: #f2f2f1;
}

/* Mostrar el menú */
.menu-user.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Estilo de los enlaces (opciones del menú) */
.dropdown-item {
    color: #333;
    padding: 5px 10px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    transition: background-color 0.2s;
    text-align: center;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Rotar la flecha cuando el menú está abierto */
.user-info-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.ct-menu {
    display: flex;
    column-gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .mb-ocultar {
        display: none !important;
    }

    .mb-mostrar {
        display: block;
    }

    .seccion-proyecto .row {
        flex-direction: column-reverse;
    }

    .boton-circular {
        width: 90px;
        height: 90px;
    }

    a.btn-cuadernos.text-center.btn-p {
        right: 5px;
        top: auto;
        bottom: 30%;
    }

    .w-80 {
        width: 100%;
    }

    .col-lg-3.d-flex.flex-column.align-items-center.justify-content-center.gap-4 {
        flex-direction: row !important;
        padding-bottom: 30px;
    }

    h1.text-title {
        font-size: 20px;
    }

    p.btn-descargar a {
        bottom: auto !important;
        max-width: 57% !important;
    }

    .seccion-fases .container-paragraph {
        padding: 4% 5% 0 0;
    }

    p.margin-responsive {
        margin-top: 100px;
    }

    a.btn-cuadernos {
        right: 40%;
        top: auto;
        bottom: 30%;
    }

    .user-info-btn{
        padding: 10px 4px;
        font-size: 0px;
    }

}

/* ----- fin proyecto------*/

.ndfHFb-c4YZDc-Wrql6b-AeOLfc-b0t70b {
    opacity: 0 !important;
}

/* ==== guia de lectura ====*/

p.btn-descargar a {
    text-decoration: none;
    color: var(--color-negro);
    font-weight: bold;
    line-height: 100%;
    display: flex;
    text-align: left;
    vertical-align: middle;
    align-items: center;
    position: absolute;
    bottom: 45px;
    max-width: 22%;
}

/* ===== SECCION CUADERNOS ==== */

.seccion-cuadernos {
    background: url('../img/bg-cuadernos.png') no-repeat center center/cover;
    color: #333;
    padding-bottom: 14% !important;
    /*min-height: 100vh;*/
}

/* Carrusel móvil cuadernos */
.carrusel-mobile {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carrusel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    scrollbar-width: none;
    /* Firefox */
}

.carrusel-track::-webkit-scrollbar {
    display: none;
    /* Oculta scrollbar en Chrome/Safari */
}

.carrusel-track a {
    flex: 0 0 80%;
    scroll-snap-align: start;
    text-align: center;
}

.carrusel-track a img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* Indicadores (bullets) */
.carrusel-indicadores {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
}

.carrusel-indicadores span {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.carrusel-indicadores span.activo {
    background-color: #333;
}


/* ======= Botones de texto animados ======= */
.btn-texto {
    display: inline-block;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-texto::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -3px;
    background-color: #6f42c1;
    transition: width 0.3s ease;
}


.btn-texto:hover::after {
    width: 100%;
}

/* ======= Botones cuadrados ======= */
.boton-cuadrado {
    width: 31%;
    height: 147px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.boton-cuadrado img {
    width: 60%;
    transition: transform 0.3s ease;
}

.boton-cuadrado:hover img {
    transform: scale(1.1);
}

/* Responsivo */
@media (max-width: 992px) {
    .boton-cuadrado {
        height: 163px;
        padding: 5% 10%;
    }

    .btn-texto {
        font-size: 1rem;
    }
}


/*--- Fin cuadernos--*/

/* === FOOTER NUEVO === */
.main-footer {
    margin-top: -40px;
    /* background: white;*/
    text-align: center;
    padding: 40px 30px 20px;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
    overflow: hidden;
}

/* Imagen decorativa superior */
.main-footer::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('../img/bg-bottom.png') center top / cover no-repeat;
}

/* Contenedor de logos */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto 0;
    flex-wrap: wrap;
}

.footer-left img {
    height: 70px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-right img {
    height: 50px;
}

.footer-divider {
    width: 1px;
    height: 50px;
    background-color: var(--color-gris);
}

.footer-right:before {
    content: "Convenio";
    color: var(--color-gris);
}

.footer-left {
    text-align: left;
}

.footer-left img {
    width: 56%;
    height: auto;
    /* max-width: 60%; */
}

@media (max-width: 768px) {
.main-header img.logo {
    width: 211px;
  }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-divider {
        display: none;
    }

    .footer-right img {
        height: 40px;
    }

    body#inicioSesion {
        background: #f2f2f2 url(../img/bg-mb.jpg) no-repeat top center fixed;
        background-size: contain;
        padding-top: 129px;
    }

    .w-50 {
        width: 100% !important;
    }

    section.container-bgHome p.text-end,
    section.container-bgHome .title-miches {
        text-align: center !important;
    }

    .container-txtHome h3 {
        font-size: 20px;
    }

    section.container-bgHome {
        background-position: center;
    }

    .menu-overlay {
        background: url(../img/bg-menu-mb.jpg) center center / cover no-repeat;
    }

    .submenu-toggle i.bi-chevron-right {
        min-width: 30px;
    }
}

.w-60{
    width: 60%;
}

.slide-botones {
    width: 100%;
    /*height: 50px;
    position: relative;
    margin-top: 8%;
    margin-left: -25px;*/
}

.boton {
    position: absolute;
    transform: translateY(-50%);
    padding: 12px 24px;
    font-size: 15px;
    border: none;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.8s ease;
  }

  /* Posiciones iniciales */
  .btn1 {
    left: 5%;
  }

  .btn2 {
    right: 5%;
  }