/* NESAGAVIRIA - Menu */
/* ================= MENU ================= */
.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px 25px 10px;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-normal);
}

.menu.scrolled {
    background: transparent;
    box-shadow: none;
}

.logo {
    display: inline-block;
    transition: var(--transition-normal);
    height: 120px;
    margin-left: -20px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(140deg); /* Efecto hover con color corporativo */
}

/* NAV (solo lista principal; los submenús usan .nav-dropdown) */
.menu .nav > ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu .nav > ul > li > a {
    font-size: 16px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition-normal);
    position: relative;
    display: inline-block;
}

.menu .nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.menu .nav > ul > li > a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(0, 169, 122, 0.3);
    backdrop-filter: blur(5px);
}

.menu .nav > ul > li > a:hover::after {
    transform: translateX(-50%) scaleX(1);
    background: rgba(255, 255, 255, 1);
}

/* Submenú «Servicios» (referencia: panel glassmorphism + chevron) */
.nav-item--has-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-normal);
}

/* Misma línea animada que los enlaces del menú (solo visible al hover / foco / panel abierto) */
.nav-dropdown__trigger-text {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.nav-dropdown__trigger-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-item--has-dropdown:hover .nav-dropdown__trigger-text::after,
.nav-item--has-dropdown:focus-within .nav-dropdown__trigger-text::after {
    transform: translateX(-50%) scaleX(1);
    background: rgba(255, 255, 255, 1);
}

.nav-item--dropdown-open .nav-dropdown__trigger-text::after {
    transform: translateX(-50%) scaleX(1);
    background: rgba(255, 255, 255, 1);
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible {
    color: #fff;
    background: rgba(0, 169, 122, 0.3);
    backdrop-filter: blur(5px);
}

.nav-dropdown__trigger:focus-visible {
    outline: 2px solid var(--color-secondary, #f0b429);
    outline-offset: 3px;
}

.nav-dropdown__chevron {
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-bottom: 0.12em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.22s ease, margin 0.22s ease;
}

@media (min-width: 992px) {

    .nav-item--has-dropdown:hover .nav-dropdown__chevron,
    .nav-item--has-dropdown:focus-within .nav-dropdown__chevron {
        transform: rotate(-135deg);
        margin-bottom: -0.12em;
    }
}

.nav-item--dropdown-open .nav-dropdown__chevron {
    transform: rotate(-135deg);
    margin-bottom: -0.12em;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 268px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: rgba(0, 120, 88, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
    z-index: 1100;
}

@media (min-width: 992px) {

    .nav-item--has-dropdown:hover .nav-dropdown,
    .nav-item--has-dropdown:focus-within .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.nav-dropdown li a {
    display: block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Botón menú desplegable (visible solo en vista estrecha) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.85);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-secondary, #f0b429);
    outline-offset: 3px;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu.menu--nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu.menu--nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu.menu--nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* HEADER CONTENT */
.header-content {
    text-align: center;
    padding: 120px 20px 80px;
}

.header-content .header-hero__title,
.header-content h1 {
    font-family: "Brush Script MT", "Brush Script Std", cursive;
    font-size: 5.625rem; /* 90px — igual en inicio y parque */
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    text-transform: none;
}

/* Parque: título más largo → tamaño menor para una sola línea en escritorio */
.header--parque .header-hero__title {
    font-size: clamp(1.5rem, 5.5vw, 4.125rem); /* ~66px máx. */
}

.header-content p {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

/* BOTÓN */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    text-transform: uppercase;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-white);
}

.btn:active {
    transform: translateY(-1px);
}

/* Botón inactivo (p. ej. blog futuro): mismo aspecto y hover que .btn; no es enlace */
.btn.btn--inactive {
    cursor: default;
}

