* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    /*backdrop-filter: blur(14px);*/
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-family: "capitana", sans-serif;

}

/* CONTENEDOR */
.header-inner {
    /*padding: 16px 20px;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
}

/* BOTÓN HAMBURGUESA (VISIBLE EN MOBILE) */
.menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: #113960;
    margin: 6px auto;
    transition: transform .3s ease, opacity .3s ease;
}

/* ESTADO ABIERTO → X */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* NAV — MOBILE (OCULTO POR DEFECTO) */
.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    width: 60%;
    height: 100vh;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* LINKS */
.nav-link {
    font-size: 1rem;
    color: #29A3BE;
    text-decoration: none;
    opacity: .9;
}

/* CTA */
/*.btn-cta {*/
/*    padding: 10px 20px;*/
/*    border-radius: 999px;*/
/*    background: linear-gradient(135deg, #00b4d8, #0077b6);*/
/*    color: #fff;*/
/*    box-shadow: 0 6px 18px rgba(0,180,216,.35);*/
/*}*/

/* ACTIVO */
.nav-link.active {
    color: #113960;
    font-weight: 600;
}

#soluciones,
#nosotros {
    scroll-margin-top: 72px; /* ajustá a la altura real del header */
}


@media (min-width: 768px) {
    .header-inner {
        max-width: 1200px;
        margin: auto;
        padding: 18px 24px;
    }

    /* OCULTAR HAMBURGUESA */
    .menu-toggle {
        display: none;
    }

    /* NAV DESKTOP — RESET COMPLETO */
    .nav {
        position: static;          /* ← clave */
        opacity: 1;
        pointer-events: auto;
        transform: none;

        flex-direction: row;
        align-items: center;
        gap: 28px;

        width: auto;               /* ← no 100% */
        height: auto;
        padding: 0;

        background: none;
        backdrop-filter: none;
        box-shadow: none;          /* ← clave */

    }

    .nav-link {
        position: relative;
        font-size: 0.95rem;
        opacity: .85;
        transition: opacity .2s ease;
    }

    .nav-link:hover {
        opacity: 1;
    }

    /* LINEA SUPERIOR */
    .nav-link:not(.btn-cta)::after {
        content: "";
        position: absolute;
        left: 0;
        top: -5px;
        width: 0;
        height: 2px;
        background: #00b4d8;
        transition: width .25s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
        background: #113960;
    }
}
