/* ============================================================
   estilo_base.css - Estilos comunes para todas las páginas
   ============================================================ */

/* ===== RESET Y VARIABLES ===== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    /* 🎯 Base UI */
    --bg: #0B1220;              /* más profundo y moderno */
    --surface: #121826;
    --card: #1A2235;
    --border: #2A3448;

    /* 🔵 Identidad principal (confianza + tecnología) */
    --primary: #0A1F44;
    --accent: #2563EB;          /* azul más moderno (mejor que #3B82F6) */
    --accent2: #06B6D4;         /* cian tecnológico */

    /* 🟢 Resultados / KPI (clave para tu negocio) */
    --bi-secondary: #00D084;    /* verde éxito (mejor que #10B981) */

    /* 🟣 Inteligencia / features */
    --bi-accent: #7C3AED;       /* morado más profundo */

    /* 🟡 Valor / dinero */
    --bi-gold: #F5B700;         /* más moderno que #FFD700 */
    --bi-gold-dark: #B45309;

    /* 🧾 Texto */
    --text: #E5EAF3;
    --color-text: #1F2937;
    --muted: #94A3B8;

    /* 🎨 Extras */
    --white: #FFFFFF;
    --black: #000000;

    /* 🔷 Azules complementarios */
    --blue-deep: #0A1F44;
    --blue-dark: #1E3A8A;

    /* 🟡 Dorados secundarios */
    --gold-primary: #F5B700;
    --gold-mid: #C8920E;

    /* 📐 UI */
    --radius: 12px;

    /* 🌑 Sombras (más modernas) */
    --shadow: 0 8px 30px rgba(0,0,0,0.45);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 35px rgba(0,0,0,0.25);

    /* 💼 BI / Marca */
    --bi-primary: #0A66C2;
    --bi-primary-dark: #004182;
    --bi-primary-light: #E8F0FE;
    --bi-shadow-hover: 0 20px 40px -10px rgba(37,99,235,0.25);
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 64px;
    margin: 0;
    line-height: 1.6;
}

/* ===== NAVEGACIÓN ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: #ebf0f5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* LOGO - TAMAÑOS RESPONSIVOS CORREGIDOS */
.nav-logo {
    height: 52px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
    display: block;
}

.nav-brand:hover .nav-logo {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #18202c;
    padding: 8px;
    z-index: 1001;
}

/* Menú desktop */
#menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu li a {
    display: block;
    padding: 0.45rem 0.85rem;
    color: #64748B;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

#menu li a:hover { 
    color: #f0dba5; 
    background: #4d9adb; 
}

/* ============================================================
   RESPONSIVE - UNIFICADO
   ============================================================ */

/* Tablets (hasta 1024px) */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block !important;
    }
    
    nav {
        padding: 0 1.2rem !important;
    }
    
    .nav-logo {
        height: 44px !important;
    }
    
    #menu {
        position: fixed !important;
        top: 64px !important;
        right: -100% !important;
        width: 280px !important;
        height: calc(100vh - 64px) !important;
        background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%) !important;
        flex-direction: column !important;
        padding: 20px 0 !important;
        transition: right 0.3s ease !important;
        z-index: 999 !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3) !important;
        display: flex !important;
        gap: 0 !important;
        border-left: 3px solid #3B82F6 !important;
    }
    
    #menu.active {
        right: 0 !important;
    }
    
    #menu li {
        width: 100% !important;
    }
    
    #menu li a {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 14px 25px !important;
        font-size: 1rem !important;
        color: #969ca6 !important;
        border-radius: 0 !important;
        border-left: 3px solid transparent !important;
    }
    
    #menu li a i {
        width: 25px !important;
        font-size: 1.1rem !important;
        color: #2283d4 !important;
    }
    
    #menu li a:hover {
        background: rgba(59,130,246,0.2) !important;
        border-left-color: #60a9d3 !important;
    }
}

/* Móviles (hasta 640px) */
@media (max-width: 640px) {
    nav {
        padding: 0 1rem !important;
    }
    
    .nav-logo {
        height: 40px !important;
    }
}

/* Móviles muy pequeños (hasta 480px) */
@media (max-width: 480px) {
    .nav-logo {
        height: 38px !important;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
    
    #menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        box-shadow: none !important;
        border-left: none !important;
    }
    
    #menu li a {
        padding: 0.45rem 0.85rem !important;
        white-space: nowrap !important;
    }
}

/* ===== FOOTER ===== */
footer {
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--border);
    background: #18202c;
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

footer p {
    display: inline-block;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

footer a {
    color: var(--muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer a:hover { 
    color: var(--text); 
}

footer a[href*="linkedin"]:hover { color: #0A66C2; }
footer a[href*="wa.me"]:hover,
footer a[href*="whatsapp"]:hover { color: #25D366; }
footer a[href*="Contacto"]:hover { color: #EA4335; }

@media (max-width: 768px) {
    footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    footer p { font-size: 0.7rem; }
    footer a { font-size: 1.1rem; }
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp:hover { transform: scale(1.05); }

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

/* ===== SCROLL ANIMATION ===== */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== DARK MODE ===== */
.dark-mode {
    background: #0f172a;
    color: #e5e7eb;
}

.dark-mode .card,
.dark-mode .destacado-card,
.dark-mode .beneficio-item,
.dark-mode .inicio-sobre-mi,
.dark-mode .about-card,
.dark-mode .about-section-card {
    background: #111827;
    color: #e5e7eb;
}

/* ===== CTA INICIO ===== */
.inicio-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--blue-deep, #133564) 0%, var(--blue-dark, #3a587f) 100%);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1200px;
}

.inicio-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white, #ffffff);
}

.inicio-cta p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.9);
}

.inicio-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gold-primary, #daa520);
    color: var(--blue-deep, #133564);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--gold-mid, #ae841a);
    transform: translateY(-2px);
    color: var(--white, #ffffff);
}

.cta-button-outline {
    background: transparent;
    border: 2px solid var(--gold-primary, #daa520);
    color: var(--white, #ffffff);
}

.cta-button-outline:hover {
    background: var(--gold-primary, #daa520);
    color: var(--blue-deep, #133564);
}

@media (max-width: 640px) {
    .inicio-cta {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem;
    }
    .inicio-cta h2 { font-size: 1.5rem; }
    .inicio-cta p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .inicio-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .cta-button {
        justify-content: center;
        width: 100%;
    }
}

/* Botón flotante de regreso */
.btn-back-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #3B82F6;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
}

.btn-back-floating:hover {
    background: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Para móviles, ajustar posición */
@media (max-width: 768px) {
    .btn-back-floating {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Si ya tienes botón de WhatsApp, ajustar para que no se solapen */
.whatsapp {
    bottom: 20px;
    right: 20px;
    left: auto;
}

.btn-back-floating {
    bottom: 20px;
    left: 20px;
}