:root {
    --color-yellow: #fbd401;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "futura-pt", sans-serif;
    font-weight: 400;
    font-style: normal;
}

html {
    min-height: 100%;
}

body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #0f6fb0 url("../img/bg-loseta.jpg") repeat;
    background-position: -32px -32px;
    z-index: -1;
}

#water-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(180deg, #1b89e4 0%, #1482dd 50%, #094b82 100%);
    transition: transform 1.1s cubic-bezier(0.42, 0, 0.58, 1);
    transform-origin: bottom;
}

#loading-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    transition: transform 0.7s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.7s ease-in;
}

#loading-center img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

#loading-center p {
    color: #ffffff;
    margin-top: 15px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.wave-layer {
    position: absolute;
    left: 0;
    top: -90px;
    width: 100%;
    height: 90px;
    overflow: hidden;
    pointer-events: none;
}

#wave-back { z-index: 1; }
#wave-front { z-index: 2; }

.wave-scroll {
    width: 100%;
    height: 100%;
}

.water-wave {
    display: block;
    width: 100%;
    height: 100%;
}

#water-loader.draining {
    transform: translateY(100vh);
    transition-delay: 0.15s;
}

#loading-center.draining {
    transform: translate(-50%, calc(-50% + 65vh)) scale(0.82);
    opacity: 0;
}

#bubbles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.3);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(1);
        opacity: 0;
    }
}

.legal-footer {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem 1.5rem;
}

@media (min-width: 996px) {
    .legal-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
        padding: 2.5rem 4rem;
    }
}

.legal-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 996px) {
    .legal-footer__brand {
        align-items: flex-start;
        align-self: stretch;
    }
}

.legal-footer__logo {
    width: 146px;
    max-width: 100%;
    height: 48px;
}

.legal-footer__copyright {
    margin: 0;
    font-size: 0.75rem;
    line-height: 140%;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
}

@media (min-width: 996px) {
    .legal-footer__copyright {
        text-align: left;
    }
}

.legal-footer__nav {
    display: flex;
    width: 100%;
    gap: 1rem;
}

@media (min-width: 996px) {
    .legal-footer__nav {
        width: auto;
        gap: 2rem;
    }
}

.legal-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 0%;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 996px) {
    .legal-footer__col {
        flex: initial;
        gap: 2rem;
    }
}

.legal-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.875rem;
    line-height: 140%;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
}

.legal-footer__arrow {
    display: inline-flex;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.legal-footer__arrow svg {
    fill: currentColor;
}

.legal-footer__link:hover .legal-footer__arrow,
.legal-footer__link:focus-visible .legal-footer__arrow {
    opacity: 1;
}

.landing {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 3rem 1.5rem;
}

.landing__brand {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.landing__wordmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: auto;
    z-index: 1;
}

.landing__duck {
    position: relative;
    z-index: 2;
    width: 70%;
    height: auto;
    display: block;
}

.landing__bano {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

.landing__bottles {
    width: 100%;
    max-width: 301px;
    height: auto;
}

.landing__bano-text {
    line-height: 1.25;
}

.landing__bano-text--white,
.landing__bano-text--yellow {
    font-family: "futura-pt", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-synthesis: none;
}

.landing__bano-text--white {
    color: #ffffff;
    font-size: 30pt;
}

.landing__bano-text--yellow {
    color: var(--color-yellow);
    font-size: 50pt;
    -webkit-text-stroke: 1.5px var(--color-yellow);
}

.landing__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
    width: 100%;
    text-align: center;
    color: #ffffff;
}

.landing__info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 160px;
}

.landing__info-col h2 {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--color-yellow);
}

.landing__info-col p {
    font-size: 1.15rem;
}

.landing__horario-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.landing__horario-row p:first-child {
    border-right: 2px solid var(--color-yellow);
    padding-right: 0.75rem;
}

.landing__horario-row p:last-child {
    padding-left: 0.75rem;
}

.landing__address-street {
    display: block;
    font-weight: 700;
    font-size: clamp(1.25rem, 4.5vw, 1.85rem);
    line-height: 1.15;
}

.landing__pin-logo {
    width: clamp(160px, 45vw, 220px);
    height: auto;
}

.landing__address {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.4;
}

.landing__map-link {
    color: var(--color-yellow);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.15rem;
    margin-top: -0.6rem;
}

.landing__map-link:hover,
.landing__map-link:focus-visible {
    text-decoration: underline;
}

.landing__brand picture,
.landing__bano picture {
    display: contents;
}

/* Móvil */
@media (max-width: 995.98px) {
    body::before {
        background-size: 64px 64px;
    }

    .landing {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "wordmark wordmark"
            "duck duck"
            "banotext banotext"
            "bottles info";
        gap: 1.5rem 1.25rem;
        padding: 2.5rem 1.25rem;
    }

    .landing__brand,
    .landing__bano {
        display: contents;
    }

    .landing__wordmark {
        grid-area: wordmark;
        position: static;
        transform: none;
        width: 35%;
        margin: 0 auto;
    }

    .landing__duck {
        grid-area: duck;
        width: 95%;
        margin: 0 auto;
    }

    .landing__bano-text {
        grid-area: banotext;
        text-align: center;
    }

    .landing__bano-text--white {
        font-size: 18pt;
    }

    .landing__bano-text--yellow {
        font-size: 30pt;
    }

    .landing__bottles {
        grid-area: bottles;
        width: 100%;
        max-width: none;
        justify-self: end;
    }

    .landing__info {
        grid-area: info;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .landing__info-col {
        flex: initial;
    }

    .landing__horario-row {
        grid-template-columns: none;
    }

    .landing__horario-row p:first-child {
        border-right: none;
        border-bottom: 2px solid var(--color-yellow);
        padding-right: 0;
        padding-bottom: 0.5rem;
    }

    .landing__horario-row p:last-child {
        padding-left: 0;
        padding-top: 0.5rem;
    }
}

/* Desktop */
@media (min-width: 996px) {
    .landing {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "info info"
            "brand bano";
        align-items: stretch;
        gap: 0;
        padding: 0 clamp(1.5rem, 5vw, 4rem);
        width: 100%;
    }

    .landing__brand {
        grid-area: brand;
        max-width: none;
        align-items: flex-end;
    }

    .landing__wordmark {
        width: min(28vw, 480px);
    }

    .landing__duck {
        position: sticky;
        bottom: 0;
        width: min(30vw, 520px);
    }

    .landing__info {
        grid-area: info;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        padding: 2.5rem 0;
    }

    .landing__info-col {
        min-width: 0;
    }

    .landing__info-col:first-child {
        flex: 0 1 18%;
    }

    .landing__info-col:not(:first-child) {
        flex: 1 1 38%;
    }

    .landing__bano {
        grid-area: bano;
        justify-content: center;
        padding-bottom: 3rem;
    }
}

@media (min-width: 996px) and (max-width: 1499.98px) {
    .landing__bano-break {
        display: none;
    }

    .landing__wordmark {
        top: 30%;
    }
}

@media (min-width: 1500px) {
    .landing {
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "brand info"
            "brand bano";
    }

    .landing__info {
        justify-content: flex-end;
        padding: 4rem 0 2rem;
    }

    .landing__bano {
        margin-left: auto;
    }
}

@media (min-width: 996px) and (max-height: 959px) {
    .landing__wordmark {
        top: 30%;
    }

    .landing__bottles {
        max-width: 210px;
    }

    .landing__bano-text {
        margin-top: -30px;
    }
}

@media (min-width: 2560px) {
    .landing {
        max-width: 2560px;
        margin: 0 auto;
    }
}

.map-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.map-modal[hidden] {
    display: none;
}

.map-modal__box {
    width: min(380px, 92vw);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    background: #0f6fb0 url("../img/bg-loseta.jpg") repeat;
    background-size: calc(128px / 3) calc(128px / 3);
}

.map-modal__header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.1rem 1.5rem;
}

.map-modal__title {
    color: var(--color-yellow);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
}

.map-modal__body {
    padding: 1.75rem 1.5rem 2rem;
    text-align: center;
}

.map-modal__text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.map-modal__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-modal__btn {
    border: 2px solid #ffffff;
    border-radius: 999px;
    padding: 0.7rem 1.75rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
}

.map-modal__btn--continue {
    background: #00ba58;
    color: #ffffff;
}

.map-modal__btn--cancel {
    background: #dbdbdb;
    color: #676767;
}

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
    }
    #water-loader.draining,
    #loading-center.draining {
        transition-duration: 0.01s;
        transition-delay: 0s;
    }
}
