@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Nunito',sans-serif;
}

body{
    background:linear-gradient(135deg,#FFF8FC,#F4F0FF,#EAF8FF);
    color:#5E5673;
    min-height:100vh;
}

/*==============================
            HEADER
================================*/

header{
    width:100%;
    min-height:90px;
    background:#FFFFFFEE;
    backdrop-filter:blur(10px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 60px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:100;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:65px;
    height:65px;
    border-radius:50%;
    object-fit:cover;
}

.logo h2{
    color:#9B7DFF;
    font-size:32px;
    font-weight:800;
}

.logo p{
    color:#9A92B3;
    font-size:15px;
}

nav{
    display:flex;
    gap:28px;
}

nav a{
    text-decoration:none;
    color:#7A7196;
    font-weight:700;
    transition:.3s;
}

nav a:hover,
nav a.activo{
    color:#9B7DFF;
}

/*==============================
        ENCABEZADO
================================*/

.encabezado{
    text-align:center;
    padding:65px 20px 45px;
}

.encabezado h1{
    color:#6E5FA6;
    font-size:50px;
    margin-bottom:15px;
}

.encabezado p{
    color:#80789B;
    font-size:20px;
    max-width:700px;
    margin:auto;
    line-height:32px;
}

/*==============================
        ESTADÍSTICAS
================================*/

.estadisticas{
    width:92%;
    max-width:1200px;
    margin:0 auto 40px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.estadistica{
    background:white;
    border-radius:28px;
    padding:28px;
    display:flex;
    align-items:center;
    gap:20px;
    box-shadow:0 12px 30px rgba(165,150,220,.16);
    transition:.3s;
}

.estadistica:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 35px rgba(165,150,220,.22);
}

.icono{
    width:65px;
    height:65px;
    border-radius:20px;
    background:#F1EAFF;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:32px;
}

.estadistica span{
    display:block;
    color:#8068C7;
    font-size:28px;
    font-weight:800;
    margin-bottom:4px;
}

.estadistica p{
    color:#8D87A6;
    font-size:15px;
}

/*==============================
        CONTENEDORES
================================*/

.grafica-contenedor,
.ultimos{
    width:92%;
    max-width:1200px;
    margin:0 auto 45px;
    background:white;
    border-radius:35px;
    padding:45px;
    box-shadow:0 15px 40px rgba(165,150,220,.18);
}

.titulo-seccion{
    text-align:center;
    margin-bottom:35px;
}

.titulo-seccion h2{
    color:#6E5FA6;
    font-size:32px;
    margin-bottom:10px;
}

.titulo-seccion p{
    color:#8D87A6;
    font-size:17px;
}

/*==============================
            GRÁFICA
================================*/

.grafica{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.barra{
    width:100%;
}

.barra-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
}

.barra-info span{
    color:#6E5FA6;
    font-size:17px;
    font-weight:700;
}

.barra-info strong{
    color:#8B72D8;
    font-size:16px;
}

.barra-fondo{
    width:100%;
    height:18px;
    background:#F2EFF8;
    border-radius:20px;
    overflow:hidden;
}

.barra-progreso{
    height:100%;
    width:0%;
    border-radius:20px;
    transition:width 1s ease;
}

/* Colores de cada emoción */

.barra-progreso.ansiedad{
    background:#8EC5FF;
}

.barra-progreso.culpa{
    background:#B89CFF;
}

.barra-progreso.enojo{
    background:#E74C3C;
}

.barra-progreso.envidia{
    background:#5CC8B0;
}

.barra-progreso.estres{
    background:#F29AB2;
}

.barra-progreso.frustracion{
    background:#929292;
}

.barra-progreso.miedo{
    background:#70C9A8;
}

.barra-progreso.tristeza{
    background:#8B6FC9;
}

.barra-progreso.verguenza{
    background:#D41472;
}

/*==============================
        MENSAJE
================================*/

.mensaje-resumen{
    width:92%;
    max-width:1200px;
    margin:0 auto 45px;
    padding:30px 35px;
    border-radius:30px;
    background:linear-gradient(135deg,#F3ECFF,#FFF0FA);
    box-shadow:0 12px 30px rgba(165,150,220,.15);
    display:flex;
    align-items:center;
    gap:25px;
}

.mensaje-icono{
    width:70px;
    height:70px;
    min-width:70px;
    border-radius:50%;
    background:#FFFFFF;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:35px;
}

.mensaje-resumen h2{
    color:#8068C7;
    font-size:25px;
    margin-bottom:8px;
}

.mensaje-resumen p{
    color:#7E7896;
    font-size:17px;
    line-height:27px;
}

/*==============================
        ÚLTIMOS REGISTROS
================================*/

.registro-resumen{
    background:#FAF8FF;
    border-radius:22px;
    padding:22px;
    margin-bottom:15px;
    border-left:7px solid #B89CFF;
    transition:.3s;
}

.registro-resumen:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(165,150,220,.15);
}

.registro-cabecera{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.registro-emocion{
    color:#8068C7;
    font-size:20px;
    font-weight:800;
}

.registro-fecha{
    color:#9991AD;
    font-size:14px;
}

.registro-situacion{
    color:#6E5FA6;
    font-size:17px;
    font-weight:700;
    margin-bottom:6px;
}

.registro-comentario{
    color:#77718C;
    font-size:15px;
    line-height:25px;
}

/*==============================
        SIN REGISTROS
================================*/

.sin-registros{
    text-align:center;
    background:#FAF8FF;
    border-radius:25px;
    padding:45px 25px;
}

.sin-registros span{
    display:block;
    font-size:60px;
    margin-bottom:12px;
}

.sin-registros h3{
    color:#8068C7;
    font-size:25px;
    margin-bottom:10px;
}

.sin-registros p{
    color:#88819D;
    font-size:16px;
    margin-bottom:22px;
}

.sin-registros a{
    display:inline-block;
    padding:13px 28px;
    background:linear-gradient(135deg,#B89CFF,#D9B8FF);
    color:white;
    text-decoration:none;
    border-radius:30px;
    font-size:16px;
    font-weight:700;
    transition:.3s;
}

.sin-registros a:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(184,156,255,.35);
}

/*==============================
            FOOTER
================================*/

footer{
    margin-top:60px;
    padding:35px;
    text-align:center;
    background:#F6F0FF;
}

footer h3{
    color:#8B72D8;
    font-size:28px;
    margin-bottom:10px;
}

footer p{
    color:#8E88A5;
    font-size:16px;
    max-width:700px;
    margin:auto;
    line-height:28px;
}

/*==============================
        RESPONSIVE
================================*/

@media(max-width:1000px){

    header{
        flex-direction:column;
        text-align:center;
        padding:25px;
    }

    nav{
        margin-top:20px;
        flex-wrap:wrap;
        justify-content:center;
        gap:18px;
    }

    .estadisticas{
        grid-template-columns:1fr;
    }

}

@media(max-width:700px){

    .encabezado{
        padding:45px 20px 30px;
    }

    .encabezado h1{
        font-size:38px;
    }

    .encabezado p{
        font-size:18px;
        line-height:29px;
    }

    .grafica-contenedor,
    .ultimos{
        width:95%;
        padding:25px;
        border-radius:28px;
    }

    .mensaje-resumen{
        width:95%;
        padding:25px;
        flex-direction:column;
        text-align:center;
    }

    .titulo-seccion h2{
        font-size:27px;
    }

    .registro-cabecera{
        flex-direction:column;
        align-items:flex-start;
        gap:7px;
    }

}

@media(max-width:500px){

    .logo img{
        width:55px;
        height:55px;
    }

    .logo h2{
        font-size:25px;
    }

    .logo p{
        font-size:13px;
    }

    .estadisticas{
        width:95%;
    }

    .estadistica{
        padding:22px;
    }

    .icono{
        width:55px;
        height:55px;
        font-size:27px;
    }

    .estadistica span{
        font-size:24px;
    }

    .barra-info span{
        font-size:15px;
    }

}