/* Estilos para el header y navegación - VERSIÓN ELEGANTE */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

/* Logo */
.logo img {
    height: 80px;
    transition: all 1s ease;
    filter: brightness(0.9);
    
}

/* Navegación con fuentes elegantes */
.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3.5rem;
}

.nav ul li {
    position: relative;
}

.nav ul li a {
    text-decoration: none;
    color: #2d3748;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.8rem 0;
    text-transform: none;
}

.nav ul li a:hover {
    color: #e63946;
    transform: translateY(-1px);
}

/* Línea decorativa elegante */
.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #e63946, #c1121f);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Menú activo con estilo elegante */
.nav ul li a.active {
    color: #e63946;
    font-weight: 600;
}

.nav ul li a.active::after {
    width: 100%;
    background: #e63946;
}

/* Menú hamburguesa elegante */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: #2d3748;
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    border-radius: 2px;
}

/* Animación del menú hamburguesa más suave */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #e63946;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #e63946;
}

/* Header con scroll - efecto más pronunciado */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.15);
    padding: 0.3rem 0;
}

.header.scrolled .logo img {
    height: 45px;
}

.header.scrolled .nav ul li a {
    font-size: 1rem;
}

/* Efecto de profundidad al hacer hover en el header */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.header:hover::before {
    opacity: 1;
}