@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500&display=swap');
:root{
    --color-barra-lateral:#af0a0a;
    --color-acento:#af0a0a;

    --color-texto:rgb(255, 255, 255);
    --color-texto-menu:#ffffff;

    --color-menu-hover:#eeeeee;
    --color-menu-hover-texto:rgb(0,0,0);

    --color-boton:rgb(255,255,255);
    --color-boton-texto:rgb(0,0,0);
    --color-boton-borde:#ffffff;
    --color-boton-hover:#eaeaea;

    --color-linea:rgb(180,180,180);

    --color-switch-base:rgb(173, 173, 173);
    --color-switch-circulo:rgb(241,241,241);

    --color-scroll:rgb(192,192,192);
    --color-scroll-hover:rgb(134,134,134);

    --color-fondo:#f1f1f1;
    --color-opciones:rgb(85,85,85);
}

.dark-mode{
    --color-barra-lateral:rgb(44,45,49);

    --color-texto:rgb(255,255,255);
    --color-texto-menu:rgb(110,110,117);

    --color-menu-hover:rgb(0,0,0);
    --color-menu-hover-texto:rgb(238,238,238);

    --color-boton:rgb(255,255,255);
    --color-boton-texto:rgb(0,0,0);

    --color-linea:rgb(90,90,90);

    --color-switch-base :rgb(216, 46, 46);
    --color-switch-circulo:rgb(255,255,255);

    --color-scroll:rgb(68,69,74);
    --color-scroll-hover:rgb(85,85,85);

    --color-fondo: rgb(211, 211, 211);
    --color-boton-hover: rgb(100, 100, 100);
    --color-opciones: rgb(68,69,74);
}
.DBlue-mode{
    --color-barra-lateral:rgb(29, 37, 67);

    --color-texto:rgb(255,255,255);
    --color-texto-menu:rgb(110,110,117);

    --color-menu-hover:rgb(19, 25, 42);
    --color-menu-hover-texto:rgb(238,238,238);

    --color-boton:rgb(255,255,255);
    --color-boton-texto:rgb(0,0,0);

    --color-linea:rgb(90,90,90);

    --color-switch-base :rgb(68, 66, 98);
    --color-switch-circulo:rgb(255,255,255);

    --color-scroll:rgb(87, 89, 116);
    --color-scroll-hover:rgb(56, 58, 87);

    --color-fondo: rgb(230, 230, 230);
    --color-boton-hover: rgb(100, 100, 100);
    --color-opciones: rgb(27, 35, 63);
    --pruebas: rgb(136, 136, 136);
}

.Blue-mode{
    --color-barra-lateral:#4169E1;

    --color-texto:rgb(255,255,255);
    --color-texto-menu:rgb(255,255,255);

    --color-menu-hover:#2f4db6;
    --color-menu-hover-texto:rgb(238,238,238);

    --color-boton:rgb(255,255,255);
    --color-boton-texto:rgb(0,0,0);

    --color-linea:rgb(90,90,90);

    --color-switch-base:rgb(202, 202, 202);
    --color-switch-circulo:rgb(0,0,0);

    --color-scroll:rgb(56, 92, 192);
    --color-scroll-hover:rgb(42, 69, 147);

    --color-titulo:rgb(255,255,255);
    --color-titulo-hover:rgb(238,238,238);
}

.Gray-mode{
    --color-barra-lateral:rgb(110, 110, 110);

    --color-texto:rgb(255,255,255);
    --color-texto-menu:rgb(255, 255, 255);

    --color-menu-hover:rgb(82, 82, 82);
    --color-menu-hover-texto:rgb(238,238,238);

    --color-boton:rgb(255,255,255);
    --color-boton-texto:rgb(0,0,0);

    --color-linea:rgb(90,90,90);

    --color-switch-base :rgb(163, 163, 163);
    --color-switch-circulo:rgb(255,255,255);

    --color-scroll:rgb(144, 144, 144);
    --color-scroll-hover:rgb(125, 125, 125);

    --color-fondo: rgb(241, 241, 241);
    --color-boton-hover: rgb(100, 100, 100);
    --color-opciones: rgb(110, 110, 110);
}
.Green-mode{
    --color-barra-lateral:rgb(54, 99, 50);

    --color-texto:rgb(255,255,255);
    --color-texto-menu:rgb(255, 255, 255);

    --color-menu-hover:rgb(39, 72, 36);
    --color-menu-hover-texto:rgb(238,238,238);

    --color-boton:rgb(255,255,255);
    --color-boton-texto:rgb(0,0,0);

    --color-linea:rgb(90,90,90);

    --color-switch-base :rgb(163, 163, 163);
    --color-switch-circulo:rgb(255,255,255);

    --color-scroll:rgb(103, 165, 103);
    --color-scroll-hover:rgb(80, 128, 80);

    --color-fondo: rgb(241, 241, 241);
    --color-boton-hover: rgb(39, 70, 36);
    --color-opciones: rgb(54, 99, 50);
}
.Beige-mode{
    --color-barra-lateral:rgb(144, 127, 99);

    --color-texto:rgb(255,255,255);
    --color-texto-menu:rgb(255, 255, 255);

    --color-menu-hover:rgb(120, 105, 81);
    --color-menu-hover-texto:rgb(238,238,238);

    --color-boton:rgb(255,255,255);
    --color-boton-texto:rgb(0,0,0);

    --color-linea:rgb(90,90,90);

    --color-switch-base :rgb(202, 202, 202);
    --color-switch-circulo:rgb(255,255,255);

    --color-scroll:rgb(188, 170, 140);
    --color-scroll-hover:rgb(161, 147, 121);

    --color-fondo: rgb(241, 241, 241);
    --color-boton-hover: rgb(100, 100, 100);
    --color-opciones: rgb(144, 127, 99);
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}
body{
    height: 100vh;
    width: 100%;
    background-color: var(--color-fondo);
}
body.dark-mode{
    height: 100vh;
    width: 100%;
    background-color: var(--color-fondo);
}

/* Botón flotante de ayuda ("?") como en el boceto */
.help-fab:hover{ opacity: .92; }

.formMod{
    display: none;
    pointer-events: none;
}

/*-----------------Menu*/
.nombre-pagina .logo{
    width: 56px;  /* más grande para que se vea */
    height: auto;
    transform: none; /* evita escalado raro */
    margin: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.menu{
    position: fixed;
    width: 50px;
    height: 50px;
    font-size: 30px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--color-boton);
    border: 2px solid var(--color-boton-borde);
    color: var(--color-boton-texto);
    right: 15px;
    top: 15px;
    z-index: 100;
}

/*----------------Barra Lateral*/
.barra-lateral{
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px;
    height: 100%;
    overflow: hidden;
    padding: 20px 15px;
    background-color: var(--color-barra-lateral);
    transition: width 0.5s ease,background-color 0.3s ease,left 0.5s ease;
    z-index: 50;
}

.mini-barra-lateral{
    width: 80px;
}
.barra-lateral span{
    width: 100px;
    white-space: nowrap;
    font-size: 18px;
    text-align: left;
    opacity: 1;
    transition: opacity 0.5s ease,width 0.5s ease;
}
.barra-lateral span.oculto{
    opacity: 0;
    width: 0;
}

/*------------> Nombre de la página */
.barra-lateral .nombre-pagina{
    width: 100%;
    min-height: 52px;
    color: var(--color-texto);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px; /* evita que el logo se encime con el texto */
}

.barra-lateral .nombre-pagina ion-icon{
    min-width: 50px;
    font-size: 40px;
    cursor: pointer;
}
.barra-lateral .nombre-pagina span{
    margin-left: 0px;
    font-size: 25px;
}


/*------------> Botón*/
.barra-lateral .boton{
    width: 100%;
    height: 52px;
    padding: 8px;
    margin-bottom: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 26px;
    background-color: var(--color-boton);
    border: 2px solid var(--color-boton-borde);
    color: var(--color-boton-texto);
    cursor: pointer;
}
.barra-lateral .boton ion-icon{
    min-width: 50px;
    font-size: 25px;
}

/*--------------> Menu Navegación*/
.barra-lateral .navegacion{
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.barra-lateral .navegacion::-webkit-scrollbar{
    width: 0;
}
.barra-lateral .navegacion::-webkit-scrollbar-thumb{
    background-color: var(--color-scroll);
    border-radius: 5px;
}
.barra-lateral .navegacion::-webkit-scrollbar-thumb:hover{
    background-color: var(--color-scroll-hover);
}
.barra-lateral .navegacion li{  
    list-style: none;
    display: flex;
    margin-bottom: 5px;
}
.barra-lateral .navegacion a{
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 26px;
    color: var(--color-texto-menu);
}
.barra-lateral .navegacion a:hover{
    background-color: var(--color-menu-hover);
    color: var(--color-menu-hover-texto);
}
.barra-lateral .navegacion ion-icon{
    min-width: 50px;
    font-size: 20px;
}

/*-----------------> Linea*/
.barra-lateral .linea{
    width: 100%;
    height: 1px;
    margin-top: 15px;
    background-color: var(--color-linea);
}

/*----------------> Modo Oscuro*/
.barra-lateral .modo-oscuro{
    width: 100%;
    margin-bottom: 80px;
    border-radius: 26px;
    display: flex;
    justify-content: space-between;
}
.barra-lateral .modo-oscuro .info{
    width: 150px;
    height: 52px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--color-texto-menu);
}
.barra-lateral .modo-oscuro ion-icon{
    width: 50px;
    font-size: 20px;
}

/*--->switch*/
.barra-lateral .modo-oscuro .switch{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    margin-top: 12px;
    height: 25px;
    cursor: pointer;
}
.barra-lateral .modo-oscuro .base{
    position: relative;
    display: flex;
    align-items: center;
    width: 35px;
    height: 20px;
    background-color: var(--color-switch-base);
    border-radius: 50px;
}
.barra-lateral .modo-oscuro .circulo{
    position: absolute;
    width: 18px;
    height: 90%;
    background-color: var(--color-switch-circulo);
    border-radius: 50%;
    left: 2px;
    transition: mover 0.5s ease;
}
.barra-lateral .modo-oscuro .circulo.prendido{
    left: 15px;
}

/*---------------> Usuario*/
.barra-lateral .usuario{
    width: 100%;
    display: flex;
}
.barra-lateral .usuario .icon{
    width: 50px;
    min-width: 50px;
    border-radius: 26px;
}
.barra-lateral .usuario .info-usuario{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-texto);
    overflow: hidden;
}
.info-usuario ion-icon{
    color: var(--color-texto);
}
.barra-lateral .usuario .nombre-email{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}
.barra-lateral .usuario .nombre{
    font-size: 15px;
    font-weight: 600;
}
.barra-lateral .usuario .email{
    font-size: 13px;
}
.barra-lateral .usuario ion-icon{
    font-size: 20px;
}


/*-------------main*/

#actual{
    background-color: var(--color-menu-hover);
    color: var(--color-menu-hover-texto);
}

main{
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.5s ease;
}
main.min-main{
    margin-left: 80px;
}



/*------------------> Responsive*/
@media (max-height: 660px){
    .barra-lateral .nombre-pagina{
        margin-bottom: 5px;
    }
    .barra-lateral .modo-oscuro{
        margin-bottom: 3px;
    }
}
@media (max-width: 742px){
    .barra-lateral{
        position: fixed;
        left: -250px;
    }
    .max-barra-lateral{
        left: 0;
    }
    .menu{
        display: flex;
    }
    .menu ion-icon:nth-child(2){
        display: none;
    }
    main{
        margin-left: 0;
    }
    main.min-main{
        margin-left: 0;
    }
}



/* Contacto (Ayuda) */
.contact-form{max-width:720px;margin:0 auto;}
.contact-form .cf-row{display:flex;flex-direction:column;gap:6px;margin:10px 0;}
.contact-form input,.contact-form textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #d7d7d7;
    border-radius:10px;
    outline:none;
    font-size:14px;
    background:#fff;
    color:#111;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea{
    background:#111;
    color:#f1f1f1;
    border-color:#2b2b2b;
}
.contact-form .cf-actions{margin-top:12px;display:flex;justify-content:flex-end;}
.contact-form .btn-cf{
    padding:10px 18px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
    background:#af0a0a;
    color:#fff;
}
body.dark-mode .contact-form .btn-cf{background:#af0a0a;color:#fff;}
.msg-ok,.msg-err{padding:10px 12px;border-radius:10px;margin:10px 0;font-weight:600;}
.msg-ok{background:#e8f7ea;color:#0b6b1f;border:1px solid #bfe8c7;}
.msg-err{background:#fdecec;color:#8a0f0f;border:1px solid #f4bcbc;}
body.dark-mode .msg-ok{background:#0f2515;color:#9fe6b0;border-color:#1f4a2b;}
body.dark-mode .msg-err{background:#2a0f0f;color:#ffb3b3;border-color:#4a1f1f;}
.cf-direct{margin-top:14px;font-size:13px;opacity:.9;}

/* Botón de ayuda (solo círculo) */
.help-fab-box{
    position: fixed;
    right: 24px;
    top: 24px;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: block;
    text-decoration: none;
    z-index: 9999;
}
.help-fab{

    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}



.btn-calif-top{
    position: fixed;
    top: 18px;
    right: 24px;
    background:#af0a0a;
    color:#fff;
    padding:10px 18px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    z-index:10000;
}
.btn-calif-top:hover{opacity:.9;}
