* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}


/* ======================================================
   LOGIN ALUMNO
====================================================== */

.alumno-login-body {
    min-height: 100vh;
    background: #fff4b8;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.alumno-login {
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.alumno-logo {
    margin-bottom: 30px;
    font-size: 26px;
}

.alumno-logo span {
    display: block;
}

.alumno-logo strong {
    display: block;
    font-size: 38px;
    color: #e7422d;
}

.login-alumno-card {
    background: white;
    border-radius: 28px;
    padding: 40px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.login-musica {
    width: 80px;
    height: 80px;

    margin: 0 auto 15px;

    border-radius: 50%;
    background: #ffe46b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
}

.login-alumno-card h1 {
    font-size: 38px;
    margin-bottom: 5px;
}

.login-alumno-card > p {
    color: #697188;
    margin-bottom: 25px;
}

.alumno-form-group {
    text-align: left;
    margin-bottom: 18px;
}

.alumno-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
}

.alumno-form-group input {
    width: 100%;
    padding: 15px;

    border: 2px solid #e3e5ea;
    border-radius: 12px;

    font-size: 17px;
}

.alumno-boton {
    width: 100%;

    border: none;
    border-radius: 14px;

    padding: 16px;

    background: #f05a35;
    color: white;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;
}

.alumno-error {
    background: #fff0f0;
    color: #b42318;

    padding: 12px;
    border-radius: 10px;

    margin-bottom: 20px;
}


/* ======================================================
   ACAMARI GENERAL
====================================================== */

.acamari-body {
    min-height: 100vh;

    background: #fff7d8;
    color: #25304a;
}


/* ======================================================
   HEADER
====================================================== */

.acamari-header {
    min-height: 118px;

    padding: 14px 5%;

    background: linear-gradient(
        90deg,
        #ffd34f,
        #ffe37d
    );

    display: grid;

    grid-template-columns:
        220px
        minmax(420px, 1fr)
        auto;

    align-items: center;
    gap: 25px;
}

.acamari-logo {
    line-height: 1;
}

.acamari-logo span {
    display: block;

    font-size: 22px;
    font-weight: 700;

    color: #3b3129;
}

.acamari-logo strong {
    display: block;
    margin-top: 3px;

    font-size: 31px;
    color: #e5402d;
}

.acamari-perfil {
    display: flex;
    align-items: center;
    gap: 15px;
}

.acamari-avatar {
    width: 78px;
    height: 78px;

    flex-shrink: 0;

    border-radius: 50%;
    background: white;

    border: 4px solid rgba(
        255,
        255,
        255,
        0.85
    );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    box-shadow: 0 3px 8px rgba(
        0,
        0,
        0,
        0.08
    );
}

.acamari-info {
    width: min(100%, 520px);
}

.acamari-saludo {
    display: block;

    margin-bottom: 2px;

    font-size: 29px;
    line-height: 1;

    color: #3a2c22;
}

.acamari-datos {
    display: block;

    margin-bottom: 10px;

    font-size: 16px;
    font-weight: 600;

    color: #463a30;
}

.acamari-progreso-header {
    display: grid;

    grid-template-columns:
        minmax(180px, 400px)
        28px
        50px;

    align-items: center;
    gap: 8px;
}

.barra-header {
    width: 100%;
    height: 15px;

    overflow: hidden;

    background: rgba(
        255,
        255,
        255,
        0.92
    );

    border-radius: 20px;
}

.barra-header-activa {
    height: 100%;

    background: #2485c7;
    border-radius: 20px;
}

.estrella-header {
    color: #f1a900;

    font-size: 26px;
    line-height: 1;

    text-align: center;
}

.porcentaje-header {
    color: #1883c4;
    font-size: 20px;
}

.acamari-header-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-nivel,
.boton-ajustes {
    min-height: 44px;

    border: none;
    border-radius: 22px;

    padding: 0 16px;

    background: rgba(
        255,
        255,
        255,
        0.82
    );

    display: flex;
    align-items: center;
    justify-content: center;

    color: #49382e;

    font-size: 15px;
    font-weight: 700;
}

.boton-ajustes {
    cursor: pointer;
}


/* ======================================================
   CONTENIDO
====================================================== */

.acamari-main {
    width: min(1380px, 96%);

    margin: auto;

    padding: 28px 0 60px;
}


/* ======================================================
   TITULO MÓDULOS
====================================================== */

.titulo-modulos {
    text-align: center;
    margin-bottom: 18px;
}

.titulo-modulos h1 {
    font-size: 31px;
    color: #3e3027;
}


/* ======================================================
   MÓDULOS
====================================================== */

.modulos-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 14px;

    margin-bottom: 30px;
}

.modulo-boton {
    min-height: 310px;

    border: 4px solid transparent;
    border-radius: 22px;

    background: white;

    padding: 0;

    overflow: hidden;

    cursor: pointer;

    position: relative;

    display: grid;

    grid-template-rows:
        1fr
        auto
        auto;

    color: #25304a;

    box-shadow: 0 6px 18px rgba(
        0,
        0,
        0,
        0.07
    );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.modulo-boton:hover:not(:disabled) {
    transform: translateY(-3px);
}

.modulo-boton.activo {
    border-color: #67b64d;
}

.modulo-numero {
    position: absolute;

    top: 8px;
    left: 8px;

    z-index: 2;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #68b34d;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 800;

    border: 3px solid white;
}

.modulo-imagen {
    min-height: 205px;

    background: #dff3c5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 54px;

    color: rgba(
        37,
        48,
        74,
        0.28
    );
}

.modulo-titulo {
    min-height: 64px;

    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.15;

    background: white;
}

.modulo-estado {
    min-height: 43px;

    padding: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-top: 1px solid #eeeeee;

    font-size: 13px;
    font-weight: 700;

    background: #fafafa;
}

.modulo-completado .modulo-imagen {
    background: #dff3c5;
}

.modulo-completado .modulo-estado {
    color: #4f963a;
}

.modulo-en_progreso .modulo-imagen,
.modulo-disponible .modulo-imagen {
    background: #ffe0c8;
}

.modulo-en_progreso .modulo-numero,
.modulo-disponible .modulo-numero {
    background: #f07a37;
}

.modulo-en_progreso .modulo-estado,
.modulo-disponible .modulo-estado {
    color: #d4682e;
}

.modulo-bloqueado {
    opacity: 0.62;
    cursor: default;
}

.modulo-bloqueado .modulo-imagen {
    background: #e5e2ea;
}

.modulo-bloqueado .modulo-numero {
    background: #9d8baa;
}

.modulo-bloqueado .modulo-estado {
    color: #83788d;
}


/* ======================================================
   ZONA INFERIOR
====================================================== */

.zona-modulo {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        190px;

    align-items: stretch;

    gap: 18px;
}


/* ======================================================
   PANEL DEL MÓDULO
====================================================== */

.modulos-contenido {
    width: 100%;
}

.modulo-panel {
    display: none;

    width: 100%;
    min-height: 330px;

    background: white;

    border-radius: 30px;

    padding: 28px 34px;

    grid-template-columns:
        280px
        minmax(0, 1fr);

    align-items: center;

    gap: 30px;

    box-shadow: 0 8px 24px rgba(
        0,
        0,
        0,
        0.08
    );
}

.modulo-panel.visible {
    display: grid;
}


/* ======================================================
   PERSONAJE
====================================================== */

.modulo-personaje {
    min-height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.personaje-placeholder {
    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: #e7f5cc;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 72px;

    color: rgba(
        37,
        48,
        74,
        0.25
    );
}


/* ======================================================
   INFORMACIÓN DEL MÓDULO
====================================================== */

.modulo-panel-info {
    width: 100%;
    min-width: 0;
}

.modulo-panel-encabezado {
    text-align: left;
    margin-bottom: 18px;
}

.modulo-panel-encabezado span {
    color: #f05a35;

    font-size: 14px;
    font-weight: 700;
}

.modulo-panel-encabezado h2 {
    margin-top: 4px;

    font-size: 34px;

    color: #313b57;
}


/* ======================================================
   RUTA DE APRENDIZAJE
====================================================== */

.ruta-contenedor {
    width: 100%;
    position: relative;

    overflow-x: hidden;

    padding: 0 4px 16px;
    margin-bottom: 14px;
}

.ruta-secciones {
    min-width: 720px;

    display: flex;
    align-items: flex-start;

    gap: 24px;

    position: relative;

    z-index: 2;
}

.ruta-linea {
    position: absolute;

    left: 32px;
    right: 32px;

    top: 99px;

    height: 12px;

    background: #20365f;

    border-radius: 20px;

    z-index: 1;
}

.ruta-linea::before {
    content: "";

    position: absolute;

    left: -7px;
    top: -8px;

    width: 10px;
    height: 28px;

    background: #20365f;
}

.ruta-linea::after {
    content: "";

    position: absolute;

    right: -8px;
    top: -10px;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #20365f;
}

.ruta-seccion {
    flex-shrink: 0;
}

.ruta-seccion-aprendizaje {
    width: 300px;
}

.ruta-seccion-practica {
    width: 300px;
}

.ruta-seccion-evaluacion {
    width: 145px;
}

.ruta-seccion h3 {
    height: 42px;

    margin-bottom: 12px;

    text-align: center;

    font-size: 24px;
    color: #121212;
}

.ruta-recursos {
    display: flex;

    align-items: flex-start;
    justify-content: center;

    gap: 20px;
}

.ruta-recurso {
    width: 130px;

    position: relative;

    z-index: 3;

    text-align: center;
}

.ruta-recurso-enlace {
    width: 110px;
    height: 145px;

    margin: 0 auto 12px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ruta-recurso-enlace:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 18px rgba(
        0,
        0,
        0,
        0.14
    );
}

.ruta-recurso-enlace.bloqueado {
    cursor: default;
}

.ruta-recurso-enlace.bloqueado:hover {
    transform: none;
    box-shadow: none;
}

.ruta-recurso-icono {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(
        255,
        255,
        255,
        0.75
    );

    font-size: 28px;
    font-weight: 900;
}

.ruta-recurso-titulo {
    display: block;

    min-height: 42px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;

    color: #1f1f1f;
}


/* ======================================================
   COLORES POR TIPO
====================================================== */

.ruta-recurso-aprendizaje
.ruta-recurso-enlace {
    background: #78c354;
}

.ruta-recurso-practica
.ruta-recurso-enlace {
    background: #55acd7;
}

.ruta-recurso-evaluacion
.ruta-recurso-enlace {
    background: #d9d9d9;
}


/* ======================================================
   ESTADOS
====================================================== */

.ruta-recurso-completado
.ruta-recurso-enlace {
    background: #78c354;
}

.ruta-recurso-disponible
.ruta-recurso-enlace {
    box-shadow: 0 0 0 5px rgba(
        255,
        255,
        255,
        0.9
    );
}

.ruta-recurso-bloqueado
.ruta-recurso-enlace {
    background: #dedede;

    color: #929292;
}

.ruta-recurso-bloqueado
.ruta-recurso-icono {
    background: #cccccc;

    color: #929292;
}


/* ======================================================
   RESUMEN
====================================================== */



/* ======================================================
   LABORATORIO MUSICAL
====================================================== */

.laboratorio-musical {
    min-height: 330px;

    border: none;
    border-radius: 28px;

    background: linear-gradient(
        180deg,
        #8754c7,
        #6635a5
    );

    color: white;

    padding: 24px 14px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    box-shadow: 0 8px 22px rgba(
        77,
        45,
        120,
        0.22
    );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.laboratorio-musical:hover {
    transform: translateY(-3px);

    box-shadow: 0 12px 26px rgba(
        77,
        45,
        120,
        0.28
    );
}

.laboratorio-icono {
    width: 92px;
    height: 92px;

    margin-bottom: 8px;

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        0.16
    );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 48px;
}

.laboratorio-musical strong {
    font-size: 20px;
}

.laboratorio-musical > span:last-child {
    font-size: 20px;
    font-weight: 700;
}


/* ======================================================
   MENSAJE DEL LABORATORIO
====================================================== */

.laboratorio-mensaje {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 1000;

    background: rgba(
        30,
        24,
        44,
        0.5
    );

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.laboratorio-mensaje.visible {
    display: flex;
}

.laboratorio-mensaje-contenido {
    width: min(380px, 92%);

    position: relative;

    background: white;

    border-radius: 26px;

    padding: 38px 28px;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 10px;

    text-align: center;

    box-shadow: 0 16px 45px rgba(
        0,
        0,
        0,
        0.18
    );
}

.laboratorio-cerrar {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #f0edf4;

    font-size: 24px;

    cursor: pointer;
}

.laboratorio-mensaje-icono {
    width: 90px;
    height: 90px;

    border-radius: 50%;

    background: #eee4fb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 46px;
}

.laboratorio-mensaje-contenido strong {
    font-size: 23px;

    color: #553584;
}

.laboratorio-mensaje-contenido > span {
    color: #777;

    font-size: 16px;
}


/* ======================================================
   SIN RECURSOS
====================================================== */

.sin-recursos {
    padding: 30px;

    text-align: center;

    color: #8d8d8d;

    font-size: 18px;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1100px) {

    .acamari-header {
        grid-template-columns:
            180px
            1fr;
    }

    .acamari-header-acciones {
        grid-column: 1 / -1;

        justify-content: flex-end;
    }

    .modulos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zona-modulo {
        grid-template-columns: 1fr;
    }

    .laboratorio-musical {
        min-height: 150px;
    }

    .modulo-panel {
        grid-template-columns:
            220px
            minmax(0, 1fr);
    }

    @media (max-width: 800px) {
    .ruta-contenedor {
        overflow-x: auto;
    }
}

    .personaje-placeholder {
        width: 190px;
        height: 190px;
    }

}


@media (max-width: 800px) {

    .modulo-panel {
        grid-template-columns: 1fr;
    }

    .modulo-personaje {
        min-height: auto;
    }

    .modulo-panel-encabezado {
        text-align: center;
    }

}


@media (max-width: 750px) {

    .acamari-header {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .acamari-logo {
        text-align: center;
    }

    .acamari-perfil {
        justify-content: center;
    }

    .acamari-info {
        width: 100%;
    }

    .acamari-header-acciones {
        grid-column: auto;
        justify-content: center;
    }

}


@media (max-width: 550px) {

    .acamari-perfil {
        align-items: flex-start;
    }

    .acamari-avatar {
        width: 60px;
        height: 60px;

        font-size: 26px;
    }

    .acamari-saludo {
        font-size: 23px;
    }

    .acamari-progreso-header {
        grid-template-columns:
            1fr
            24px
            45px;
    }

    .modulos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modulo-panel {
        padding: 22px 16px;
    }

    .personaje-placeholder {
        width: 170px;
        height: 170px;
    }


}