/* HEADER */
header {
    width: 100%;
    background-color: var(--azul-principal);
}

/* NAV */
nav {
    background-color: var(--azul-principal);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 90px;
    color: var(--blanco);
    font-size: 1.1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-header {
    display: block;
    width: clamp(170px, 18vw, 245px);
    max-height: 74px;
    height: auto;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu li a{
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu li a:hover{
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1100px) {
    nav {
        height: auto;
        min-height: 100px;
        padding: 12px 24px;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .logo-header {
        width: clamp(190px, 28vw, 235px);
        max-height: 74px;
    }

    .menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 20px;
    }

    .menu li a {
        font-size: 1.05rem;
        padding: 6px 0;
    }

    section {
        scroll-margin-top: 110px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    nav {
        height: 76px;
        padding: 0 18px;
    }

    .logo-header {
        width: clamp(135px, 45vw, 180px);
        max-height: 58px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1101;
    }

    .menu {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background-color: var(--azul-principal);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        margin: 0;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu li {
        width: 100%;
        text-align: center;
    }

    .menu li a {
        display: block;
        width: 100%;
        padding: 18px 20px;
    }
}

/* BANNER */
.banner {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background-image: url("../media/banner.jpg");
    background-size: cover;
    background-position: center;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 24px 40px;
}

.banner-contenido {
    width: 100%;
    padding: 28px 32px;
    color: white;
    animation: fadeInUp 1s ease;
}

.banner-contenido h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.banner-frase {
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(1.15rem, 2.4vw, 1.9rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1100px) {
    .banner {
        min-height: 720px;
    }

    .banner-overlay {
        padding-top: 130px;
    }

    .banner-contenido {
        max-width: 760px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .banner {
        min-height: 620px;
    }

    .banner-overlay {
        padding: 95px 18px 36px;
    }

    .banner-contenido {
        padding: 24px 18px;
    }
}

/* MOBILE CHICO */
@media (max-width: 420px) {
    .banner {
        min-height: 560px;
    }

    .banner-overlay {
        padding-left: 14px;
        padding-right: 14px;
    }

    .banner-contenido h1 {
        margin-bottom: 14px;
    }

    .banner-frase {
        line-height: 1.45;
    }

    .banner-contenido {
        padding-left: 8px;
        padding-right: 8px;
    }
}

.banner-logo {
    display: block;
    width: clamp(64px, 8vw, 95px);
    height: auto;
    margin: 0 auto 22px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

@media (max-width: 768px) {
    .banner-logo {
        width: clamp(56px, 18vw, 76px);
        margin-bottom: 18px;
    }
}