/* ====================================
   HEADER PADI (AJUSTADO + LOGO PEQUEÑO + MEJOR CONTRASTE)
==================================== */

.header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:10px 8%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    z-index:1000;

     background:
    linear-gradient(
    90deg,
    #2f9648,
    #91cf88,
    #f39b48
    );

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    box-shadow:
    0 10px 30px rgba(0,0,0,.15);

    transition:.4s ease;

}

/* HEADER SCROLLEADO */

.header.scrolled{

    padding:8px 8%;

  background:
    linear-gradient(
    90deg,
    #2f9648,
    #91cf88,
    #f39b48
    );

    box-shadow:
    0 15px 35px rgba(0,0,0,.18);

}

/* ====================================
   LOGO (MÁS PEQUEÑO)
==================================== */

.logo{

    display:flex;

    align-items:center;

    gap:8px;

}

.logo img{

    height:36px; /* 🔥 MÁS PEQUEÑO */

    transition:.4s ease;

}

.header.scrolled .logo img{

    height:32px; /* aún más compacto */

}

/* ====================================
   NAVBAR
==================================== */

.navbar{

    display:flex;

    align-items:center;

    gap:25px;

}

.navbar a{

    position:relative;

    color:white;

    font-size:.95rem;

    font-weight:600;

    text-decoration:none;

    transition:.3s ease;

}

/* SUBRAYADO */

.navbar a::after{

    content:'';

    position:absolute;

    left:0;
    bottom:-8px;

    width:0;
    height:3px;

    border-radius:20px;

    background:#ffffff;

    transition:.35s ease;

}

.navbar a:hover{

    color:#ffe7c2;

}

.navbar a:hover::after{

    width:100%;

}

/* LINK ACTIVO */

.navbar a.active{

    color:#ffb347;

    font-weight:700;

}

.navbar a.active::after{

    width:100%;

    background:linear-gradient(
    90deg,
    #ff7b00,
    #1ba83e
    );

}

/* ====================================
   BOTÓN DEMO
==================================== */

.btn-demo{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:9px 18px;

    border-radius:12px;

    color:white;

    font-size:.85rem;

    font-weight:700;

    background:linear-gradient(
    135deg,
    #eea93b,
    #eea93b
    );

    box-shadow:
    0 10px 25px rgba(255,106,0,.35);

    transition:.35s ease;

}

.btn-demo:hover{

    transform:translateY(-4px);

    box-shadow:
    0 18px 35px rgba(255,106,0,.45);

}

/* ====================================
   MENU MOBILE
==================================== */

.menu-toggle{

    display:none;

    font-size:1.6rem;

    color:white;

    cursor:pointer;

}

/* ====================================
   RESPONSIVE
==================================== */

@media(max-width:992px){

    .navbar{

        position:fixed;

        top:70px;

        right:-100%;

        width:280px;

        height:calc(100vh - 70px);

   background:
    linear-gradient(
    90deg,
    #2f9648,
    #91cf88,
    #f39b48
    );

        flex-direction:column;

        align-items:flex-start;

        padding:40px 30px;

        gap:25px;

        transition:.4s ease;

        box-shadow:-10px 0 30px rgba(0,0,0,.2);

    }

    .navbar.active{

        right:0;

    }

    .menu-toggle{

        display:block;

    }

    .btn-demo{

        display:none;

    }

}

@media(max-width:768px){

    .header{

        padding:10px 5%;

    }

    .logo img{

        height:30px; 

    }

}