/* assets/css/style.css */

:root {
    /* Colores extraídos del logo DL */
    --primary-color: #00a8ff; /* Cyan brillante */
    --primary-dark: #002855; /* Azul marino profundo */
    --primary-gradient: linear-gradient(135deg, #002855 0%, #00a8ff 100%);
    --accent-gradient: linear-gradient(135deg, #002855 0%, #004e92 100%);
    --bg-surface: #f8f9fa;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: #eef2f6;
    color: #212529;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Enmarcado contenedor estilo Móvil App */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Encabezado */
.app-header {
    background: var(--primary-gradient);
    color: white;
    padding: 24px 20px 30px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
}

.brand-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Banner de Instalación PWA */
.pwa-banner {
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    animation: slideDown 0.5s ease-out;
}

/* Contenedores de pantalla */
.app-screen {
    display: none;
    padding: 20px;
    flex: 1;
}

.app-screen.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Tarjetas y Formularios */
.card-custom {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    background: #ffffff;
}

.form-control-custom {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.btn-custom-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-custom-primary:active {
    transform: scale(0.98);
}

/* Navegación por Pestañas Auth */
.nav-pills-custom {
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
}

.nav-pills-custom .nav-link {
    border-radius: 10px;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills-custom .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Barra de Navegación Inferior Móvil (Bottom Nav Bar) */
.bottom-nav {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
    z-index: 1000;
}

.nav-item-btn {
    border: none;
    background: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 4px;
    transition: color 0.2s ease;
}

.nav-item-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}