/* ============================= */
/* HEADER PRINCIPAL         */
/* ============================= */
.main-header {
    background-color: #ffffff;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1000;
}

/* LOGO */
.custom-logo {
    height: 80px !important;
    width: auto;
}

/* ============================= */
/* BUSCADOR (PÍLDORA)       */
/* ============================= */
.header-center {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
}

.header-search-form {
    display: flex;
    width: 100%;
    height: 45px; /* Altura de referencia */
    background: #f8f8f8;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-search-form:focus-within {
    background: #fff;
    border-color: #947e1e;
    box-shadow: 0 0 0 3px rgba(148, 126, 30, 0.1);
}

.search-field {
    border: none;
    background: transparent;
    padding: 0 20px;
    flex-grow: 1;
    height: 100%;
    outline: none;
    font-size: 0.95rem;
    color: #555;
}

.search-submit {
    background: #947e1e;
    color: white;
    border: none;
    width: 50px;
    height: 100%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.search-submit:hover {
    background: #7a6615;
}

/* ============================= */
/* ZONA DERECHA (BOTÓN + REDES)  */
/* ============================= */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacio entre el botón y el toggle */
}

/* BOTÓN HAZTE MIEMBRO - Estandarizado a 45px de altura */
.btn-member {
    background-color: #947e1e;
    color: white;
    text-decoration: none;
    padding: 0 20px; /* Eliminamos el padding vertical */
    height: 45px; /* FIJAMOS LA ALTURA */
    display: flex;
    align-items: center; /* Centramos el texto */
    border-radius: 50px; /* Píldora */
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Curva de transición suave */
    white-space: nowrap;
}

.btn-member:hover {
    background-color: #7a6615; /* Tono más oscuro */
    color: #fff;
    transform: translateY(-2px);
}

/* ============================= */
/* DROPDOWN REDES (CIRCULAR)   */
/* ============================= */

.social-menu-container {
    position: relative;
    margin-left: 10px;
}

/* Botón Toggle */
.btn-social-toggle {
    height: 45px;
    padding: 0 15px; 
    border-radius: 50px;
    background: transparent;
    border: 2px solid #947e1e;
    color: #947e1e;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-social-toggle:hover,
.btn-social-toggle.active {
    background: #947e1e;
    color: white;
    transform: translateY(-2px); /* APLICAMOS EFECTO ELEVACIÓN */
}

/* Menú Desplegable (Tira Vertical) */
.social-dropdown {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 60px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #f0f0f0;
    padding: 10px 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado Abierto */
.social-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Botones de Redes (Círculos Pequeños) */
.social-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.social-circle-btn:hover {
    background-color: #947e1e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(148, 126, 30, 0.2);
}

/* ============================= */
/* HAMBURGER & MOBILE       */
/* ============================= */

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #947e1e;
    padding: 5px;
}

/* MOBILE MENU CONTAINER */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2000;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu ul li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #444;
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu ul li a:hover {
    background-color: #faf9f6;
    color: #947e1e;
}

/* Mobile Submenu */
.mobile-menu .sub-menu {
    background-color: #fafafa;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.02);
}

.mobile-menu .sub-menu li a {
    padding-left: 45px;
    font-size: 15px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .header-center {
        display: none;
    }
    
    .btn-member {
        display: none;
    }

    .social-menu-container {
        display: none;
    }

    .main-header {
        padding: 10px 20px;
    }
    .hamburger {
        display: block;
    }
    .navbar {
        display: none;
    }
}