  html {
    scroll-behavior: smooth;
  }

/* --- CONTENEDOR FIJO Y CENTRADO --- */
.navbar-wrapper {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Permite clicks fuera del menú en los márgenes del 10% */
}

.navbar {
    pointer-events: auto;
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85); /* Semitransparente blanco */
    backdrop-filter: blur(10px); /* Efecto desfoque moderno */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Logo */
.navbar-brand img {
    max-height: 45px;
    width: auto;
    display: block;
}

/* Lista principal */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    position: relative;
}

/* Enlaces del menú */
.nav-link {
    text-decoration: none;
    color: #000055;
	font-family: Calibri;
    /*font-weight: 600;*/
    padding: 10px 16px;
    border-radius: 8px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover general: Naranja Claro */
.nav-link:hover,
.dropdown-link:hover {
    background-color: #FFE5D9; /* Naranja claro suave */
    color: #000055;
}

/* Botón INSCRÍBETE */
.btn-inscribete {
    background-color: #FF7700; /* Naranja vibrante */
    color: #000055 !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 20px;
}

.btn-inscribete:hover {
    background-color: #FF9933 !important; /* Naranja claro al pasar mouse */
}

/* --- SUBMENÚ (DESPLEGABLE) --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 10px;
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    text-decoration: none;
    color: #000055;
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.arrow {
    font-size: 11px;
    margin-left: 4px;
}

/* --- MENÚ HAMBURGUESA --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn .bar {
    height: 3px;
    width: 100%;
    background-color: #000055;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- ESTILOS RESPONSIVOS (MÓVIL) --- */
@media (max-width: 992px) {
    .hamburger-btn {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff; /* Fondo Blanco sólido */
        border-radius: 15px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        display: none;
    }

    /* Estado cuando se abre el menú móvil */
    .navbar-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-link {
        color: #000055;
        text-align: center;
    }

    /* Submenú en móvil */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 5px 0;
        display: none;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        text-align: center;
    }
}