/* 
 * Barhum Consultoria Empresarial
 * Desing System: Modern Linear Gradient (Black + Light Blue)
 */

:root {
    /* Colors */
    --color-black: #0B0F14;
    --color-graphite: #111827;
    --color-gray-dark: #1F2937;
    --color-gray-medium: #374151;
    --color-gray-light: #F3F4F6;
    --color-white: #FFFFFF;
    
    --color-blue-light: #38BDF8;
    --color-blue-medium: #0EA5E9;
    --color-blue-deep: #0284C7;
    
    --color-text-main: #F3F4F6; /* Light text for dark backgrounds */
    --color-text-dark: #111827; /* Dark text for light backgrounds */
    --color-text-muted: #9CA3AF;
    
    --gradient-hero: linear-gradient(135deg, #0B0F14 0%, #111827 50%, #0284C7 100%);
    --gradient-accent: linear-gradient(90deg, #38BDF8 0%, #0EA5E9 100%);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(56, 189, 248, 0.3);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }

p { margin-bottom: var(--spacing-md); color: #D1D5DB; }

a {
    color: var(--color-blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--color-blue-medium); }

ul { list-style: none; }

img { max-width: 100%; display: block; border-radius: var(--radius-md); }

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section { padding: var(--spacing-xl) 0; }
.bg-graphite { background-color: var(--color-graphite); }
.bg-gray-dark { background-color: var(--color-gray-dark); }
.bg-white { background-color: var(--color-white); color: var(--color-text-dark); }
.bg-white p { color: var(--color-gray-medium); } 
.bg-white h2, .bg-white h3 { color: var(--color-black); }

.grid { display: grid; gap: var(--spacing-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; gap: var(--spacing-md); }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-black);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-blue-light);
    color: var(--color-blue-light);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* Header & Nav */
.header {
    background-color: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}
.logo span { color: var(--color-blue-light); }

.nav-desktop {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: #D1D5DB;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active { color: var(--color-blue-light); }

.mobile-toggle {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-black);
    padding: var(--spacing-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
}

.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--spacing-lg); align-items: center; }
.mobile-menu .nav-link { font-size: 1.25rem; }

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    padding: 6rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

/* Cards & Services */
.card {
    background-color: var(--color-gray-dark);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-blue-medium);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-blue-light);
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: #05080C;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 { margin-bottom: var(--spacing-md); font-size: 1.1rem; }
.footer-col ul li { margin-bottom: var(--spacing-sm); }
.footer-col a { color: #9CA3AF; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-blue-light); }

.copy {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: #6B7280;
    font-size: 0.85rem;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 990;
    transition: transform var(--transition-fast);
}
.floating-btn:hover { transform: scale(1.1); }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    color: var(--color-text-dark);
    padding: var(--spacing-md) 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
    border-top: 3px solid var(--color-blue-light);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.cookie-actions { display: flex; gap: var(--spacing-sm); }

.cookie-banner p { color: var(--color-gray-medium); font-size: 0.9rem; margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-desktop { display: none; }
    .mobile-toggle { display: block; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { text-align: center; padding: 4rem 0; }
    .hero .flex { justify-content: center; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-actions .btn { width: 100%; }
}
