@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --header-bg-color: white;
    --body-bg-color: #FAEFED;
}

::-webkit-scrollbar {
    display: none;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

a,
p,
h1,
h2,
h3,
label {
    color: #4A4A4A;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--body-bg-color);
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Oculta contenido visualmente sin eliminarlo para lectores de pantalla y SEO semantico. */
.soloLectoresPantalla {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header,
footer,
header a,
footer a {
    color: black;
    text-decoration: none;
}

footer .contacto img,
header .arrow {
    /* Cambiar imagenes blancas a negro */
    filter: brightness(0);
}

header {
    position: relative;
    z-index: 20;
    background: linear-gradient(to top,
            var(--body-bg-color) 0%,
            var(--header-bg-color) 15%);
    min-height: 12vh;
    padding-block: 12px;
    /* padding: 0 clamp(24px, 15vw, 15vw); */

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    /* 32px*/

    img {
        height: 100%;
    }

    img.imagotipo {
        display: none;
    }

    .logo {
        height: 11vh;
        position: absolute;
        left: 15vw;
        padding: 14px 0;
    }

    nav {
        display: flex;

        a {
            margin: 0;
            margin-right: 25px;
        }

        a:last-child {
            margin-right: 0;
        }
    }

    .fatherDropdown {
        position: relative;
        margin-right: 25px;

        display: flex;
        cursor: pointer;

        span {
            display: flex;
            align-items: center;
        }

        a {
            margin: 0;
        }
    }

    .fatherDropdown a {
        margin: 0;
    }

    .fatherDropdown .hiddenContent {
        position: absolute;
        top: calc(100% - 1px);
        left: 0;

        background: #FAEFED;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
        border-radius: 6px;

        display: flex;
        flex-direction: column;

        width: max-content;
        gap: 10px;
        padding: 15px;
        padding-top: 30px;
        z-index: 10;

        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;
    }

    .fatherDropdown:hover .hiddenContent,
    .fatherDropdown.abierto .hiddenContent {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .fatherDropdown .arrow {
        transition: .2s ease;
    }

    .fatherDropdown:hover .arrow {
        transform: rotate(90deg);
    }

    .fatherDropdown .hiddenContent a {
        font-size: 1.2rem;
        padding: 4px 8px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

    .fatherDropdown .hiddenContent a:hover {
        background-color: rgba(255, 255, 255, 0.72);
        text-decoration: none;
    }

    .dropdownToggle {
        height: 100%;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

header .logo {
    height: 11vh;
    position: absolute;
    left: 15vw;
    padding: 14px 0;
}

header nav {
    display: flex;
}

header nav a {
    margin: 0;
    margin-right: 25px;
}

header nav a:last-child {
    margin-right: 0;
}

.botonToggleMenu {
    display: none;
    position: fixed;
    bottom: 5vh;
    right: 5vh;
    padding: 17px;
    background: #E3A091;
    border-radius: 100%;
    border: none;
    cursor: pointer;
    font-size: 0;

    transition: right .3s ease-out;

    img {
        filter: brightness(0);

    }
}

#botonCerrarMenu {
    position: absolute;
}

.botonOculto {
    right: -8vh;
}

.taparVision {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.taparVision.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menuAbierto {
    overflow: hidden;
    width: 100%;
}

.multilingual {
    position: relative;
    display: flex;
    z-index: 30;
}

.language-selector {
    display: flex;
    position: relative;
}

.flag {
    width: 28px;
    cursor: pointer;
}

.language-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: -6px;

    display: flex;
    flex-direction: column;

    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    background: var(--header-bg-color);

    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    z-index: 40;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: .2s ease;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.language-selector .arrow {
    width: 35px;
    height: 35px;
    transition: .2s ease;
}

.language-selector:hover .arrow {
    transform: rotate(180deg);
}

footer {
    background: linear-gradient(to bottom,
            var(--body-bg-color) 0%,
            var(--header-bg-color) 10%);

    display: flex;
    align-items: center;
    justify-content: space-between;
    align-items: start;

    margin-top: auto;
    padding: 60px clamp(24px, 15vw, 15vw);
    gap: 32px;

    h4 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: normal;
        margin-bottom: 15px;
    }

    p,
    .legal a {
        margin: 10px 0;
    }

    p img {
        margin-right: 10px;
    }

    .logo {
        height: 256px;
    }

    .logo img {
        height: 100%;
    }

    .legal {
        display: flex;
        flex-direction: column;
    }

    .ubicacion {
        color: black;
    }
}

@media (max-width: 1300px) {
    footer {
        padding: 40px clamp(24px, 5vw, 10vw);
    }
}

@media (max-width: 1250px) {
    header {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 28px;
        flex-direction: column;
    }

    header nav {
        padding-top: 15px;
    }

    header .logo {
        position: relative;
        left: 0;
        margin-top: 6px;
        height: fit-content;
    }

    header .logo img.logotipo {
        display: none;
    }

    header .logo img.imagotipo {
        display: block;
        width: 90%;
        height: fit-content;
    }
}

@media (max-width: 850px) {
    footer {
        align-items: center;
        flex-direction: column;
    }

    footer div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .contacto .ubicacion {
        text-align: center;
    }
}

@media (max-width: 720px) {

    header,
    footer {
        padding: 30px clamp(12px, 10vw, 12px);
    }

    header {
        position: fixed;
        bottom: 0;
        right: -80vh;
        width: min(24rem, 82vw);
        height: 100vh;

        justify-content: flex-start;
        align-items: flex-start;

        z-index: 2;

        transition: right .3s ease-out;
    }

    header.mostrar {
        right: 0;
    }

    header .logo {
        width: 100%;
        height: auto;

        padding: 0;

        display: flex;
        justify-content: center;
    }

    header nav {
        height: 100%;
        width: 100%;
        margin: 0;
        padding-top: 15vh !important;

        display: flex;
        flex-direction: column;
        gap: 18px;

        font-size: clamp(1.35rem, 4.4vw, 1.8rem);
    }

    header .fatherDropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        gap: 12px;
    }

    header .fatherDropdown:hover .arrow {
        transform: none;
    }

    header .fatherDropdown a {
        margin-right: 0;
        overflow-wrap: anywhere;
    }

    header .fatherDropdown .dropdownTrigger a {
        flex: 1;
        min-width: 0;
    }

    header .dropdownToggle {
        flex: 0 0 auto;
        width: 2rem;
        height: 2rem;
    }

    header .fatherDropdown .hiddenContent {
        position: static;
        display: none;
        width: 100%;
        gap: 8px;
        padding: 0 0 0 18px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    header .fatherDropdown.abierto .hiddenContent {
        display: flex;
    }

    header .gallery .hiddenContent {
        max-height: 9rem;
        overflow-y: auto;
    }

    header .company .hiddenContent,
    header .gallery .hiddenContent {
        padding-top: 0;
    }

    header .fatherDropdown:hover .hiddenContent {
        display: none;
    }

    header .fatherDropdown.abierto:hover .hiddenContent {
        display: flex;
    }

    header .flag {
        width: 2.25rem !important;
    }

    header .language-selector .arrow {
        height: auto;
        width: 1.8rem;
    }

    .botonToggleMenu {
        display: block;
        width: auto;
        z-index: 1000;
    }

    .taparVision {
        overflow: hidden;
    }
}

@media (max-width: 500px) {
    header nav {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    header .flag {
        width: 2rem !important;
    }
}

@media (max-width: 400px) {
    header {
        width: min(19rem, 88vw) !important;
    }

    header nav {
        font-size: 1.15rem;
    }

    .fatherDropdown .hiddenContent a {
        font-size: 1rem;
    }

    header .flag {
        width: 1.8rem !important;
    }
}
