@font-face {
    font-family: 'Square Game';
    src: url('../fonts/square_game/Square Game.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f8fc;
    color: #1e2340;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

button {
    font-family: inherit;
    cursor: pointer;
}

header {
    width: 100%;
    padding: 20px 7%;
    display: flex;
    text-align: center;
    justify-content: space-between;
    background-color: white;
    border-bottom: 1px solid #e8e9f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Square Game', sans-serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 1px;
    color: #5b4bdb;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    justify-content: center;
    text-decoration:wavy;
    color: #4b4f68;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #5b4bdb;
}

.acciones {
    display: flex;
    gap: 12px;
}

.acciones button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
}

.acciones button:first-child {
    background-color: transparent;
    color: #5b4bdb;
}

.acciones button:last-child {
    background-color: #5b4bdb;
    color: white;
}

.hero {
    min-height: 650px;
    padding: 90px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    position: relative;
    overflow: hidden;
    background: #191d38;
}
 .overlay-hero {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 40, 0.58);
    z-index: 1;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}


.etiqueta {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: 'poppins';
    font-size: 70px;
    line-height: 1.05;
    margin: 20px 0;
    color: #ffffff;
}

.hero-text p {
    font-size: 18px;
    color: #ffffff;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-principal,
.btn-secundario {
    padding: 14px 25px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
}

.btn-principal {
    background-color: #5b4bdb;
    color: white;
}

.btn-secundario {
    background-color: white;
    color: #5b4bdb;
    border: 1px solid #dcddec;
}


.hero-card {
    width: 400px;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(50, 45, 100, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 18px;
}

.card-header span {
    font-size: 28px;
}

.materia {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.materia span {
    font-weight: 600;
}

.materia small {
    color: #777b90;
}

.barra {
    width: 100%;
    height: 8px;
    background-color: #e9eaf2;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progreso {
    width: 85%;
    height: 100%;
    background-color: #5b4bdb;
    border-radius: 10px;
}

.progreso-2 {
    width: 60%;
}

.recomendacion {
    background-color: #f2f0ff;
    padding: 18px;
    border-radius: 12px;
    margin-top: 10px;
}

.recomendacion p {
    color: #686c80;
    margin-top: 5px;
}

.funciones {
    padding: 100px 7%;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: #190c77;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 45px;
    line-height: 1.15;
    margin-top: 15px;
    color: #191d38;
}

.funciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.funcion-card {
    padding: 30px;
    border: 1px solid #e7e7ef;
    border-radius: 15px;
    transition: 0.3s;
}

.funcion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(50, 45, 100, 0.08);
}

.icono {
    font-size: 35px;
    margin-bottom: 20px;
}

.funcion-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.funcion-card p {
    color: #6c7083;
}


.nosotros {
    padding: 120px 7%;
    text-align: center;
    background-color: #f2f0ff;
}

.nosotros > span {
    font-size: 45px;
    color: #302779;
    font-weight: 700;
    letter-spacing: 2px;
}

.nosotros h2 {
    font-size: 45px;
    line-height: 1.2;
    margin: 15px 0;
}

.nosotros p {
    max-width: 650px;
    margin: auto;
    color: #666b80;
    font-size: 17px;
}

footer {
    padding: 40px 7%;
    align-items: start;
    text-align: center;
    background-color: #191d38;
    color: white;
    justify-content: space-between;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.logo-footer {
    margin: 30px;
    margin-bottom: 10px;
    text-align: center;
}

footer strong {
    font-family: 'poppins';
    font-size: 25px;
}

footer p {
    display: block;
    font-weight: 700;
    color: #c4c6d2;
    margin: 10px 0;
    text-align: center;
    justify-content: center;
}
.contacto {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: left;
}
.contacto h5 {
    margin-bottom: 25px;
    font-family: 'poppins';
    font-size: 30px;
    justify-content: left;

}

.contacto p {
    display: block;
    text-align: left;
    justify-content: left;
    font-weight: 700;
    color: #c4c6d2;
    margin: 10px 0;
}

.redes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-content: right;
}
.redes h4 {
    margin:  0 0 10px 0;
    margin-bottom: 10px;
    font-family: 'poppins';
    font-size: 30px;
    justify-content: right;
}

.redes p {
    margin: 0;
    display: block;
    text-align: right;
    justify-content: right;
    font-weight: 700;
    color: #c4c6d2;
    margin: 10px 0;
}

footer small {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #9296aa;
}

@media (max-width: 900px) {

    header {
        padding: 20px 5%;
    }

    nav {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 70px 5%;
    }

    .hero-text p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-card {
        width: 100%;
        max-width: 400px;
    }

    .funciones-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .hero h1 {
        font-size: 48px;
    }

    .section-title h2,
    .nosotros h2 {
        font-size: 35px;
    }

    .acciones button {
        padding: 8px 12px;
        font-size: 12px;
    }

}

.pantalla-registro {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.formulario-registro {
    width: 100%;
    max-width: 450px;
    padding: 35px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.formulario-registro h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
}

.formulario-registro p {
    text-align: center;
    margin-bottom: 28px;
    color: #666;
}

.formulario-registro form {
    display: flex;
    flex-direction: column;
}

.formulario-registro label {
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

.formulario-registro input,
.formulario-registro select {
    padding: 13px 14px;
    margin-bottom: 18px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    font-size: 15px;
    background: #fafafa;
    outline: none;
    transition: 0.2s;
}

.formulario-registro input:focus,
.formulario-registro select:focus {
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.btn-registrarse {
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
    background: #7c3aed;
    color: white;
    transition: 0.2s;
}

.btn-registrarse:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}
.pantalla-registro {
    display: none;
}

#datos-academicos {
    display: flex;
    flex-direction: column;
}

#datos-academicos label {
    margin-bottom: 7px;
}

#datos-academicos input,
#datos-academicos select {
    width: 100%;
    box-sizing: border-box;
}

.pantalla-inicio {
    display: none;
}

.pantalla-opciones {
    display: none;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.opciones-usuario {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-usuario {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.hero-formularios {
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2;
}

.hero-formularios .pantalla-opciones {
    width: 100%;
    min-height: auto;
    padding: 0;
}

.hero-formularios .formulario-registro {
    width: 100%;
}

#mensaje-registro {
    display: none;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
/* =========================================
   MODALES LOGIN Y REGISTRO
========================================= */

#tipo-login,
#tipo-registro,
#login,
#registro {
    position: fixed !important;
    inset: 0;

    width: 100vw !important;
    min-height: 100vh !important;

    align-items: center;
    justify-content: center;

    padding: 20px !important;

    background: rgba(15, 17, 40, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 5000;
}


/* El tablero blanco */

#tipo-login .formulario-registro,
#tipo-registro .formulario-registro,
#login .formulario-registro,
#registro .formulario-registro {
    position: relative;

    width: 100%;
    max-width: 450px;

    max-height: 90vh;
    overflow-y: auto;

    background: white;

    border-radius: 20px;
    padding: 35px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);

    z-index: 5001;
}
.redes a {
    color: #c4c6d2;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.redes a:hover {
    color: #ffffff;
}
/* =========================================
   PREGUNTAS FRECUENTES
========================================= */


/* PESTAÑA LATERAL */

.faq-pestana {
   left: 0;
   right: auto;
   top: 110px;
   transform: none;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 13px 18px;

    background: #5b4bdb;
    color: white;

    border: none;
    border-radius: 0 14px 14px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    z-index: 3000;

    box-shadow: 0 8px 25px rgba(50, 40, 130, 0.25);

    transition: 0.25s ease;
}

.faq-pestana:hover {
    padding-right: 24px;
    background: #4d3fc5;
}

.faq-pestana span {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.18);

    border-radius: 50%;

    font-size: 15px;
    font-weight: 700;
}


/* FONDO OSCURO */

.faq-fondo {
    position: fixed;
    inset: 0;

    background: rgba(18, 20, 45, 0.35);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;

    z-index: 3999;

    transition: 0.3s ease;
}

.faq-fondo.activo {
    opacity: 1;
    visibility: visible;
}


/* PANEL */

.faq-panel {
    position: fixed;

    top: 0;
    right: -520px;

    width: min(480px, 100%);
    height: 100vh;

    background: #f7f8fc;

    z-index: 4000;

    padding: 35px 30px;

    overflow-y: auto;

    box-shadow: -15px 0 45px rgba(30, 35, 64, 0.15);

    transition: right 0.35s ease;
}

.faq-panel.activo {
    right: 0;
}


/* ENCABEZADO */

.faq-encabezado {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 10px;
}

.faq-etiqueta {
    display: block;

    color: #5b4bdb;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    margin-bottom: 5px;
}

.faq-encabezado h2 {
    margin: 0;

    color: #191d38;

    font-size: 27px;
}


/* BOTÓN CERRAR */

.faq-cerrar {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border: none;
    border-radius: 50%;

    background: #eeecff;
    color: #5b4bdb;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;
}

.faq-cerrar:hover {
    background: #5b4bdb;
    color: white;
}


/* INTRODUCCIÓN */

.faq-introduccion {
    color: #666b80;

    font-size: 14px;
    line-height: 1.6;

    margin: 0 0 25px;
}


/* CADA PREGUNTA */

.faq-item {
    background: white;

    border: 1px solid #e7e7ef;
    border-radius: 15px;

    margin-bottom: 12px;

    overflow: hidden;

    transition: 0.2s ease;
}

.faq-item:hover {
    border-color: #d5d0ff;
}

.faq-item.abierto {
    border-color: #c9c2ff;

    box-shadow: 0 5px 18px rgba(91, 75, 219, 0.08);
}


/* BOTÓN DE PREGUNTA */

.faq-pregunta {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    border: none;
    background: transparent;

    color: #252943;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}


/* + */

.faq-flecha {
    min-width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f2f0ff;
    color: #5b4bdb;

    font-size: 19px;
    font-weight: 400;

    transition: 0.25s ease;
}

.faq-item.abierto .faq-flecha {
    transform: rotate(45deg);

    background: #5b4bdb;
    color: white;
}


/* RESPUESTA */

.faq-respuesta {
    max-height: 0;

    overflow: hidden;

    transition:
        max-height 0.35s ease,
        padding 0.35s ease;
}

.faq-respuesta p {
    margin: 0;

    padding: 0 20px 18px;

    color: #666b80;

    font-size: 14px;
    line-height: 1.7;
}

.faq-item.abierto .faq-respuesta {
    max-height: 300px;
}


/* CELULAR */

@media (max-width: 600px) {

    .faq-pestana {
        font-size: 0;
        padding: 12px;
    }

    .faq-pestana:hover {
        padding-right: 12px;
    }

    .faq-pestana span {
        font-size: 16px;
    }

    .faq-panel {
        width: 100%;
        padding: 25px 20px;
    }

    .faq-encabezado h2 {
        font-size: 24px;
    }
}
/* POSICIÓN DEFINITIVA FAQ */

.faq-pestana {
    position: fixed !important;

    top: 95px !important;
    bottom: auto !important;

    left: 0 !important;
    right: auto !important;

    transform: none !important;

    border-radius: 0 14px 14px 0 !important;

    z-index: 9999 !important;
}