/*=====================================
            VARIABLES
======================================*/

:root{

    --bg-dark:#0a0f1d;
    --bg-card:#131a30;
    --primary:#00f2fe;
    --secondary:#4facfe;
    --accent:#7f00ff;

    --text:#ffffff;
    --text-muted:#9fb3ff;

    --border:rgba(255,255,255,.08);

    --radius:18px;

    --shadow:0 15px 40px rgba(0,0,0,.35);

    --transition:.35s;

    --sidebar-width:260px;

    --font:'Segoe UI',sans-serif;

}

/*=====================================
            GENERAL
======================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    background:var(--bg-dark);

    color:var(--text);

    font-family:var(--font);

    display:flex;

    overflow-x:hidden;

}

a{

    text-decoration:none;

}

button{

    font-family:inherit;

}

img{

    max-width:100%;

}
/*=====================================
            SIDEBAR
======================================*/

.sidebar{

    width:var(--sidebar-width);

    height:100vh;

    position:fixed;

    left:0;

    top:0;

    background:#10182d;

    border-right:1px solid var(--border);

    display:flex;

    flex-direction:column;

    padding:30px 20px;

    overflow-y:auto;

}

.logo{

    text-align:center;

    margin-bottom:35px;

}

.logo h2{

    color:var(--primary);

    font-size:28px;

}

.logo span{

    color:var(--text-muted);

    font-size:14px;

}

.profile-card{

    text-align:center;

    background:var(--bg-card);

    border-radius:20px;

    padding:18px;

    margin-bottom:30px;

    border:1px solid var(--border);

}

.profile-card img{

    width:75px;

    height:75px;

    border-radius:50%;

    border:3px solid var(--primary);

    object-fit:cover;

    margin-bottom:15px;

}

.profile-card h3{

    margin-bottom:6px;

}

.profile-card p{

    color:var(--text-muted);

    font-size:14px;

}

.menu{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.menu a{

    color:white;

    display:flex;

    align-items:center;

    gap:15px;

    padding:15px 18px;

    border-radius:15px;

    transition:var(--transition);

}

.menu a i{

    width:22px;

    color:var(--primary);

}

.menu a:hover{

    background:#182443;

    transform:translateX(5px);

}

.menu .active{

    background:linear-gradient(90deg,#00d4ff20,#4facfe20);

    border-left:4px solid var(--primary);

}

/*=====================================
            CONTENIDO PRINCIPAL
======================================*/

.main-content{

    margin-left:var(--sidebar-width);

    width:calc(100% - var(--sidebar-width));

    min-height:100vh;

    padding:30px;

    overflow:hidden;

}

/*=====================================
            TOPBAR
======================================*/

.topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:40px;

}

.topbar h1{

    font-size:32px;

    margin-bottom:10px;

}

.topbar p{

    color:var(--text-muted);

}

.top-icons{

    display:flex;

    gap:15px;

}

.top-icons button{

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:var(--bg-card);

    color:var(--primary);

    font-size:18px;

    cursor:pointer;

    transition:.35s;

    border:1px solid var(--border);

}

.top-icons button:hover{

    transform:translateY(-5px);

    background:var(--primary);

    color:#000;

}

/*=====================================
        TARJETA BIENVENIDA
======================================*/

.welcome-card{

    background:linear-gradient(
        135deg,
        rgba(0,242,254,.15),
        rgba(127,0,255,.12)
    );

    padding:30px;

    border-radius:22px;

    margin-bottom:35px;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:var(--shadow);

}

.welcome-card h2{

    font-size:32px;

    margin-bottom:15px;

}

.welcome-card p{

    color:var(--text-muted);

    line-height:1.8;

}

/*=====================================
        GRID TARJETAS
======================================*/

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:25px;

}

/*=====================================
            TARJETA
======================================*/

.info-card{

    background:rgba(19,26,48,.85);

    backdrop-filter:blur(10px);

    border-radius:22px;

    padding:25px;

    border:1px solid rgba(255,255,255,.05);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.info-card::before{

    content:"";

    position:absolute;

    width:120px;

    height:120px;

    background:rgba(0,242,254,.08);

    border-radius:50%;

    right:-40px;

    top:-40px;

}

.info-card:hover{

    transform:translateY(-10px);

    border-color:rgba(0,242,254,.35);

    box-shadow:0 15px 35px rgba(0,242,254,.12);

}

.info-card i{

    font-size:35px;

    color:var(--primary);

    margin-bottom:20px;

}

.info-card h3{

    margin-bottom:12px;

    font-size:18px;

}

.info-card span{

    font-size:38px;

    font-weight:bold;

    color:white;

}

.info{

    margin-bottom:20px;

}

.info label{

    display:block;

    color:#8fa0dd;

    font-size:13px;

    margin-bottom:6px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.info span{

    display:block;

    font-size:17px;

    color:white;

    font-weight:500;

}

/*====================================
        GRID INFERIOR
====================================*/

.dashboard-grid{

    display:grid;

    grid-template-columns:minmax(0,2fr) minmax(280px,1fr);

    gap:25px;

    margin-top:35px;

}

/*====================================
        ACTIVIDAD
====================================*/

.activity-panel{

    background:var(--bg-card);

    border-radius:22px;

    padding:30px;

    border:1px solid rgba(255,255,255,.06);

}

.activity-panel h2{

    margin-bottom:30px;

}

.activity-item{

    display:flex;

    gap:20px;

    align-items:flex-start;

    padding:18px 0;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.activity-item:last-child{

    border:none;

}

.activity-icon{

    width:55px;

    height:55px;

    border-radius:50%;

    background:#162345;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

}

.activity-item p{

    color:var(--text-muted);

    margin:6px 0;

}

.activity-item small{

    color:#7c92d8;

}

/*====================================
        PANEL DERECHO
====================================*/

.right-panel{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.mini-card{

    background:var(--bg-card);

    padding:25px;

    border-radius:22px;

    border:1px solid rgba(255,255,255,.05);

    transition:.35s;

}

.mini-card:hover{

    transform:translateY(-6px);

    border-color:rgba(0,242,254,.3);

}

.mini-card h3{

    margin-bottom:18px;

}

.mini-card p{

    color:var(--text-muted);

    line-height:1.7;

}

.badges{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.badges span{

    background:#182443;

    color:#00f2fe;

    padding:10px 15px;

    border-radius:30px;

    font-size:13px;

}

.mini-card ul{

    list-style:none;

}

.mini-card li{

    padding:12px 0;

    color:var(--text-muted);

    border-bottom:1px solid rgba(255,255,255,.05);

}

.mini-card li:last-child{

    border:none;

}

.perfil-botones{

    display:flex;

    gap:20px;

    margin-top:35px;

}

.btn-editar,
.btn-password{

    border:none;

    cursor:pointer;

    padding:15px 28px;

    border-radius:15px;

    font-size:15px;

    font-weight:600;

    transition:.3s;

}

.btn-editar{

    background:#00f2fe;

    color:#000;

}

.btn-password{

    background:#202a47;

    color:white;

}

.btn-editar:hover{

    transform:translateY(-4px);

}

.btn-password:hover{

    background:#2e3c63;

}

/*=====================================
        RESPONSIVE
======================================*/


@media(max-width:1400px){

    .dashboard-grid{

        grid-template-columns:1fr;

    }


    .sidebar{

        width:240px;

    }


    .main-content{

        margin-left:240px;

        width:calc(100% - 240px);

        padding:25px;

    }


}


@media(max-width:1000px){


    body{

        display:block;

    }


    .sidebar{

        position:relative;

        width:100%;

        height:auto;

    }


    .main-content{

        margin-left:0;

        width:100%;

    }


    .cards{

        grid-template-columns:1fr;

    }


    .topbar{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }


}

/*=========================================
        FAVORITOS
=========================================*/

.favoritos-container{

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

}


.favoritos-header{

    margin-bottom: 35px;

}


.section-badge{

    display: inline-block;

    color: var(--primary);

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 10px;

}


.favoritos-header h2{

    margin: 0 0 10px;

    font-size: 30px;

    color: var(--text);

}


.favoritos-header p{

    margin: 0;

    color: var(--text-muted);

    font-size: 15px;

}


.loading-favoritos{

    width: 100%;

    padding: 60px 20px;

    text-align: center;

    color: var(--text-muted);

    font-size: 16px;

}


.loading-favoritos i{

    margin-right: 8px;

    color: var(--primary);

}