/**
 * FactuHub Theme - Sistema de Diseño
 *
 * Paleta de colores profesional y moderna
 * Tipografía: Poppins
 * Concepto: Hub (centralización) + Tecnología
 */

/* ========================================
   VARIABLES CSS
======================================== */

:root {
    /* Colores Primarios - Azules FactuHub */
    --primary-dark: #1F3B73;        /* Azul oscuro - Confianza y profesionalidad */
    --primary-light: #3FB5E3;       /* Azul cielo - Tecnología y modernidad */
    --primary-medium: #2E5FA8;      /* Azul intermedio */

    /* Colores de Fondo */
    --bg-light: #F7F8FA;            /* Fondo gris claro */
    --bg-white: #FFFFFF;            /* Blanco puro */
    --bg-gradient: linear-gradient(135deg, #1F3B73 0%, #3FB5E3 100%);
    --bg-gradient-reverse: linear-gradient(135deg, #3FB5E3 0%, #1F3B73 100%);

    /* Colores de Texto */
    --text-dark: #2D3748;           /* Texto principal */
    --text-muted: #718096;          /* Texto secundario */
    --text-light: #A0AEC0;          /* Texto desactivado */

    /* Colores de Estado */
    --success: #48BB78;
    --warning: #ED8936;
    --danger: #F56565;
    --info: #3FB5E3;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(31, 59, 115, 0.08);
    --shadow-md: 0 5px 20px rgba(31, 59, 115, 0.12);
    --shadow-lg: 0 10px 30px rgba(31, 59, 115, 0.15);
    --shadow-xl: 0 20px 50px rgba(31, 59, 115, 0.2);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 50px;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Tipografía */
    --font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* ========================================
   RESET Y BASE
======================================== */

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TIPOGRAFÍA
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.7;
}

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

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

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

.btn-primary {
    background: var(--bg-gradient);
    border: none;
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-gradient-reverse);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-outline-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    border: none;
    color: var(--primary-dark);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

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

/* ========================================
   CARDS
======================================== */

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   GRADIENTES Y BACKGROUNDS
======================================== */

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

.bg-gradient-reverse {
    background: var(--bg-gradient-reverse);
    color: white;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Gradiente de texto */
.text-gradient {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BADGES Y PILLS
======================================== */

.badge-primary {
    background: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

.badge-secondary {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   ICONOS
======================================== */

.icon-primary {
    color: var(--primary-light);
}

.icon-dark {
    color: var(--primary-dark);
}

.icon-lg {
    font-size: 3rem;
}

.icon-md {
    font-size: 2rem;
}

.icon-sm {
    font-size: 1.5rem;
}

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

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

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

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

.rounded-xl {
    border-radius: var(--radius-xl);
}

/* ========================================
   ANIMACIONES
======================================== */

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline-primary,
    .btn-light {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   NAVBAR FACTUHUB
======================================== */

.navbar-factuhub {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-factuhub .navbar-brand {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-factuhub .navbar-brand:hover {
    color: var(--primary-light) !important;
}

.navbar-factuhub .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    margin: 0 0.5rem;
}

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

.navbar-factuhub .btn-primary {
    background: var(--primary-light);
    border: none;
    padding: 0.5rem 1.5rem;
}

.navbar-factuhub .btn-primary:hover {
    background: white;
    color: var(--primary-dark);
}

/* ========================================
   FOOTER FACTUHUB
======================================== */

.footer-factuhub {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer-factuhub a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-factuhub a:hover {
    color: var(--primary-light);
}

.footer-factuhub h5 {
    color: white;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-factuhub {
    background: var(--bg-gradient);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-factuhub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center bottom;
    background-size: cover;
}

.hero-factuhub h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1.5rem;
    color: white;
}

.hero-factuhub p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================================
   FEATURE CARDS
======================================== */

.feature-card-factuhub {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card-factuhub:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card-factuhub .icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

/* ========================================
   PRICING CARDS
======================================== */

.pricing-card-factuhub {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    border: 2px solid transparent;
}

.pricing-card-factuhub:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pricing-card-factuhub.featured {
    border-color: var(--primary-light);
    transform: scale(1.05);
    position: relative;
}

.pricing-card-factuhub.featured::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
}

.pricing-card-factuhub .price {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
