* { font-family: 'Poppins', sans-serif; box-sizing: border-box; margin: 0; padding: 0; text-decoration: none; }

.navbar {
    position: sticky;
    top: 0;
    background: #000000;
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 4px solid #A91515;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px;
    transition: transform 0.3s;
}
.logo img:hover {
    transform: scale(1.05);
}
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
}
.nav-menu a {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #A91515;
}
.dropdown {
    position: relative;
}
.dropdown > a::after {
    content: ' ▼';
    font-size: 0.8rem;
}
.dropdown:hover .submenu {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    max-height: 300px !important;
}
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000000;
    min-width: 220px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, max-height 0.3s ease;
}
.submenu.open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    max-height: 300px !important;
    box-shadow: 0 6px 15px rgba(169,21,21,0.3);
}
.submenu li {
    border-bottom: 1px solid #1A1A1A;
}
.submenu a {
    display: block;
    padding: 12px 20px;
    color: #FFFFFF;
    font-weight: 400;
    transition: background 0.3s, color 0.3s;
}
.submenu a:hover {
    background: #1A1A1A;
    color: #A91515;
}
.nav-cta {
    background: #A91515;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
}
.nav-cta:hover {
    background: #8B0000;
}
.menu-toggle {
    display: none;
}
.hamburger-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #A91515;
    position: absolute;
    left: 0;
    transition: 0.3s;
}
.hamburger-line:nth-child(1) {
    top: 0;
}
.hamburger-line:nth-child(2) {
    top: 9px;
}
.hamburger-line:nth-child(3) {
    top: 18px;
}

/* Mobile - Espacio + margen izquierda */
@media (max-width: 768px) {
    .hamburger-label {
        display: block;
    }
    .menu-toggle:checked ~ .nav-menu {
        max-height: 700px;
    }
    .menu-toggle:checked ~ .hamburger-label .hamburger-line:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    .menu-toggle:checked ~ .hamburger-label .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger-label .hamburger-line:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .nav-menu li {
        width: 100%;
        padding: 8px 0 8px 20px;
    }
    .dropdown > a {
        padding: 20px 20px 20px 20px;
        display: block;
    }
    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        transform: none;
        visibility: visible;
        max-height: 0;
        transition: max-height 0.3s ease;
    }
    .submenu.open {
        max-height: 300px;
    }
    .submenu a {
        padding: 18px 40px 18px 40px;
    }
    .nav-cta {
        margin: 25px auto;
        display: block;
        width: fit-content;
    }
}