﻿/* --- ESTILOS DEL MENU (HEADER) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(27, 38, 50, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 75px; /* Altura fija */
}

/* Marca: Playfair Display */
.header-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Que no se achique */
}

    .header-brand:hover {
        color: #E8B461;
    }

/* Navegación Desktop */
.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 50px; /* Separación forzada del título */
}

    .main-nav a {
        font-family: 'Montserrat', sans-serif;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        transition: all 0.3s ease;
    }

        .main-nav a:hover {
            color: #E8B461;
        }

/* Botón Consultar */
.nav-cta {
    background: #E8B461;
    color: #1B2632 !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(232, 180, 97, 0.15);
}

    .nav-cta:hover {
        background: #ffffff !important;
        transform: translateY(-2px);
    }

/* BOTÓN HAMBURGUESA (Reincorporado) */
.menu-toggle {
    display: none; /* Oculto en desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
}

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #FFFFFF;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

/* --- RESPONSIVE --- */

/* Ajuste para pantallas medianas (Evita que el menú choque con el título) */
@media (max-width: 1150px) {
    .main-nav {
        margin-left: 20px;
        gap: 15px;
    }

        .main-nav a {
            font-size: 0.68rem;
            letter-spacing: 1px;
        }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex; /* Ahora sí se ve */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido */
        width: 280px;
        height: 100vh;
        background: #1B2632;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 10000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

        .main-nav.active {
            right: 0;
        }

        .main-nav a {
            font-size: 1.1rem;
        }

    .header-brand {
        font-size: 1.3rem;
    }

    /* Animación de la X al abrir */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
