/* CORRECCIÓN DE GAP ENTRE HEADER Y HERO - SOBREESCRITURA */
body {
    padding-top: 0 !important;
    margin: 0 !important;
}

header, .header {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    background: #0a0f18 !important;
    backdrop-filter: none !important;
}

.hero-section {
    margin-top: 0 !important;
    padding-top: 5.5rem !important;
}

/* En móvil */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 4.5rem !important;
    }
}
/* ===== HEADER ===== */
:root {
    --header-bg: rgba(10, 15, 25, 0.95);
    --header-blur: blur(12px);
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0f18;
    /* ELIMINAR padding-top - usaremos margen negativo */
    padding-top: 0 !important;
    margin: 0 !important;
}

/* Header principal - CORREGIDO SIN GAPS */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #0a0f18 !important; /* Color sólido, sin transparencia */
    backdrop-filter: none !important; /* Eliminar blur que causa problemas */
    border-bottom: none !important; /* Eliminar borde completamente */
    transition: var(--transition-smooth);
    /* Añadir sombra sutil en lugar de borde */
    box-shadow: 0 1px 0 rgba(16, 185, 129, 0.05);
}

.header.scrolled {
    background: #0a0f18 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ===== LOGO ===== */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-color);
    font-weight: 800;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-link:hover .logo-text {
    color: var(--primary-light);
}

/* ===== BOTÓN HAMBURGUESA (Animado) ===== */
.menu-checkbox {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 100;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.menu-checkbox:checked + .hamburger .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-checkbox:checked + .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-checkbox:checked + .hamburger .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ===== NAVEGACIÓN ===== */
.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 60px;
    backdrop-filter: blur(4px);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 40px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link i {
    font-size: 1rem;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.nav-link span {
    position: relative;
}

.nav-link:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
}

.nav-link:hover i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-link.active i {
    color: white;
}

@media (min-width: 992px) {
    .nav-link::before {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%) scale(0);
        width: 6px;
        height: 6px;
        background: var(--primary-color);
        border-radius: 50%;
        transition: var(--transition-smooth);
    }
    
    .nav-link:hover::before {
        transform: translateX(-50%) scale(1);
    }
}

/* ===== BOTÓN CTA HEADER ===== */
.header-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.3rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.header-cta i {
    font-size: 1rem;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* ===== RESPONSIVE - CORRECCIÓN TOTAL ===== */
@media (max-width: 991px) {
    /* Eliminar cualquier espacio */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #0a0f18 !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        /* Asegurar que ocupa su espacio sin gaps */
        min-height: 70px;
        height: auto;
    }
    
    .header-container {
        padding: 0.7rem 1.5rem;
        min-height: 70px;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #0a0f18 !important;
        backdrop-filter: none !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 98;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: none;
    }
    
    .menu-checkbox:checked ~ .navigation {
        right: 0;
    }
    
    .menu-checkbox:checked::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 97;
    }
    
    .nav-menu {
        flex-direction: column;
        background: none;
        padding: 0;
        gap: 0.5rem;
        width: 100%;
        backdrop-filter: none;
    }
    
    .nav-link {
        padding: 1rem 1rem;
        font-size: 1.1rem;
        border-radius: 12px;
        justify-content: flex-start;
    }
    
    .nav-link i {
        width: 28px;
        font-size: 1.2rem;
    }
    
    .nav-link:hover {
        background: rgba(16, 185, 129, 0.1);
        transform: translateX(5px);
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    }
}

/* Tablet landscape */
@media (min-width: 992px) and (max-width: 1200px) {
    .nav-link {
        padding: 0.6rem 1rem;
    }
    
    .nav-link span {
        font-size: 0.85rem;
    }
    
    .header-cta span {
        display: none;
    }
    
    .header-cta {
        padding: 0.6rem 1rem;
    }
}

/* ===== CORRECCIÓN PARA EL HERO ===== */
/* Añadir esto a index.css o aquí mismo */
.hero-section {
    margin-top: 0 !important;
    padding-top: 5.5rem !important; /* Ajustar según altura del header */
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}