/*
|--------------------------------------------------------------------------
| EMFORSOL
| Dashboard Layout
|--------------------------------------------------------------------------
*/

:root{

    --header-height:90px;
    --footer-height:44px;

}

/*--------------------------------------------------------------
BODY
--------------------------------------------------------------*/

html{

    width:100%;
    height:100%;

}

body{

    margin:0;
    padding:0;

    width:100%;
    min-height:100vh;

    font-family:Inter,Segoe UI,Arial,sans-serif;

    color:#ffffff;

    background-image:

        linear-gradient(
            rgba(16,18,21,.88),
            rgba(16,18,21,.90)
        ),

        url("/img/backgrounds/fondo.jpg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    background-attachment:fixed;

    overflow-x:hidden;

}

/*--------------------------------------------------------------
CONTENEDOR GENERAL
--------------------------------------------------------------*/

.dashboard{

    display:flex;

    flex-direction:column;

    height:calc(100vh - var(--header-height) - var(--footer-height));

}

/*--------------------------------------------------------------
HEADER
--------------------------------------------------------------*/

.dashboard__cabecera{

    display:flex;

    align-items:center;

    gap:20px;

    height:var(--header-height);

    padding:0 50px;

    backdrop-filter:blur(16px);

    background:

        linear-gradient(

            rgba(35,38,42,.68),

            rgba(25,27,30,.42)

        );

    border-bottom:

        1px solid rgba(255,255,255,.08);

    box-shadow:

        0 8px 30px rgba(0,0,0,.35);

}

/*--------------------------------------------------------------
LOGO
--------------------------------------------------------------*/

.dashboard__logo{

    width:64px;

    height:64px;

    object-fit:contain;

    flex-shrink:0;

}
/*--------------------------------------------------------------
TÍTULOS
--------------------------------------------------------------*/

.dashboard__titulo-contenedor{

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.dashboard__titulo{

    margin:0;

    padding:0;

    font-size:1.6rem;

    font-weight:700;

    letter-spacing:.08rem;

    color:#ffffff;

    line-height:1;

}

.dashboard__subtitulo{

    margin-top:8px;

    color:#c8d0db;

    font-size:.78rem;

    font-weight:400;

    letter-spacing:.03rem;

}

/*--------------------------------------------------------------
CONTENIDO
--------------------------------------------------------------*/

.dashboard__contenido{

    flex:1;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px 40px;

}

/*--------------------------------------------------------------
GRID
--------------------------------------------------------------*/

.dashboard__grid{

    width:100%;

    max-width:1500px;

    display:grid;

    grid-template-columns:

        repeat(3,minmax(340px,1fr));

    gap:28px;

    align-content:center;

    justify-content:center;

}

/*--------------------------------------------------------------
ANIMACIÓN
--------------------------------------------------------------*/

.dashboard__grid>*{

    animation:dashboardFade .45s ease both;

}

.dashboard__grid>*:nth-child(2){

    animation-delay:.05s;

}

.dashboard__grid>*:nth-child(3){

    animation-delay:.10s;

}

.dashboard__grid>*:nth-child(4){

    animation-delay:.15s;

}

.dashboard__grid>*:nth-child(5){

    animation-delay:.20s;

}

.dashboard__grid>*:nth-child(6){

    animation-delay:.25s;

}
/*--------------------------------------------------------------
TARJETAS
--------------------------------------------------------------*/

.card{

    position:relative;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:center;

    min-height:210px;

    border-radius:22px;

    backdrop-filter:blur(18px);

    background:

        linear-gradient(
            135deg,
            rgba(42,46,52,.78),
            rgba(23,25,29,.66)
        );

    border:1px solid rgba(255,255,255,.08);

    box-shadow:

        0 12px 40px rgba(0,0,0,.35);

    transition:

        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}

.card:hover{

    transform:translateY(-8px);

    border-color:rgba(52,152,255,.45);

    box-shadow:

        0 20px 50px rgba(0,0,0,.45),

        0 0 30px rgba(52,152,255,.20);

}

.card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:4px;

    background:

        linear-gradient(
            90deg,
            #00C6FF,
            #0072FF
        );

}

.card__contenido{

    ...

    padding:20px;

    gap:12px;

    ...

}

/*--------------------------------------------------------------
ICONOS
--------------------------------------------------------------*/

.card__icono{

    display:flex;

    align-items:center;

    justify-content:center;

    width:60px;

    height:60px;

    border-radius:18px;

    font-size:1.8rem;

    background:

        linear-gradient(
            135deg,
            rgba(0,198,255,.18),
            rgba(0,114,255,.12)
        );

    border:1px solid rgba(0,198,255,.22);

    box-shadow:

        inset 0 1px 0 rgba(255,255,255,.08),

        0 8px 24px rgba(0,114,255,.18);

}

/*--------------------------------------------------------------
TEXTOS
--------------------------------------------------------------*/

.card__titulo{

    margin:0;

    font-size:1.25rem;

    font-weight:700;

    color:#ffffff;

    letter-spacing:.02rem;

}

.card__subtitulo{

    margin:0;

    color:#b9c3cf;

    line-height:1.45;

    font-size:.95rem;

}

/*--------------------------------------------------------------
ESTADÍSTICAS
--------------------------------------------------------------*/

.card__estadisticas{

    display:flex;

    flex-direction:column;

    gap:12px;

    margin-top:auto;

}

.card__dato{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px 12px;

    border-radius:12px;

    background:

        rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.05);

}

.card__etiqueta{

    color:#9ea8b5;

    font-size:.86rem;

    font-weight:500;

}

.card__valor{

    color:#ffffff;

    font-size:.90rem;

    font-weight:700;

}
/*--------------------------------------------------------------
FOOTER
--------------------------------------------------------------*/

.dashboard__footer{

    height:var(--footer-height);

    display:flex;

    align-items:center;

    justify-content:center;

    backdrop-filter:blur(14px);

    background:

        linear-gradient(

            rgba(24,26,29,.55),

            rgba(18,20,23,.75)

        );

    border-top:

        1px solid rgba(255,255,255,.06);

}

.dashboard__footer p{

    margin:0;

    color:#9ca7b4;

    font-size:.82rem;

    letter-spacing:.04rem;

}

/*--------------------------------------------------------------
SELECCIÓN
--------------------------------------------------------------*/

::selection{

    background:#0b84ff;

    color:#ffffff;

}

/*--------------------------------------------------------------
SCROLLBAR
--------------------------------------------------------------*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#17191d;

}

::-webkit-scrollbar-thumb{

    background:#3b4756;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#4b5b6d;

}

/*--------------------------------------------------------------
ANIMACIONES
--------------------------------------------------------------*/

@keyframes dashboardFade{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.fade-in{

    animation:dashboardFade .6s ease;

}
/*--------------------------------------------------------------
RESPONSIVE 1600
--------------------------------------------------------------*/

@media (max-width:1600px){

    .dashboard__grid{

        max-width:1300px;

        gap:24px;

    }

    .card{

        min-height:215px;

    }

}

/*--------------------------------------------------------------
RESPONSIVE 1400
--------------------------------------------------------------*/

@media (max-width:1400px){

    .dashboard__cabecera{

        padding:0 35px;

    }

    .dashboard__contenido{

        padding:30px;

    }

    .dashboard__grid{

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

        gap:22px;

    }

    .card{

        min-height:205px;

    }

}

/*--------------------------------------------------------------
RESPONSIVE 1200
--------------------------------------------------------------*/

@media (max-width:1200px){

    .dashboard__grid{

        grid-template-columns:
            repeat(2,minmax(320px,1fr));

    }

}

/*--------------------------------------------------------------
RESPONSIVE 992
--------------------------------------------------------------*/

@media (max-width:992px){

    .dashboard__cabecera{

        padding:20px;

        height:auto;

    }

    .dashboard__logo{

        width:54px;

        height:54px;

    }

    .dashboard__titulo{

        font-size:1.6rem;

    }

    .dashboard__contenido{

        padding:20px;

    }

    .dashboard__grid{

        grid-template-columns:1fr;

        max-width:700px;

    }

}
/*--------------------------------------------------------------
RESPONSIVE 768
--------------------------------------------------------------*/

@media (max-width:768px){

    body{

        background-attachment:scroll;

    }

    .dashboard__cabecera{

        flex-direction:column;

        justify-content:center;

        align-items:center;

        text-align:center;

        gap:14px;

        padding:22px 18px;

    }

    .dashboard__titulo-contenedor{

        align-items:center;

    }

    .dashboard__titulo{

        font-size:1.45rem;

    }

    .dashboard__subtitulo{

        margin-top:6px;

        font-size:.90rem;

    }

    .dashboard__contenido{

        padding:18px;

    }

    .dashboard__grid{

        grid-template-columns:1fr;

        gap:18px;

        max-width:100%;

    }

    .card{

        min-height:185px;

    }

    .card__contenido{

        padding:22px;

    }

    .card__icono{

        width:62px;

        height:62px;

        font-size:1.7rem;

    }

}

/*--------------------------------------------------------------
RESPONSIVE 480
--------------------------------------------------------------*/

@media (max-width:480px){

    .dashboard__cabecera{

        padding:18px 14px;

    }

    .dashboard__logo{

        width:48px;

        height:48px;

    }

    .dashboard__titulo{

        font-size:1.25rem;

    }

    .dashboard__subtitulo{

        font-size:.82rem;

    }

    .dashboard__contenido{

        padding:14px;

    }

    .card{

        border-radius:18px;

        min-height:170px;

    }

    .card__contenido{

        padding:18px;

        gap:14px;

    }

    .card__titulo{

        font-size:1.15rem;

    }

    .card__subtitulo{

        font-size:.88rem;

    }

    .card__dato{

        padding:10px 12px;

    }

}

/*--------------------------------------------------------------
PANTALLAS GRANDES
--------------------------------------------------------------*/

@media (min-width:1920px){

	.dashboard__contenido{

    	 padding:4px 40px 16px;

    }

    .dashboard__grid{

        max-width:1600px;

        gap:20px;

    }

    .card{

        min-height:170px;

    }

}
/*--------------------------------------------------------------
ESTADOS
--------------------------------------------------------------*/

.card:focus-within{

    outline:none;

    border-color:rgba(0,198,255,.45);

    box-shadow:

        0 0 0 4px rgba(0,198,255,.12),

        0 18px 40px rgba(0,0,0,.45);

}

.card:active{

    transform:translateY(-3px);

}

/*--------------------------------------------------------------
MEJORAS VISUALES
--------------------------------------------------------------*/

.dashboard__cabecera::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:1px;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,.15),

            transparent

        );

}

.dashboard__cabecera{

    position:relative;

    z-index:100;

}

.dashboard__contenido{

    position:relative;

    z-index:10;

}

.dashboard__grid{

    position:relative;

}

.dashboard__grid::before{

    content:"";

    position:absolute;

    inset:-30px;

    z-index:-1;

    background:

        radial-gradient(

            circle at center,

            rgba(0,114,255,.08),

            transparent 70%

        );

    filter:blur(60px);

}

/*--------------------------------------------------------------
TRANSICIONES
--------------------------------------------------------------*/

*{

    transition:

        background-color .20s ease,

        border-color .20s ease,

        color .20s ease;

}

/*--------------------------------------------------------------
UTILIDADES
--------------------------------------------------------------*/

.oculto{

    display:none !important;

}

.centrado{

    text-align:center;

}

.derecha{

    text-align:right;

}

.izquierda{

    text-align:left;

}

/*--------------------------------------------------------------
FIN
--------------------------------------------------------------*/