/* /css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-morado: #6f2c91;
    --color-morado-oscuro: #4a1c64;
    --color-texto: #2c3e50;
    --color-texto-claro: #7f8c8d;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* FIX: Bloquear scroll horizontal en toda la app */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-texto);
    background: linear-gradient(135deg, #a4508b 0%, #5f0a87 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
}

/* Círculos flotantes en el fondo */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

body::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(to right, #ff758c 0%, #ff7eb3 100%);
    top: -100px;
    left: -100px;
    filter: blur(20px);
    opacity: 0.8;
}

body::after {
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, #6f2c91 0%, #a4508b 100%);
    bottom: -150px;
    right: -100px;
    filter: blur(30px);
    opacity: 0.6;
}

.text-morado { color: var(--color-morado) !important; }

/* Contenedor Principal de Cristal (App Window PC) */
.glass-app-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    overflow: hidden;
}

.main-content {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 30px;
}

/* Sidebar estilo Glass (PC) */
.sidebar {
    background: rgba(255, 255, 255, 0.3);
    border-right: 1px solid var(--glass-border);
    height: 100%;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: var(--color-texto);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-morado);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 25px;
    color: #1abc9c;
}

.user-profile-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tarjetas y Botones */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.glass-card:hover { transform: translateY(-5px); }

.glass-card-primary {
    background: linear-gradient(135deg, #6f2c91 0%, #a4508b 100%);
    color: white;
    border: none;
}

.glass-card-primary .text-muted { color: rgba(255,255,255,0.7) !important; }

.btn-morado {
    background: linear-gradient(135deg, #6f2c91 0%, #a4508b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(111, 44, 145, 0.3);
}

.btn-morado:hover {
    background: linear-gradient(135deg, #4a1c64 0%, #6f2c91 100%);
    color: white;
    transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* =========================================
   DISEÑO MÓVIL (APP NATIVA AWP)
========================================= */
@media (max-width: 768px) {
    .glass-app-container {
        width: 100%;
        height: 100vh;
        height: 100dvh; /* Altura dinámica para evitar que la barra del navegador tape cosas */
        border-radius: 0;
        border: none;
        background: var(--color-gris-claro, #f4f6f9);
    }
    
    body { 
        background: #f4f6f9; /* Fondo liso en móvil para mejor lectura */
        padding: 0; 
    }
    body::before, body::after { display: none; } /* Ocultar bolas de fondo en móvil */

    .main-content {
        padding: 85px 15px 100px 15px !important; /* Espacio arriba para header y abajo para menú */
        overflow-y: auto;
    }

    /* Header Fijo Móvil */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    }

    /* Menú Inferior Fijo (Bottom Navigation Bar) */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0,0,0,0.05);
        border-radius: 30px 30px 0 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        padding: 0 10px;
    }

    .mobile-nav-item {
        color: #a0aab5;
        font-size: 1.3rem;
        text-decoration: none;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-nav-item.active {
        color: var(--color-morado);
    }

    /* Botón Flotante Central (+) */
    .mobile-nav-center {
        position: relative;
        top: -25px;
        background: linear-gradient(135deg, #a4508b 0%, #6f2c91 100%);
        width: 65px;
        height: 65px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.8rem;
        box-shadow: 0 8px 20px rgba(111, 44, 145, 0.4);
        border: 6px solid #f4f6f9;
        text-decoration: none;
        transition: transform 0.2s ease;
    }
    
    .mobile-nav-center:active {
        transform: scale(0.95);
        color: white;
    }
}