/* === NAVBAR PERSONALIZADA === */
.custom-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.custom-dropdown.show .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 70px;
}

/* Logo */
.nav-logo {
    transition: transform 0.3s ease;
}
.nav-logo:hover {
    transform: scale(1.05);
}

/* === BARRA DE BÚSQUEDA === */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input {
    width: 100%;
    height: 45px;
    padding: 10px 15px 10px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}
.search-input:focus {
    border-color: #4EB1B3;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(78, 177, 179, 0.15);
    outline: none;
}
.search-icon {
    position: absolute;
    left: 18px;
    color: #9e9e9e;
    font-size: 16px;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

/* === BOTONES DE NAVEGACIÓN === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 42px;
    border: none;
    border-radius: 21px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.custom-btn i {
    margin-right: 8px;
    font-size: 14px;
}
.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.custom-btn:hover::before {
    transform: translateX(0);
}

/* Botón Categorías */
.btn-categories {
    background-color: #f0f0f0;
    color: #333;
}
.btn-categories:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.arrow-icon {
    margin-left: 5px;
    margin-right: 0;
    transition: transform 0.3s ease;
}
.custom-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

/* Botón Publicar */
.btn-publish {
    background: linear-gradient(135deg, #4EB1B3 0%, #39A0A2 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(78, 177, 179, 0.3);
    text-decoration: none;
}
.btn-publish:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 15px rgba(78, 177, 179, 0.4);
}

/* Botón Cuenta */
.btn-account {
    background-color: #f0f0f0;
    color: #333;
}
.btn-account:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botón Login */
.btn-login {
    background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.btn-login:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* === DROPDOWNS UNIFICADOS === */
.custom-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 1000;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}
.custom-dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}
.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}
.dropdown-item:hover {
    background-color: rgba(78, 177, 179, 0.1);
    color: #4EB1B3;
    padding-left: 25px;
}
.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 8px 0;
}
.dropdown-header {
    display: block;
    padding: 8px 20px;
    color: #9e9e9e;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* === MENÚ MÓVIL UNIFICADO === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #4EB1B3;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(78, 177, 179, 0.1);
    transition: all 0.3s ease;
}
.menu-toggle:hover {
    background-color: rgba(78, 177, 179, 0.2);
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 3000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-header h5 {
    margin: 0;
    color: #4EB1B3;
    font-weight: 600;
}
.close-menu {
    background: none;
    border: none;
    color: #9e9e9e;
    font-size: 20px;
    cursor: pointer;
}
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Dropdowns dentro del menú móvil */
.mobile-dropdown-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f5f5f5;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.mobile-dropdown-header i:first-child {
    margin-right: 10px;
}
.mobile-dropdown-header i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}
.mobile-dropdown-header .fas.fa-chevron-down.rotate {
    transform: rotate(180deg);
}
.mobile-dropdown-content {
    background-color: #f9f9f9;
    padding: 10px 15px;
    display: none;
    border-radius: 0 0 10px 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-dropdown-content.open {
    display: block;
    max-height: 300px;
    padding: 10px 15px;
}
.mobile-dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
}
.mobile-dropdown-content a:hover {
    background-color: rgba(78, 177, 179, 0.1);
    color: #4EB1B3;
}

/* Botones móviles */
.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}
.mobile-nav-item i {
    margin-right: 10px;
}
.mobile-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}
.mobile-logout {
    color: #f44336;
}
.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}
.mobile-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* Redes sociales en móvil */
.mobile-social {
    margin-top: 30px;
    text-align: center;
}
.mobile-social p {
    margin-bottom: 15px;
    color: #9e9e9e;
    font-size: 14px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: #4EB1B3;
    color: white;
    transform: translateY(-3px);
}

/* === BANNER PROMOCIONAL === */
.promo-banner {
    background: linear-gradient(90deg, #FFD54F 0%, #FFC107 100%);
    color: #5D4037;
    padding: 7px 0;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.promo-highlight {
    font-weight: 700;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .nav-actions { display: none; }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .search-wrapper { display: none; }
}
@media (min-width: 992px) {
    .mobile-menu { display: none; }
}
