/* header.css - Menú móvil elegante con logo original */

/* =========================================== */
/* VARIABLES GLOBALES */
/* =========================================== */

:root {
    --color-primary: #492E1A;
    --color-secondary: #79632B;
    --color-accent: #B69749;
    --color-light: #C5B7AA;
    --color-very-light: #EFE7E0;
    --color-red: #B2563C;
    --color-white: #FFFFFF;
    --color-black: #333333;
    --color-gray: #666666;
    --color-gray-light: #999999;
    --color-primary-light: rgba(73, 46, 26, 0.1);
    --color-accent-light: rgba(182, 151, 73, 0.1);
    --color-accent-lighter: rgba(182, 151, 73, 0.05);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --border-radius-xs: 4px;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.2s ease;
}

/* =========================================== */
/* HEADER PRINCIPAL */
/* =========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(73, 46, 26, 0.08);
    transition: all 0.3s ease;
    padding: 0.9rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    padding: 0.7rem 0;
}

/* =========================================== */
/* CONTAINER Y NAVBAR */
/* =========================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* =========================================== */
/* LOGO - VERSIÓN ORIGINAL RESTAURADA */
/* =========================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0;
}

.logo:hover {
    transform: translateY(-1px);
}

/* LOGO IMAGE - VERSIÓN ORIGINAL */
.logo-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover .logo-image img {
    transform: scale(1.05);
}

.logo-fallback {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(73, 46, 26, 0.15);
}

/* LOGO TEXT - VERSIÓN ORIGINAL ELEGANTE */
.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: 0.8px;
    margin: 0;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo-text::first-letter {
    color: var(--color-accent);
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.1rem;
    position: relative;
    padding-left: 0.1rem;
}

/* Línea decorativa bajo el logo */
.logo-text-container::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 25px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0.6;
    transition: width 0.3s ease;
}

.logo:hover .logo-text-container::after {
    width: 40px;
}

/* =========================================== */
/* MENÚ DE NAVEGACIÓN DESKTOP - ELEGANTE */
/* =========================================== */

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.8rem;
    flex-grow: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray);
    text-decoration: none;
    padding: 0.5rem 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link i {
    font-size: 0.85rem;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.nav-link:hover i {
    transform: translateX(2px);
    color: var(--color-secondary);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    border-radius: 2px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 1px 3px rgba(182, 151, 73, 0.3);
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* =========================================== */
/* BOTÓN DE MENÚ HAMBURGUESA - ELEGANTE */
/* =========================================== */

.btn-menu {
    display: none;
    background: var(--color-white);
    border: 1px solid rgba(73, 46, 26, 0.12);
    color: var(--color-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.65rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1101;
    box-shadow: 0 2px 8px rgba(73, 46, 26, 0.08);
}

.btn-menu:hover {
    color: var(--color-accent);
    background: var(--color-very-light);
    border-color: rgba(182, 151, 73, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(73, 46, 26, 0.12);
}

.btn-menu.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(73, 46, 26, 0.2);
}

.btn-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(182, 151, 73, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-menu:hover::before {
    opacity: 1;
}

/* =========================================== */
/* MENÚ MÓVIL - ELEGANTE Y PERFECTAMENTE AJUSTADO */
/* =========================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: auto;
    max-height: 380px;
    background-color: var(--color-white);
    z-index: 1100;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-radius: 0 0 0 20px;
    overflow: hidden;
    border-left: 1px solid rgba(73, 46, 26, 0.12);
    border-bottom: 1px solid rgba(73, 46, 26, 0.12);
}

.mobile-menu.active {
    right: 0;
}

/* HEADER ELEGANTE DEL MENÚ MÓVIL */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    height: 62px;
    position: relative;
    overflow: hidden;
}

.mobile-menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.mobile-menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-title::before {
    content: '✈';
    font-size: 15px;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.btn-close-menu {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    font-size: 14px;
    cursor: pointer;
    padding: 7px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.btn-close-menu:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* NAVEGACIÓN ELEGANTE DEL MENÚ MÓVIL */
.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 16px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-very-light) 100%);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--color-gray);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(182, 151, 73, 0.08), transparent);
    transition: left 0.6s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.mobile-nav-link .link-text {
    flex-grow: 1;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mobile-nav-link:hover {
    background-color: rgba(182, 151, 73, 0.08);
    color: var(--color-primary);
    transform: translateX(5px);
    border-color: rgba(182, 151, 73, 0.15);
    box-shadow: 0 3px 12px rgba(73, 46, 26, 0.08);
}

.mobile-nav-link:hover i {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(182, 151, 73, 0.12), rgba(121, 99, 43, 0.08));
    color: var(--color-primary);
    font-weight: 600;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 10px rgba(73, 46, 26, 0.1);
}

.mobile-nav-link.active i {
    color: var(--color-secondary);
}

.mobile-nav-link.active::after {
    content: '›';
    position: absolute;
    right: 14px;
    color: var(--color-accent);
    font-size: 16px;
    opacity: 0.7;
}

/* Overlay elegante */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================== */
/* RESPONSIVE DESIGN ELEGANTE */
/* =========================================== */

@media (max-width: 992px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.92rem;
    }
    
    /* Logo responsive para tablet */
    .logo {
        gap: 0.7rem;
    }
    
    .logo-image {
        width: 48px;
        height: 48px;
    }
    
    .logo-text {
        font-size: 1.7rem;
    }
    
    .logo-subtitle {
        font-size: 0.68rem;
        letter-spacing: 1.8px;
    }
}

/* OCULTAR MENÚ DESKTOP Y MOSTRAR HAMBURGUESA */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .btn-menu {
        display: flex;
    }
    
    .logo {
        gap: 0.65rem;
    }
    
    .logo-image {
        width: 46px;
        height: 46px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
    
    /* MENÚ MÓVIL MÁS ELEGANTE EN TABLETS */
    .mobile-menu {
        width: 250px;
        max-height: 370px;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
    }
    
    .mobile-menu-header {
        padding: 13px 16px;
        height: 60px;
    }
    
    .mobile-menu-title {
        font-size: 16.5px;
    }
    
    .mobile-nav {
        padding: 14px 8px;
        gap: 2px;
    }
    
    .mobile-nav-link {
        padding: 11px 12px;
        font-size: 14px;
    }
    
    .mobile-nav-link i {
        font-size: 12.5px;
        width: 19px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo {
        gap: 0.6rem;
    }
    
    .logo-image {
        width: 44px;
        height: 44px;
    }
    
    .logo-text {
        font-size: 1.5rem;
        letter-spacing: 0.7px;
    }
    
    .logo-subtitle {
        font-size: 0.62rem;
        letter-spacing: 1.2px;
    }
    
    .btn-menu {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    /* MENÚ MÓVIL PERFECTO PARA MÓVILES */
    .mobile-menu {
        width: 240px;
        max-height: 360px;
        border-radius: 0 0 0 18px;
    }
    
    .mobile-menu-header {
        padding: 12px 15px;
        height: 58px;
    }
    
    .mobile-menu-title {
        font-size: 16px;
    }
    
    .btn-close-menu {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .mobile-nav {
        padding: 12px 6px;
        gap: 2px;
    }
    
    .mobile-nav-link {
        padding: 10px 11px;
        font-size: 13.5px;
        border-radius: 9px;
    }
    
    .mobile-nav-link i {
        font-size: 12px;
        width: 18px;
    }
}

/* Para pantallas muy pequeñas (menos de 400px) */
@media (max-width: 400px) {
    .logo-image {
        width: 42px;
        height: 42px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }
    
    .btn-menu {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
    
    /* MENÚ MÓVIL SUPER ELEGANTE PARA PANTALLAS PEQUEÑAS */
    .mobile-menu {
        width: 230px;
        max-height: 350px;
    }
    
    .mobile-menu-header {
        padding: 11px 14px;
        height: 56px;
    }
    
    .mobile-menu-title {
        font-size: 15px;
    }
    
    .mobile-menu-title::before {
        font-size: 14px;
    }
    
    .mobile-nav {
        padding: 11px 5px;
    }
    
    .mobile-nav-link {
        padding: 9px 10px;
        font-size: 13px;
        gap: 10px;
    }
    
    .mobile-nav-link i {
        font-size: 11px;
        width: 17px;
    }
    
    .mobile-nav-link:hover {
        transform: translateX(4px);
    }
}

/* ANIMACIONES ELEGANTES */
@keyframes slideInMenu {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav li {
    animation: slideInMenu 0.4s ease forwards;
    opacity: 0;
}

.mobile-nav li:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav li:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav li:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav li:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav li:nth-child(5) { animation-delay: 0.25s; }

/* EFECTO DE LUZ EN EL BOTÓN DE MENÚ */
.btn-menu::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 12px;
    background: linear-gradient(45deg, 
        rgba(73, 46, 26, 0.1), 
        rgba(182, 151, 73, 0.15), 
        rgba(73, 46, 26, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-menu:hover::after {
    opacity: 1;
}

/* DECORACIÓN EXTRA PARA EL LOGO */
.logo-text-container::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 25px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0.6;
    transition: width 0.3s ease;
}

.logo:hover .logo-text-container::after {
    width: 40px;
}