/* Custom Tailwind Config */
tailwind.config = {
    theme: {
        extend: {
            fontFamily: {
                inter: ['Inter', 'sans-serif'],
            },
            colors: {
                'primary': {
                    '100': '#E8E9EA', // Gris Perla
                    '200': '#B8BABB', // Gris Perla más oscuro
                    '700': '#3C4142', // Gris Carbón
                    '800': '#2A3038', // Entre Gris Carbón y Azul Marino
                    '900': '#1A2332'  // Azul Marino Profundo
                },
                'secondary': '#3C4142', // Gris Carbón
                'accent': '#4A6FA5'  // Azul Acero
            }
        }
    }
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
    /* Paleta de colores */
    --color-primary-100: #E8E9EA;
    --color-primary-200: #B8BABB;
    --color-primary-700: #3C4142;
    --color-primary-800: #2A3038;
    --color-primary-900: #1A2332;
    --color-secondary: #3C4142;
    --color-accent: #4A6FA5;
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* ========== BODY BASE STYLES ========== */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== HEADER STYLES ========== */
header {
    transition: background-color 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.15s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== HEADER ENHANCED STYLES ========== */
#main-header.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ========== BUTTONS ========== */
.btn-primary {
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ========== SECTIONS ========== */
section {
    position: relative;
}

.section-bg-dark {
    background-color: var(--color-primary-900);
}

.section-bg-light {
    background-color: var(--color-primary-100);
}

/* ========== CARDS ========== */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-accent);
}

.engagement-card {
    transition: all 0.3s ease;
}

.engagement-card:hover {
    border-color: var(--color-accent);
    background-color: #f9fafb;
}

/* ========== HERO SECTION ========== */
.hero-gradient {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-800) 100%);
}

#hero-background {
    transition: opacity 1s ease-in-out;
}

/* ========== UTILITIES ========== */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .hero-gradient {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ========== FOCUS STATES ========== */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========== SELECTION ========== */
::selection {
    background-color: var(--color-accent);
    color: white;
}

::-moz-selection {
    background-color: var(--color-accent);
    color: white;
}
.logo-filter {
    filter: brightness(0) saturate(100%) invert(11%) sepia(25%) saturate(1847%) hue-rotate(188deg) brightness(95%) contrast(93%);
    transition: filter 0.3s ease;
}

.logo-filter:hover {
    filter: brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1520%) hue-rotate(176deg) brightness(92%) contrast(86%);
}

.logo-filter-footer {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    transition: filter 0.3s ease;
}

.logo-filter-footer:hover {
    filter: brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1520%) hue-rotate(176deg) brightness(92%) contrast(86%);
}

/* ========== TESTIMONIALS ========== */
blockquote {
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    color: var(--color-accent);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* ========== ICON STYLES ========== */
.fa-solid {
    display: inline-block;
}

/* ========== ENHANCED HOVER EFFECTS ========== */
.hover\:scale-105:hover {
    transform: scale(1.05);
}