:root {
    --bg-dark: #050505; /* Fondo más oscuro para resaltar el cristal */
    --primary-orange: #D97D00;
    --gradient-top: #2D1A00;
    --gradient-bottom: #D97D00;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
}

* {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* ELIMINA EL DESTELLO AZUL EN ANDROID */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

button, input, select, a {
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
/* El fondo necesita colores tenues para que el cristal los deforme y sature al pasar por encima */
body {
    background-color: #050505;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(217, 125, 0, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05), transparent 40%);
    color: #FFFFFF;
    overflow: hidden; 
}
#app-container { width: 100vw; height: 100vh; position: relative; }

/* Sistema de Vistas y Animaciones */
.view { display: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0; flex-direction: column; }
.view.active { display: flex; }

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.view.active .content-scroll > *, .view.active .login-content > * {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; 
}

.dark-bg { background-color: transparent; }
.gradient-bg { background: linear-gradient(to bottom, rgba(45, 26, 0, 0.8) 0%, transparent 100%); }

/* Botones Premium */
.btn-primary { 
    width: 100%; 
    background: linear-gradient(135deg, #D97D00, #A65D00);
    color: #fff; border: none; padding: 14px; border-radius: 25px; 
    font-size: 1.1rem; font-weight: bold; margin-top: 1rem; cursor: pointer; 
    box-shadow: 0 4px 15px rgba(217, 125, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.3); /* Brillo interior */
    display: flex; justify-content: center; align-items: center; gap: 10px; 
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:active { transform: scale(0.96); }

.btn-secondary { 
    width: 100%; background: rgba(217, 125, 0, 0.1); 
    border: 1px solid var(--primary-orange); color: var(--text-main); 
    padding: 14px; border-radius: 25px; font-size: 1rem; font-weight: bold; cursor: pointer; 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Headers y Contenido */
.app-header { padding: 20px; font-size: 1.8rem; font-weight: bold; animation: slideUpFade 0.4s forwards; }
.header-with-back { display: flex; align-items: center; gap: 15px; font-size: 1.5rem; }
.back-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: transform 0.2s;}
.back-btn:active { transform: translateX(-5px); }
.content-scroll { flex: 1; overflow-y: auto; padding: 0 15px 110px 15px; scroll-behavior: smooth; } /* Más padding abajo para la barra flotante */

/* ============================================================
   BOTTOM NAV - ESTILO APPLE MUSIC
   ============================================================ */
.bottom-nav { 
    position: fixed; bottom: 20px; left: 20px; right: 20px; 
    height: 75px; 
    background: rgba(15, 15, 15, 0.9); 
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex; justify-content: space-around; 
    align-items: center; z-index: 100; padding: 0 5px;
    transform: translateZ(0); 
}

/* =================================================
   PASTILLA LIQUID GLASS (CÓDIGO DE TU CAPTURA)
   ================================================= */
/* ============================================================
   PASTILLA DE CRISTAL PULIDO (BORDES PERFECTOS)
   ============================================================ */
.nav-pill {
    position: absolute; 
    height: 60px;
    border-radius: 30px;
    
    /* 1. Fondo Cristalino Blanco Traslúcido con un toque de brillo */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    
    /* 2. ELIMINADO EL FILTRO SVG QUE HACÍA LOS BORDES CHUECOS */
    /* filter: url(#glass-distortion); <-- Esta línea ya no va */
    
    /* 3. Desenfoque y saturación nativa (iOS Style, bordes perfectos) */
    backdrop-filter: blur(8px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(180%) brightness(1.1);
    
    /* 4. Bordes de luz: Delgados y definidos */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    
    /* 5. Sombras para dar volumen y profundidad */
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 4px 10px rgba(255, 255, 255, 0.2);
    
    /* Aceleración por hardware para fluidez absoluta */
    will-change: left, width, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    z-index: 0; 
    top: 7.5px; 

    /* Transición normal (cuando le das tap) */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                left 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. MIENTRAS LA ARRASTRAS (Quitar transición para que siga al dedo exacto) */
.nav-pill.dragging {
    transition: none !important; 
}

/* 2. EFECTO ABRAZO (Se hace más alta para desbordar la barra y más ancha) */
.nav-pill.lifted {
    height: 85px !important; /* Se sale de la barra de 75px */
    top: -5px !important; /* Ajusta hacia arriba para centrarse */
    transform: scale(1.08) !important; /* Crece en todos los sentidos */
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 4px 20px rgba(255, 255, 255, 0.4), 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* LOS BOTONES DE NAVEGACIÓN */
.nav-item { 
    background: none; border: none; color: #ffffff; 
    font-size: 1.4rem; cursor: pointer; padding: 5px 15px; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; width: 120px; height: 100%;
    z-index: 1; transition: all 0.3s ease; 
}

.nav-item span { 
    font-size: 0.8rem; margin-top: 5px; font-weight: bold; letter-spacing: 0.5px;
    transition: color 0.3s;
}

/* ESTADOS DE COLOR DE LOS ICONOS/TEXTOS */
.nav-item.active { color: #ffffff; }
.nav-item:not(.active) { color: rgba(255, 255, 255, 0.3); } /* Apagados por defecto */

/* MAGIA: Se iluminan en blanco CUANDO la pastilla pasa por encima (antes de soltar) */
.nav-item.drag-over {
    color: #ffffff !important;
    transform: scale(1.1); /* Hacen un pequeño rebote */
}

.hidden { display: none !important; }

/* Modales */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.4); backdrop-filter: blur(15px) saturate(150%); -webkit-backdrop-filter: blur(15px) saturate(150%); display: flex; justify-content: center; align-items: center; z-index: 1000; animation: slideUpFade 0.3s forwards;}
.modal-content { position: relative; max-width: 90%; max-height: 85%; }
.modal-content img { max-width: 100%; max-height: 80vh; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.modal-close { position: absolute; top: -45px; right: 0; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center;}

