/* ========================================
   TopSaver Club - Estilos Principales
   ======================================== */

:root {
    --primary-color: #6200ea;
    --primary-gradient: linear-gradient(135deg, #8a4fff 0%, #6200ea 100%);
    --secondary-color: #536dfe;
    --accent-color: #3d5afe;
    --background-color: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --card-shadow-hover: 0 12px 25px rgba(0,0,0,0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   ESTILOS BASE
   ======================================== */

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--background-color);
    line-height: 1.6;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

/* --- CAMBIO: Navbar con transición y estado transparente --- */
.navbar {
    background: white !important;
    padding: 15px 0;
    transition: all 0.3s ease; /* Suaviza el cambio de transparencia */
}

/* Clase que se activará con JS al hacer scroll */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.5) !important; /* 50% de transparencia */
    backdrop-filter: blur(8px); /* Opcional: añade un desenfoque elegante */
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: #6c757d !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Subrayado animado para nav-links */
/* .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
} */

/* ========================================
   FOOTER
   ======================================== */
.text-muted {
    color: #6c757d !important;
}



/* ========================================
   COMPONENTES DE TARJETAS
   ======================================== */

.card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
    background: white;
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c4dff 0%, #5e35b1 100%);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Botones con efectos especiales */
.btn-floating {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-gradient {
    background: var(--primary-gradient);
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-md {
    border-radius: var(--border-radius-md) !important;
}

.rounded-sm {
    border-radius: var(--border-radius-sm) !important;
}

.shadow-custom {
    box-shadow: var(--card-shadow);
}

.shadow-hover {
    box-shadow: var(--card-shadow-hover);
}

/* ========================================
   FORMULARIOS
   ======================================== */

.form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(98, 0, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ========================================
   BADGES Y ETIQUETAS
   ======================================== */

.badge {
    font-weight: 600;
    padding: 0.5em 0.75em;
    border-radius: var(--border-radius-sm);
}

.badge-primary {
    background: var(--primary-gradient);
}

.badge-success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.badge-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* ========================================
   EFECTOS DE ANIMACIÓN
   ======================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* ========================================
   LOADING Y ESTADOS
   ======================================== */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-floating {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   DARK MODE SUPPORT (OPCIONAL)
   ======================================== */

/* @media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --card-shadow: 0 10px 30px rgba(255,255,255,0.1);
        --card-shadow-hover: 0 12px 25px rgba(255,255,255,0.15);
    }

    .navbar {
        background: #2d2d2d !important;
    }

    .card {
        background: #2d2d2d;
        color: white;
    }
} */

/* ========================================
   ACCESIBILIDAD
   ======================================== */

/* @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} */

/* Focus visible para navegación por teclado */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}