/* ========================================
   ESTILOS DE MARCA GLOBALES
   Sistema de Facturación
   ======================================== */

/* Google Fonts - Poppins (similar to Gilroy) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Variables CSS - Paleta de colores de marca */
:root {
    /* Colores principales de marca */
    --primary-color: #E84425; /* Rojo principal */
    --secondary-color: #32C5F4; /* Azul principal */
    --primary-gradient: linear-gradient(135deg, #E84425 0%, #ff6b4a 100%);
    --secondary-gradient: linear-gradient(135deg, #32C5F4 0%, #5dd3ff 100%);
    
    /* Gradientes para diferentes secciones */
    --success-gradient: linear-gradient(135deg, #32C5F4 0%, #00bcd4 100%);
    --warning-gradient: linear-gradient(135deg, #E84425 0%, #ff5722 100%);
    --info-gradient: linear-gradient(135deg, #32C5F4 0%, #2196f3 100%);
    --danger-gradient: linear-gradient(135deg, #E84425 0%, #d32f2f 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Efectos de vidrio y sombras más sutiles */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-light: 0 4px 20px rgba(232, 68, 37, 0.08);
    --shadow-hover: 0 8px 25px rgba(232, 68, 37, 0.12);
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    
    /* Fuente principal */
    --font-family: 'Poppins', sans-serif;
    
    /* Colores de texto */
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #ffffff;
    
    /* Colores de fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-light: #f1f3f4;
}

/* ========================================
   TIPOGRAFÍA GLOBAL
   ======================================== */

* {
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Títulos principales - Estilo Heavy Italic */
h1, .h1 {
    font-size: 3.5rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

h2, .h2 {
    font-size: 2.5rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h3, .h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

h4, .h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Títulos con gradiente */
.gradient-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-title-secondary {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BOTONES DE MARCA
   ======================================== */

.btn-brand-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
}

.btn-brand-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-brand-secondary {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
}

.btn-brand-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-brand-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-brand-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   TARJETAS DE MARCA
   ======================================== */

.card-brand {
    background: var(--bg-primary);
    border: 1px solid rgba(232, 68, 37, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-brand:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(232, 68, 37, 0.15);
}

.card-brand-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: none;
}

.card-brand-body {
    padding: 1.5rem;
}

/* ========================================
   MODO OSCURO - TARJETAS DE MARCA
   ======================================== */

[data-theme="dark"] .card-brand,
[data-theme="dark"] .card.card-brand,
[data-theme="dark"] .row .card-brand,
[data-theme="dark"] [class*="col-"] .card-brand {
    background-color: #334155 !important;
    border: 1px solid #475569 !important;
    border-color: #475569 !important;
    border-width: 1px !important;
    outline: none !important;
    color: #f1f5f9 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .card-brand:hover {
    border-color: #64748b !important;
    transform: translateY(-3px);
}

[data-theme="dark"] .card-brand .card-body {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* ========================================
   FORMULARIOS DE MARCA
   ======================================== */

.form-control-brand {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 12px 16px;
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control-brand:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(232, 68, 37, 0.25);
}

.form-label-brand {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ========================================
   NAVEGACIÓN DE MARCA
   ======================================== */

.navbar-brand {
    font-weight: 900;
    font-style: italic;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link-brand {
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-link-brand:hover {
    color: var(--primary-color);
}

/* ========================================
   MODO OSCURO - NAVEGACIÓN
   ======================================== */

[data-theme="dark"] .nav-link-brand {
    color: #ffffff !important;
    background: transparent !important;
}

[data-theme="dark"] .nav-link-brand:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* Eliminar cualquier fondo gris de los elementos nav en modo oscuro */
[data-theme="dark"] .nav-item,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .dropdown-toggle {
    background: transparent !important;
}

[data-theme="dark"] .navbar-nav .nav-item {
    background: transparent !important;
}

/* ========================================
   ALERTAS DE MARCA
   ======================================== */

.alert-brand-primary {
    background: linear-gradient(135deg, rgba(232, 68, 37, 0.1) 0%, rgba(255, 107, 74, 0.1) 100%);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
}

.alert-brand-secondary {
    background: linear-gradient(135deg, rgba(50, 197, 244, 0.1) 0%, rgba(93, 211, 255, 0.1) 100%);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 8px;
}

/* ========================================
   UTILIDADES DE MARCA
   ======================================== */

.text-brand-primary {
    color: var(--primary-color) !important;
}

.text-brand-secondary {
    color: var(--secondary-color) !important;
}

.bg-brand-primary {
    background: var(--primary-gradient) !important;
    color: white;
}

.bg-brand-secondary {
    background: var(--secondary-gradient) !important;
    color: white;
}

.border-brand-primary {
    border-color: var(--primary-color) !important;
}

.border-brand-secondary {
    border-color: var(--secondary-color) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    h3, .h3 {
        font-size: 1.75rem;
    }
    
    .btn-brand-primary,
    .btn-brand-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .card-brand-body {
        padding: 1rem;
    }
}

/* ========================================
   HERO BANNER Y TARJETAS ESPECIALES
   ======================================== */

.hero-section {
    background: var(--primary-gradient);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid rgba(232, 68, 37, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(232, 68, 37, 0.15);
}

.stat-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   FOOTER LIMPIO Y SIMPLE
   ======================================== */

.footer-clean {
    background: #2c3e50;
    color: white;
    margin-top: auto;
    border: none;
    outline: none;
    box-shadow: none;
    position: relative;
}

.footer-logo-section {
    display: flex;
    align-items: center;
}

.footer-text {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-logo-section {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-copyright {
        text-align: center !important;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

