/**
 * Header Component Styles - Compact Version
 * Estilos optimizados para un header más compacto y elegante
 */

/* Header principal */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
    padding: 0.75rem 0; /* Reducido de 1rem */
}

/* Contenedor de navegación */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Reducido de 2rem */
    gap: 1rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* Aumentado para más espacio entre logo y texto */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    width: 40px; /* Reducido de 50px */
    height: 40px; /* Reducido de 50px */
    object-fit: cover;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; /* Reducido de 1.3rem */
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.6rem; /* Reducido aún más para menos separación entre secciones */
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem; /* Reducido de 0.9rem */
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    white-space: nowrap;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(45, 80, 22, 0.05);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Acciones de navegación */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Redes sociales */
.nav-social {
    display: flex;
    gap: 0.75rem; /* Reducido de 1.5rem */
    align-items: center;
}

.social-link {
    color: var(--primary-color);
    font-size: 1rem; /* Reducido de 1.2rem */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Reducido de 40px */
    height: 32px; /* Reducido de 40px */
    border-radius: 50%;
    background: rgba(45, 80, 22, 0.05);
}

.social-link:hover {
    color: var(--secondary-color);
    background: rgba(45, 80, 22, 0.1);
    transform: scale(1.1);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(45, 80, 22, 0.05);
}

.bar {
    width: 20px; /* Reducido de 25px */
    height: 2px; /* Reducido de 3px */
    background: var(--primary-color);
    margin: 2px 0; /* Reducido de 3px */
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Estados activos */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem; /* Reducido aún más para pantallas medianas */
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-link {
        gap: 1rem; /* Ajustado para pantallas medianas */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px; /* Reducido de 70px */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        gap: 0.25rem; /* Reducido aún más para pantallas pequeñas */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 8px;
    }
    
    .nav-link:hover {
        background-color: rgba(45, 80, 22, 0.1);
    }
    
    .nav-social {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .hamburger {
        padding: 0.4rem;
    }
    
    .bar {
        width: 18px;
        height: 2px;
        margin: 1.5px 0;
    }
}

/* Animaciones */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: slideInDown 0.5s ease-out;
}

/* Estados de scroll */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.hidden {
    transform: translateY(-100%);
} 