*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f4f4;
    overflow-x:hidden;
}

/* =========================
   HEADER
========================= */

header{
    position:fixed;

    top:15px;
    left:50%;

    transform:translateX(-50%);

    width:calc(100% - 40px);
    max-width:1400px;

    height:80px;

    z-index:9990;

    border-radius:30px;

    background:rgba(255,255,255,.82);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.2);

    box-shadow:
    0 8px 30px rgba(0,0,0,.12);

    transition:.3s ease;
}

/* =========================
   NAVBAR
========================= */

.navbar{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;

    position:relative;

    padding:0 30px;
}

/* =========================
   LOGO
========================= */

.logo{
    display:flex;
    align-items:center;

    text-decoration:none;

    flex-shrink:0;

    margin-left:30px;
}

.logo img{
    height:58px;
    width:auto;

    object-fit:contain;

    transition:.3s ease;
}

.logo img:hover{
    transform:scale(1.03);
}

/* =========================
   LINKS
========================= */

.nav-links{
    list-style:none;

    display:flex;
    align-items:center;
    gap:28px;

    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

.nav-links li{
    position:relative;
}

.nav-links a{
    position:relative;

    color:#0f172a;

    text-decoration:none;

    font-size:15px;
    font-weight:600;

    transition:.3s ease;
}

/* LINEA */
.nav-links a::after{
    content:'';

    position:absolute;

   
    bottom:-6px;

    width:0%;
    height:2px;

    border-radius:20px;

    background:#f838ae;

    transition:.3s ease;
}

.nav-links a:hover{
    color:#f838ae;
}

.nav-links a:hover::after{
    width:100%;
}

/* =========================
   HAMBURGUESA
========================= */

.menu-toggle{
    display:none;

    width:42px;
    height:42px;

    flex-direction:column;
    justify-content:center;
    align-items:center;

    gap:6px;

    cursor:pointer;

    -webkit-tap-highlight-color:transparent;

    margin-right:10px;
}

.menu-toggle span{
    width:28px;
    height:3px;

    background:#0f172a;

    border-radius:20px;

    transition:.3s ease;
}

/* ANIMACION */
.menu-toggle.active span:nth-child(1){
    transform:translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:9999;
}

.menu-toggle.active span:nth-child(3){
    transform:translateY(-9px) rotate(-45deg);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    header{
        top:10px;

        width:calc(100% - 20px);

        height:72px;

        border-radius:22px;
    }

    .navbar{
        padding:0 18px;
    }

    .logo img{
        height:46px;
    }

    /* HAMBURGUESA */
    .menu-toggle{
        display:flex;
    }

    /* MENU */
    .nav-links{
        position:absolute;

        top:85px;

        width:100%;

        background:rgba(255,255,255,.96);

        backdrop-filter:blur(12px);

        border-radius:24px;

        flex-direction:column;

        gap:24px;

        padding:0;

        max-height:0;

        overflow:hidden;

        opacity:0;

        transition:
        max-height .4s ease,
        padding .4s ease,
        opacity .3s ease;

        box-shadow:
        0 20px 40px rgba(0,0,0,.12);
    }

    .nav-links.active{
        max-height:500px;

        padding:30px 20px;

        opacity:1;
    }

    .nav-links a{
        font-size:17px;
    }

}