.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-alcaide {
    background: rgba(15, 15, 15, 0.97) !important;
    border-bottom: 2px solid rgba(242, 183, 5, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 68px;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: visible !important;
}

.navbar-alcaide.scrolled {
    background: rgba(10, 10, 10, 1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    border-bottom-color: rgba(242, 183, 5, 0.5);
}

.navbar-brand {
    position: relative;
    height: 68px;
    display: flex;
    align-items: center;
    padding-right: 0;
    min-width: 100px;
}

.navbar-logo {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-27%);
    width: 128px;
    height: auto;
    display: block;
    transition: filter 0.3s ease, opacity 0.3s ease;
    z-index: 1050;
}

.navbar-brand:hover .navbar-logo {
    filter: drop-shadow(0 0 8px rgba(242, 183, 5, 0.55));
    opacity: 0.9;
}

.navbar-alcaide .navbar-toggler {
    border: 1px solid rgba(242, 183, 5, 0.5);
    border-radius: 6px;
    padding: 6px 10px;
    box-shadow: none;
    outline: none;
    z-index: 1060;
}

.navbar-alcaide .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(242, 183, 5, 0.25);
}

.navbar-alcaide .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28242%2C183%2C5%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-alcaide .nav-link {
    color: #C8C8C8 !important;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 0.6rem 1rem !important;
    position: relative;
    transition: color 0.25s ease;
}

.navbar-alcaide .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #F2B705;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.navbar-alcaide .nav-link:hover,
.navbar-alcaide .nav-link:focus,
.navbar-alcaide .nav-link.active {
    color: #F2B705 !important;
    text-decoration: none;
}

.navbar-alcaide .nav-link:hover::after,
.navbar-alcaide .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-alcaide .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
    border-top-color: #F2B705;
    opacity: 0.7;
}

.navbar-alcaide .btn-nav-contacto::after {
    display: none !important;
}

.navbar-alcaide .dropdown-menu {
    --bs-dropdown-bg: #181818;
    --bs-dropdown-link-color: #B8B8B8;
    --bs-dropdown-link-hover-color: #F2B705;
    --bs-dropdown-link-hover-bg: rgba(242, 183, 5, 0.08);
    --bs-dropdown-link-active-color: #F2B705;
    --bs-dropdown-link-active-bg: transparent;

    border: 1px solid rgba(242, 183, 5, 0.18);
    border-top: 2px solid #F2B705;
    border-radius: 10px;
    margin-top: 6px !important;
    min-width: 210px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    padding: 8px 0;
}

.navbar-alcaide .dropdown-item {
    font-size: 1.10rem;
    padding: 9px 20px;
    transition: padding-left 0.2s ease;
}

.navbar-alcaide .dropdown-item:hover,
.navbar-alcaide .dropdown-item:focus {
    padding-left: 26px;
}

.navbar-alcaide .dropdown-item i {
    color: #F2B705;
    width: 18px;
    text-align: center;
}

.navbar-alcaide .btn-nav-contacto {
    background: linear-gradient(135deg, #F2B705 0%, #C98A00 100%) !important;
    color: #1A1A1A !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    margin-left: 10px;
    transition: box-shadow 0.3s ease, transform 0.2s ease !important;
}

.navbar-alcaide .btn-nav-contacto:hover {
    box-shadow: 0 6px 20px rgba(242, 183, 5, 0.45) !important;
    transform: translateY(-1px);
    color: #1A1A1A !important;
    text-decoration: none;
}

.navbar-alcaide .btn-nav-contacto.active,
.navbar-alcaide .btn-nav-contacto:active {
    background: linear-gradient(135deg, #F2B705 0%, #C98A00 100%) !important;
    color: #1A1A1A !important;
    box-shadow: none;
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1055;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 78vw;
    max-width: 320px;
    height: 100dvh;
    background: #111111;
    border-left: 2px solid rgba(242, 183, 5, 0.25);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(242, 183, 5, 0.12);
}

.drawer-logo {
    height: 52px;
    width: auto;
}

.drawer-close {
    background: none;
    border: none;
    color: #C8C8C8;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 3px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.drawer-close:hover {
    color: #F2B705;
    background: rgba(242, 183, 5, 0.08);
}

.drawer-nav {
    list-style: none;
    padding: 16px 0;
    margin: 0;
    flex: 1;
}

.drawer-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.drawer-nav li:last-child {
    border-bottom: none;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: #C8C8C8 !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.drawer-nav a:hover {
    color: #F2B705 !important;
    background: rgba(242, 183, 5, 0.05);
    padding-left: 30px;
}

.drawer-nav a i {
    color: #F2B705;
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.drawer-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0, 0, 0, 0.2);
}

.drawer-submenu.open {
    max-height: 600px;
}

.drawer-submenu li a {
    padding: 11px 24px 11px 62px;
    font-size: 0.95rem;
    color: #9A9A9A !important;
}

.drawer-submenu li a:hover {
    color: #F2B705 !important;
    padding-left: 68px;
}

.drawer-toggle-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #8A8A8A;
}

.drawer-nav .has-submenu.open .drawer-toggle-arrow {
    transform: rotate(180deg);
}

.drawer-footer {
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(242, 183, 5, 0.12);
}

.drawer-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #F2B705 0%, #C98A00 100%);
    color: #111 !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 13px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.drawer-footer a:hover {
    box-shadow: 0 6px 20px rgba(242, 183, 5, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    body {
        padding-top: 64px;
    }

    .navbar-alcaide {
        padding: 0.5rem 1rem;
    }

    .navbar-alcaide .navbar-collapse {
        display: none !important;
    }
}