/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--primary);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(-5deg);
    background: var(--accent);
}

.logo img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent);
    font-weight: 800;
}

/* ===== NAVEGACIÓN ===== */
nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 6px;
    display: block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efecto hover */
nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    z-index: -1;
    transition: var(--transition);
    border-radius: 0 0 50% 50%;
}

nav a:hover {
    color: var(--white);
    transform: translateY(-3px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav a:hover::before {
    height: 180%;
}

/* Botón de contacto */
.contact-btn {
    background: linear-gradient(to right, var(--secondary), var(--accent));
    color: var(--white);
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    font-size: 16px;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

/* Botón de menú móvil */
.mobile-menu-btn {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

/* Estilo para página activa */
nav a.active {
    position: relative;
    font-weight: bold;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    nav ul {
        gap: 5px;
    }
    
    nav a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .contact-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .logo-text {
        font-size: 20px;
    }
    
    nav a {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        width: 100%;
        margin-top: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        border-radius: 0;
        text-align: center;
        background: #f8f8f8;
        padding: 12px 15px;
    }
    
    .contact-btn {
        width: calc(100% - 30px);
        margin: 10px 15px;
        display: block;
    }
    
    .logo {
        height: 50px;
    }
}