*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: Arial,Sans-serif;
    background-color: #0b1729;
    color: white;
}

header{
    padding: 20px 7%;
    background-color: #10243a;
}
header h2{
    color: #63e6df;
    letter-spacing: 3px;
    margin: 0;
}

main {
    min-height: 85vh;
    padding: 40px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

main h1{
    font-size: clamp(36px, 6vw, 64px);
    max-width: 700px;
    margin-bottom: 20px;
}

main p{
    font-size: 18px;
    color: #bdd0df;
    max-width: 500px;
    line-height: 1.7;
}

button{
    margin-top: 25px;
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    background-color: #63e6df;
    color: #0b1729;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover{
    background-color: #a3fff5;
    transform: translateY(-2px);
}

@media(max-width: 600px){
    main{
        align-items: center;
        text-align: center;
    }

    main h1{
        font-size: 36px;
    }
}
.portada {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.personaje {
    display: flex;
    justify-content: center;
    align-items: center;
}

#nevy-animacion {
    width: 100%;
    max-width: 400px;
    height: 400px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px dashed #63e6df;
    border-radius: 25px;

    color: #63e6df;
    text-align: center;
}

@media (max-width: 768px) {

    .portada {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .presentacion {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #nevy-animacion {
        height: 280px;
    }
}

body {
    background: linear-gradient(
        180deg,
        #edf9ff 0%,
        #d9effb 55%,
        #eaf8ff 100%
    );

    color: #173653;
}

/* Barra superior */

header {
    background: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid #c7e5f3;
}

.logo-nevy {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Títulos y textos */

main h1 {
    color: #173653;
}

main p {
    color: #54738b;
}

/* Botón principal */

button {
    background-color: #84dbe7;
    color: #173653;
    box-shadow: 0 6px 20px #83c7de50;
}

button:hover {
    background-color: #a7ebf1;
}

/* Contenedor de Nevy */

#nevy-animacion {
    background: rgba(255, 255, 255, 0.45);
    border: 2px dashed #9bd1e5;
    color: #54738b;
}

/* Menú de navegación */

.barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 5%;
}

.logo-nevy {
    width: clamp(170px, 22vw, 290px);
    height: auto;
    display: block;
}

.menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: #173653;
    font-weight: bold;
}

.menu .ingresar {
    background: #84dbe7;
    padding: 12px 22px;
    border-radius: 12px;
}

.menu .ingresar:hover {
    background: #65c9dd;
}

/* Adaptación a celulares */

@media (max-width: 600px) {
    .barra {
        padding: 12px 4%;
        gap: 10px;
    }

    .logo-nevy {
        width: 155px;
    }

    .menu {
        gap: 10px;
    }

    .menu a {
        font-size: 13px;
    }

    .menu .ingresar {
        padding: 10px 13px;
    }
}

.personaje {
    position: relative;
    width: 100%;
    min-height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nevy-portada {
    width: 100%;
    max-width: 440px;
    height: auto;
    object-fit: contain;
}

/* Tarjeta matemática flotante */

.tarjeta-ejercicio {
    position: absolute;
    bottom: 15px;
    right: 0;

    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 20px;

    box-shadow: 0 12px 30px #7daec340;
    text-align: center;
    min-width: 200px;
}

.tarjeta-etiqueta {
    font-size: 13px;
    color: #54738b;
}

.tarjeta-ejercicio h3 {
    font-size: 26px;
    color: #173653;
    margin: 12px 0;
}

.respuestas {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.respuestas span {
    background: #e0f5fc;
    padding: 9px 14px;
    border-radius: 10px;
    color: #173653;
    font-weight: bold;
}

/* Celulares */

@media (max-width: 768px) {
    .personaje {
        flex-direction: column;
        min-height: auto;
        gap: 12px;
    }

    .nevy-portada {
        max-width: 300px;
    }

    .tarjeta-ejercicio {
        position: static;
        width: min(100%, 300px);
    }
}

.boton-comenzar {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 35px;
    background-color: #84dbe7;
    color: #173653;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 6px 20px #83c7de50;
    transition: 0.2s ease;
}

.boton-comenzar:hover {
    background-color: #a7ebf1;
    transform: translateY(-2px);
}


/* ===== PÁGINA DE LOGIN ===== */

.pagina-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 30px 20px;
}

.caja-login {
    width: 100%;
    max-width: 430px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(80, 140, 170, 0.15);
    box-sizing: border-box;
}

.caja-login h1 {
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 15px;
}

.caja-login p {
    font-size: 15px;
    text-align: center;
    margin: 0 0 20px;
}

#formulario-login,
#formulario-registro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#formulario-login label,
#formulario-registro label {
    font-weight: bold;
    font-size: 14px;
}

#formulario-login input,
#formulario-registrarse input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #c5dfea;
    border-radius: 12px;
    font-size: 15px;
    outline-color: #84dbe7;
}

#formulario-login button,
#formulario-registrarse button {
    width: 100%;
    margin-top: 12px;
}

.separador-login {
    text-align: center;
    margin: 20px 0;
    color: #7895a8;
}

.boton-google {
    width: 100%;
    margin-top: 0;
    background: white;
    border: 1px solid #c5dfea;
}

.registro-login {
    margin-top: 22px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 480px) {
    .caja-login {
        padding: 25px 20px;
    }
}
.campo-contrasena {
    position: relative;
}

.campo-contrasena input {
    padding-right: 100px !important;
}

#formulario-login #mostrar-contrasena {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: auto;
    margin: 0;
    padding: 8px 10px;

    background: transparent;
    box-shadow: none;
    font-size: 13px;
}

.imagen-estado-nevy{
    width: 180px;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
}

.boton-volver{
    display: inline-block;
    margin-top: 20px;
    padding: 14px 24px;
    background-color: #84dbe7;
    color: #173653;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
}

.boton-volver:hover{
    background-color: #a7ebf1;
}

#estado-login {
    text-align: center;
    color: #376b89;
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.5;
}

.pagina-perfiles {
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 45px 5%;
}

.encabezado-perfiles {
    text-align: center;
    margin-bottom: 35px;
}

.encabezado-perfiles h1 {
    font-size: clamp(30px, 4vw, 46px);
    color: #173653;
    margin-bottom: 12px;
}

.encabezado-perfiles p {
    color: #54738b;
    font-size: 17px;
}

.contenedor-perfiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1100px;
}

.tarjeta-perfil {
    padding: 25px;
    border-radius: 24px;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.tarjeta-perfil:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px #729dbb35;
}

/* Los tres colores */

.estudiante {
    background-color: #c8ecfc;
}

.docente {
    background-color: #ded7fa;
}

.tutor {
    background-color: #ffe6d3;
}

/* Imágenes */

.tarjeta-perfil img {
    width: 100%;
    height: 230px;
    object-fit: contain;
}

/* Textos */

.tarjeta-perfil h2 {
    font-size: 24px;
    color: #173653;
    margin: 15px 0 10px;
}

.tarjeta-perfil p {
    color: #456b82;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Botones */

.tarjeta-perfil .boton-rol {
    width: 100%;
    background-color: white;
    color: #173653;
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
}

.aviso-perfil {
    text-align: center;
    color: #54738b;
    margin-top: 30px;
    font-size: 14px;
}

#resultado-rol {
    text-align: center;
    color: #173653;
    font-weight: bold;
    margin-top: 15px;
}

/* Diseño para celulares */

@media (max-width: 768px) {

    .contenedor-perfiles {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .tarjeta-perfil img {
        height: 200px;
    }

}

[hidden] {
    display: none !important;
}

#confirmacion-perfil {
    background: white;
    padding: 30px;
    border-radius: 22px;
    margin-top: 25px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px #729dbb25;
}

#formulario-perfil {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#codigo-docente {
    padding: 13px;
    border: 1px solid #b8dbe9;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.aceptar-perfil {
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    font-size: 14px;
}

#guardar-rol {
    margin-top: 5px;
}

#guardar-rol:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.barra {
    width: 100%;
    min-height: 105px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 5%;

    background: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid #c7e5f3;
}

/* Logo con tamaño uniforme */

.barra .logo-nevy {
    width: 240px;
    height: 80px;
    max-width: 100%;

    object-fit: contain;
    object-position: left center;

    display: block;
}

/* Adaptación a celulares */

@media (max-width: 600px) {

    .barra {
        min-height: 85px;
        padding: 10px 4%;
    }

    .barra .logo-nevy {
        width: 170px;
        height: 60px;
    }

}

main.panel-docente {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 45px 5%;
}

.bienvenida-docente {
    margin-bottom: 35px;
}

.bienvenida-docente h1 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 12px;
}

.herramientas-docente {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.herramienta {
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px #729dbb20;
}

.herramienta span {
    font-size: 35px;
}

.herramienta h2 {
    font-size: 22px;
    color: #173653;
}

.herramienta p {
    font-size: 15px;
    color: #54738b;
}

.herramienta small {
    color: #648da3;
}

.espacio-ia {
    margin-top: 35px;
    padding: 30px;
    border-radius: 24px;
    background: #ded7fa;
}

.espacio-ia h2 {
    color: #43366e;
}

.espacio-ia p {
    color: #605580;
}

#estado-docente {
    text-align: center;
    padding: 20px;
}

/* Celulares */

@media (max-width: 768px) {

    .herramientas-docente {
        grid-template-columns: 1fr;
    }

    .espacio-ia {
        padding: 22px;
    }

}