* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f7f1ff;
    color: #333;
}


.top {
    height: 82px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    box-shadow: 0 4px 20px rgba(80, 30, 120, .10);
    position: sticky;
    top: 0;
    z-index: 20;
}


.volver {
    text-decoration: none;
    color: #7627bd;
    font-weight: 700;
}


.titulo {
    font-size: 25px;
    color: #7627bd;
}


.nivel {
    background: #eee0ff;
    color: #7627bd;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
}


.pagina {
    width: 90%;
    max-width: 1150px;
    margin: 45px auto 100px;
}


.hero {
    text-align: center;
    margin-bottom: 30px;
}


.mini-linea {
    width: 75px;
    height: 5px;
    background: #9d4edd;
    border-radius: 20px;
    margin: auto auto 15px;
}


.hero h1 {
    color: #7627bd;
    font-size: 35px;
    margin-bottom: 12px;
}


.hero p {
    max-width: 720px;
    margin: auto;
    color: #666;
    line-height: 1.7;
}


/* TIEMPOS */

.tiempos {
    background: white;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(80, 30, 120, .08);
    margin-bottom: 25px;
}


.tiempos h2 {
    color: #555;
    margin-bottom: 20px;
}


.botones-tiempo {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


.tiempo {
    border: none;
    padding: 14px 25px;
    border-radius: 25px;
    background: #eee3ff;
    color: #7627bd;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}


.tiempo:hover {
    transform: translateY(-2px);
}


.tiempo.activo {
    background: #7627bd;
    color: white;
}


/* FRASE */

.frase {
    background: linear-gradient(135deg, #7627bd, #a855f7);
    color: white;
    text-align: center;
    padding: 40px 25px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(118, 39, 189, .22);
}


.tag {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: .8;
}


.frase h2 {
    font-size: 34px;
    margin: 15px 0 8px;
}


.frase p {
    opacity: .9;
}


.acciones-frase {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}


.acciones-frase button {
    border: none;
    background: white;
    color: #7627bd;
    padding: 12px 22px;
    border-radius: 22px;
    font-weight: 700;
    cursor: pointer;
}


/* LÉO */

.leo-seccion {
    background: white;
    border-radius: 30px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(80, 30, 120, .08);
}


.leo-imagen {
    width: 220px;
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


.leo-imagen img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: leoFlota 3s ease-in-out infinite;
}


@keyframes leoFlota {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}


.leo-aura {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #eee0ff;
    z-index: 1;
}


.leo-aura.hablando {
    animation: aura .5s infinite alternate;
}


@keyframes aura {

    from {
        transform: scale(1);
        opacity: .7;
    }

    to {
        transform: scale(1.12);
        opacity: .95;
    }

}


.leo-info {
    flex: 1;
}


.leo-nombre {
    color: #7627bd;
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 12px;
}


.burbuja {
    background: #f5edff;
    padding: 22px;
    border-radius: 22px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}


.burbuja strong {
    color: #7627bd;
}


.leo-hablar {
    border: none;
    background: #7627bd;
    color: white;
    padding: 12px 22px;
    border-radius: 22px;
    font-weight: 700;
    cursor: pointer;
}


/* ZONA */

.zona-practica {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


.tarjeta {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(80, 30, 120, .08);
}


.tarjeta-titulo {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}


.tarjeta-titulo span {
    font-size: 30px;
}


.tarjeta-titulo h2 {
    color: #555;
}


.tarjeta-titulo p {
    color: #888;
    margin-top: 4px;
}


/* CÁMARA */

.camara-box {
    height: 330px;
    background: #24152e;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}


#video {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}


.camara-mensaje {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}


.camara-mensaje div {
    font-size: 55px;
}


.camara-mensaje small {
    color: #cfc5d5;
}


.boton-morado {
    width: 100%;
    border: none;
    background: #7627bd;
    color: white;
    padding: 14px;
    border-radius: 22px;
    font-weight: 700;
    cursor: pointer;
}


.error-camara {
    color: #c0392b;
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.5;
}


/* GUÍA */

.guia {
    min-height: 200px;
    background: #f6efff;
    border-radius: 22px;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}


.palabra {
    background: white;
    padding: 15px 17px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(80, 30, 120, .08);
    text-align: center;
}


.palabra strong {
    display: block;
    color: #7627bd;
    font-size: 18px;
}


.palabra span {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 4px;
}


.pronunciacion {
    background: #f1e4ff;
    padding: 15px;
    border-radius: 18px;
    margin-bottom: 15px;
}


.pronunciacion span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 7px;
}


.pronunciacion strong {
    color: #7627bd;
}


.boton-claro {
    width: 100%;
    border: 2px solid #7627bd;
    background: white;
    color: #7627bd;
    padding: 12px;
    border-radius: 22px;
    font-weight: 700;
    cursor: pointer;
}


/* HABLAR */

.hablar {
    background: white;
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(80, 30, 120, .08);
}


.microfono {
    width: 75px;
    height: 75px;
    background: #eee0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: auto auto 15px;
}


.hablar h2 {
    color: #7627bd;
    margin-bottom: 8px;
}


.hablar p {
    color: #777;
    margin-bottom: 20px;
}


.btn-hablar {
    border: none;
    background: #7627bd;
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}


.estado {
    color: #777;
    margin-top: 15px;
}


.resultado-texto {
    margin-top: 12px;
    color: #555;
}


/* RESULTADO */

.resultado {
    background: white;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(80, 30, 120, .08);
}


.resultado h2 {
    color: #7627bd;
}


.porcentaje {
    color: #7627bd;
    font-size: 55px;
    font-weight: 900;
    margin: 15px;
}


.barra {
    height: 17px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
}


.progreso {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7627bd, #c77dff);
    transition: .7s;
}


#mensajeResultado {
    color: #777;
    margin-top: 15px;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .zona-practica {
        grid-template-columns: 1fr;
    }


    .leo-seccion {
        flex-direction: column;
        text-align: center;
    }


    .top {
        height: auto;
        padding: 15px;
        gap: 12px;
        flex-wrap: wrap;
    }

}


@media (max-width: 550px) {

    .pagina {
        width: 94%;
    }


    .hero h1 {
        font-size: 27px;
    }


    .frase h2 {
        font-size: 25px;
    }


    .camara-box {
        height: 260px;
    }


    .leo-imagen {
        width: 180px;
        height: 180px;
    }


    .leo-imagen img {
        width: 165px;
        height: 165px;
    }

}