/* ---------------------------------------------------- */
/* CONFIGURACIÓN BASE */
/* ---------------------------------------------------- */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 10px;
}

@font-face {
    font-family: 'Roo';
    src: url("/assets/fonts/RooneySansMedium.OTF");
}

@font-face {
    font-family: 'Ney';
    src: url("/assets/fonts/RooneySansHv.OTF");
}

:root {
    --Rosa: #fd7fed;
    --Azul: #7a81ff;
    --Turquesa: #00e2d5;
    --Verde: #dbfe76;
    --Main: 'Ney';
    --Sec: 'Roo';
}

img {
    width: 100%;
    height: 100%;
}

/* ---------------------------------------------------- */
/* HEADER */
/* ---------------------------------------------------- */

.headerMenu {
    width: 100%;
    height: clamp(5rem, 6vw, 9rem);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: row;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

li a {
    text-decoration: none;
    color: var(--Rosa);
    font-family: var(--Main);
    font-size: clamp(1.4rem, 1.2vw, 1.8rem);
    padding: 0.8rem 1.5rem;
    transition: all 0.4s ease-in-out;
    border-radius: 45px;
}

li a:hover {
    background-color: var(--Verde);
}

.headerLogo {
    height: clamp(3.5rem, 4.5vw, 6.5rem);
    width: auto;
    object-fit: contain;
}

.headerButton {
    height: clamp(4rem, 3.5vw, 5.5rem);
    width: clamp(12rem, 10vw, 18rem);
}

.headerButton img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------------------------------------------------- */
/* HERO BANNER */
/* ---------------------------------------------------- */

.heroBanner {
    width: 100%;
    height: clamp(28rem, 60vw, 90rem);
    overflow: hidden;
    display: block;
    line-height: 0;
}

.heroBanner picture {
    width: 100%;
    height: 100%;
    display: block;
}

.heroBanner picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ---------------------------------------------------- */
/* US (Nosotros) */
/* ---------------------------------------------------- */

.us {
    width: 100%;
    height: auto;
    min-height: 45rem;
    display: flex;
    align-items: center;
}

.usContent {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    padding: 4rem 0;
}

.usContent h1 {
    font-family: var(--Main);
    color: var(--Rosa);
    text-align: center;
    font-size: clamp(2.8rem, 4vw, 6rem);
}

.usContent p {
    text-align: justify;
    padding: 1rem clamp(1rem, 3vw, 6rem);
    font-family: var(--Sec);
    color: grey;
    font-size: clamp(1.3rem, 1.2vw, 1.7rem);
    line-height: 1.7;
}

.usContentImg {
    width: 100%;
    height: clamp(5rem, 5vw, 7rem);
    display: flex;
    justify-content: center;
}

.usContentImg a {
    height: 100%;
    display: flex;
    align-items: center;
}

.usContentImg img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.usImg {
    width: 50%;
    height: 100%;
    padding: clamp(2rem, 3vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.usImg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------------------------------------------------- */
/* MENÚ HAMBURGUESA */
/* ---------------------------------------------------- */

body.no-scroll {
    overflow: hidden;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.mobile-menu-overlay.open {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    padding: 2rem 1.5rem;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.close-menu-icon {
    width: 3rem;
    height: 3rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
}

.mobile-menu-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 5rem;
    padding: 0;
}

.mobile-menu-content li a {
    font-family: var(--Main);
    color: var(--Rosa);
    font-size: 2rem;
    text-decoration: none;
}

.mobile-menu-content li a:hover {
    color: var(--Azul);
}

/* =====================================================
   TABLET — max 1024px
   ===================================================== */
@media (max-width: 1024px) {

    html { font-size: 9px; }

    .headerMenu {
        height: 6rem;
        padding: 0 1.5rem;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    body { padding-top: 6rem; }

    .desktop-nav,
    .headerButton {
        display: none !important;
    }

    .headerLogo {
        height: 4.5rem;
        width: auto;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.5rem;
        height: 3.5rem;
    }

    .mobile-menu-toggle img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .heroBanner {
        height: auto;
        min-height: 280px;
        padding-top: 0;
    }

    .heroBanner picture {
        display: block;
        width: 100%;
        height: auto;
    }

    .heroBanner picture img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
    }

    .us {
        flex-direction: column;
        height: auto;
        padding: 4rem 2rem;
        align-items: center;
        gap: 2rem;
    }

    .usContent,
    .usImg {
        width: 100%;
        height: auto;
    }

    .usContent {
        order: 1;
        align-items: center;
        gap: 2rem;
        padding: 0;
    }

    .usImg {
        order: 2;
        padding: 0 4rem;
    }

    .usContent h1 {
        font-size: 3.5rem;
        text-align: center;
    }

    .usContent p {
        padding: 0 2rem;
        font-size: 1.5rem;
        text-align: justify;
    }

    .usContentImg {
        height: 6rem;
        padding-top: 0.5rem;
    }

    .usImg img {
        width: 70%;
        display: block;
        margin: 0 auto;
    }
}

/* =====================================================
   MOBILE L — 480px – 767px
   ===================================================== */
@media (max-width: 767px) {

    html { font-size: 8.5px; }

    .headerMenu {
        height: 5.5rem;
        padding: 0 1.2rem;
    }

    body { padding-top: 5.5rem; }

    .headerLogo { height: 4rem; }

    .mobile-menu-toggle {
        width: 3rem;
        height: 3rem;
    }

    .mobile-menu-content { width: 85%; }

    .mobile-menu-content li a { font-size: 1.8rem; }

    .heroBanner { min-height: 200px; }

    .heroBanner picture img {
        object-fit: contain;
        height: auto;
    }

    .us { padding: 3rem 1.5rem; }

    .usContent h1 { font-size: 3.2rem; }

    .usContent p {
        padding: 0 1rem;
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .usContentImg { height: 5.5rem; }

    .usImg { padding: 0 2rem; }

    .usImg img { width: 85%; }
}

/* =====================================================
   MOBILE S — max 479px
   ===================================================== */
@media (max-width: 479px) {

    html { font-size: 8px; }

    .headerMenu {
        height: 5rem;
        padding: 0 1rem;
    }

    body { padding-top: 5rem; }

    .headerLogo { height: 3.5rem; }

    .mobile-menu-toggle {
        width: 2.8rem;
        height: 2.8rem;
    }

    .mobile-menu-content {
        width: 92%;
        max-width: 100%;
        padding: 1.5rem 1rem;
    }

    .mobile-menu-content ul {
        margin-top: 4rem;
        gap: 1.2rem;
    }

    .mobile-menu-content li a { font-size: 1.6rem; }

    .close-menu-icon {
        width: 2.5rem;
        height: 2.5rem;
        top: 1rem;
        right: 1rem;
    }

    .heroBanner { min-height: 160px; }

    .us { padding: 2.5rem 1rem; }

    .usContent h1 { font-size: 2.8rem; }

    .usContent p {
        padding: 0 0.5rem;
        font-size: 1.3rem;
        line-height: 1.6;
    }

    .usContentImg { height: 5rem; }

    .usImg { padding: 0 1rem; }

    .usImg img { width: 100%; }
}

/* =====================================================
   LANDSCAPE MÓVIL — altura menor a 500px
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {

    .headerMenu { height: 4.5rem; }

    body { padding-top: 4.5rem; }

    .heroBanner {
        height: auto;
        max-height: 320px;
        min-height: 160px;
    }

    .heroBanner picture img {
        object-fit: contain;
        height: auto;
        max-height: 320px;
    }

    .us {
        flex-direction: row;
        padding: 2rem 1rem;
        gap: 0;
    }

    .usContent,
    .usImg { width: 50%; }

    .usContent h1 { font-size: 2.5rem; }

    .usContent p {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    .usImg { padding: 1rem; }

    .usImg img { width: 100%; }
}