/* ──────────────────────────────────────────────────────────────────────────────
   css/base.css - Estilos base centralizados para BNBFund
   Consolida todos los estilos comunes y elimina duplicaciones
   ────────────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════════
   🎨 VARIABLES CSS CENTRALIZADAS
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Colores principales */
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Paleta BNBFund oficial */
    --color-white: #FFFFFF;
    --color-gold: #F5BF5D;
    --color-pink: #EB5FA6;
    --color-violet: #51277B;
    --color-black: #000000;
    
    /* Colores de fondo usando paleta BNBFund */
    --bg-primary: #51277B;
    --bg-secondary: #51277B;
    --bg-card: rgba(0, 0, 0, 0.8);
    --bg-glass: rgba(0, 0, 0, 0.7);
    
    /* Colores de texto usando paleta BNBFund */
    --text-primary: #FFFFFF;
    --text-secondary: #F5BF5D;
    --text-muted: rgba(255, 255, 255, 0.7);
    
    /* Efectos - ELIMINADOS para performance máxima */
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📝 TIPOGRAFÍA CENTRALIZADA
   ═══════════════════════════════════════════════════════════════════════════════ */

.font-montserrat {
    font-family: 'Montserrat', 'Nunito', Arial, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -2px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🏗️ RESET Y BASE
   ═══════════════════════════════════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🧩 NAVEGACIÓN UNIFICADA
   ═══════════════════════════════════════════════════════════════════════════════ */

#mainNav {
    min-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}

#mainNav .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

#mainNav img {
    height: 2.2rem !important;
    width: 2.2rem !important;
    object-fit: contain;
    border-radius: 50%;
}

/* Responsive navbar para pantallas pequeñas */
@media (max-width: 640px) {
    #mainNav .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    #mainNav img {
        height: 1.7rem !important;
        width: 1.7rem !important;
    }
    
    #mainNav .text-2xl,
    #mainNav .sm\:text-3xl,
    #mainNav .md\:text-4xl {
        font-size: 1rem !important;
    }
}

#mainNav .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

#mainNav .navbar-brand:hover {
    color: var(--accent-color) !important;
}

#mainNav .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(245, 158, 11, 0.1);
}

#mainNav .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--border-radius);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎨 EFECTOS GLASS ELIMINADOS PARA MÁXIMO PERFORMANCE
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   🔘 SISTEMA DE BOTONES UNIFICADO
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    
    white-space: nowrap;
    min-height: 44px; /* Accesibilidad móvil */
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-pink) 100%);
    color: var(--color-white);
    border: none;
    font-weight: 600;
    
    
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-violet) 100%);
    
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    
}

/* Responsive para .btn-primary */
@media (max-width: 640px) {
    .btn-primary {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

/* Touch optimizations para .btn-primary */
@media (hover: none) {
    .btn-primary:hover {
        transform: none;
    }
}

/* iOS Safari optimizations */
@supports (-webkit-touch-callout: none) {
    .btn-primary {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .btn-primary:focus {
        outline: none;
    }
}

.btn-secondary {
    background: rgba(248, 250, 252, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(248, 250, 252, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(248, 250, 252, 0.2);
    border-color: var(--primary-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
    color: white;
    
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 52px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-height: 36px;
}

/* Estados de carga - SIMPLICADOS */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: 'Cargando...';
    position: absolute;
    color: currentColor;
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📊 TARJETAS Y CONTENEDORES
   ═══════════════════════════════════════════════════════════════════════════════ */

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: 100%;
}

.feature-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📱 FORMULARIOS UNIFICADOS
   ═══════════════════════════════════════════════════════════════════════════════ */

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(248, 250, 252, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    min-height: 44px; /* Accesibilidad móvil */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.9);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎯 UTILIDADES COMUNES
   ═══════════════════════════════════════════════════════════════════════════════ */

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }
.text-error { color: var(--error-color) !important; }
.text-warning { color: var(--warning-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-card { background-color: var(--bg-card) !important; }

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

/* ═══════════════════════════════════════════════════════════════════════════════
   🎬 ANIMACIONES CENTRALIZADAS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   🎯 ANIMACIONES ELIMINADAS PARA MÁXIMO PERFORMANCE
   Todos los @keyframes y clases de animación han sido removidos
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN UNIFICADO
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .stat-card,
    .feature-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        padding-bottom: 2rem;
    }
    
    #mainNav .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(248, 250, 252, 0.1);
    }
    
    #mainNav .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.125rem 0;
        text-align: center;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .stat-card,
    .feature-card,
    .glass-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-card:hover,
    .feature-card:hover {
        transform: translateY(-2px);
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.875rem 1rem;
        min-height: 48px;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        min-height: 48px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Mejorar touch targets */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Optimizar espacio en pantallas pequeñas */
    .mb-4 { margin-bottom: 1rem !important; }
    .mb-6 { margin-bottom: 1.5rem !important; }
    .p-6 { padding: 1rem !important; }
}

/* Mobile Small */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .stat-card,
    .feature-card,
    .glass-card {
        padding: 0.75rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎮 ESTADOS INTERACTIVOS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Estados de hover eliminados para performance */

/* Estados de focus eliminados para performance */

/* Estados de loading simplificados */
.loading-skeleton {
    background: rgba(203, 213, 225, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🚀 OPTIMIZACIONES ELIMINADAS PARA MÁXIMO PERFORMANCE
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   🎯 MODO OSCURO Y CLARO (PREPARADO PARA FUTURO)
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: light) {
    /* Variables para modo claro si se implementa en el futuro */
    :root {
        --text-primary-light: #1e293b;
        --text-secondary-light: #475569;
        --bg-primary-light: #f8fafc;
        --bg-secondary-light: #f1f5f9;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📝 UTILITY CLASSES ADICIONALES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Espaciado */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Visibilidad */
.hidden { display: none; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* Posicionamiento */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* User select */
.select-none { user-select: none; }
.select-text { user-select: text; }

/* Tooltips simplificados para performance */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    font-size: 12px;
    border: 1px solid var(--primary-color);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ✨ FIN DEL ARCHIVO BASE
   ══════════════════════════════════════════════════════════════════════════════ */
