@font-face {
    font-family: "Humane";
    src: url("../fonts/Humane-Thin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: "Humane";
    src: url("../fonts/Humane-ExtraLight.woff2") format("woff2");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "Humane";
    src: url("../fonts/Humane-Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Humane";
    src: url("../fonts/Humane-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Humane";
    src: url("../fonts/Humane-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Humane";
    src: url("../fonts/Humane-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Humane";
    src: url("../fonts/Humane-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

.logo {
    position: absolute;
    z-index: 6;
    width: 437px;
    height: auto;

    top: 65px;
    left: 50%;
    transform: translateX(-50%);
}

.hero {
    position: relative;
    isolation: isolate;
    height: 100vh;
    overflow: hidden;
    color: #fff;

    background: #fff;
}

.hero__layer {
    position: absolute;
    display: block;
    pointer-events: none;
}

.hero-layer-fondocielo {
    position: absolute;
    Background-image: url("../Imagenes/background-cielo.webp");
    background-size: cover;
    background-position: center;

    top: 178px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    width: 88%;

    border-radius: 56px 56px 0 0;

    height: 94vh;
    object-fit: cover;
}

.falling-leaves {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.falling-leaf-particle {
    position: absolute;
    display: block;
    pointer-events: none;
    animation:
        falling-leaf-travel var(--duration) linear var(--delay) infinite both,
        falling-leaf-opacity var(--duration) linear var(--delay) infinite both;
    will-change: transform, opacity;
}

.falling-leaf-swing,
.falling-leaf-rotation,
.falling-leaf-image {
    display: block;
    width: 100%;
    height: 100%;
}

.falling-leaf-swing {
    animation: falling-leaf-sway var(--swing-duration) ease-in-out var(--swing-delay) infinite;
}

.falling-leaf-rotation {
    transform-style: preserve-3d;
    animation: falling-leaf-rotate var(--rotate-duration) ease-in-out infinite alternate;
}

.falling-leaf-image {
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes falling-leaf-travel {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(var(--x25), var(--y25), 0); }
    50% { transform: translate3d(var(--x50), var(--y50), 0); }
    75% { transform: translate3d(var(--x75), var(--y75), 0); }
    100% { transform: translate3d(var(--x100), var(--y100), 0); }
}

@keyframes falling-leaf-sway {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(var(--sway), 0, 0); }
    50% { transform: translate3d(calc(var(--sway) * -0.65), 0, 0); }
    75% { transform: translate3d(calc(var(--sway) * 0.4), 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes falling-leaf-rotate {
    0% { transform: rotateZ(var(--r0)) rotateY(-12deg) rotateX(8deg); }
    25% { transform: rotateZ(var(--r1)) rotateY(35deg) rotateX(-18deg); }
    50% { transform: rotateZ(var(--r2)) rotateY(-45deg) rotateX(15deg); }
    75% { transform: rotateZ(var(--r3)) rotateY(25deg) rotateX(-12deg); }
    100% { transform: rotateZ(var(--r4)) rotateY(-12deg) rotateX(8deg); }
}

@keyframes falling-leaf-opacity {
    0%, 100% { opacity: 0; }
    8%, 88% { opacity: var(--particle-opacity); }
}

@media (prefers-reduced-motion: reduce) {
    .falling-leaf-particle,
    .falling-leaf-swing,
    .falling-leaf-rotation {
        animation-play-state: paused;
    }
}

.degradadoblanco {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 16%, rgba(255, 255, 255, 0) 100%);
}

.degradadoverde {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00B991;
background: linear-gradient(0deg, rgba(0, 185, 145, 1) 16%, rgba(0, 185, 145, 0) 100%);
}

.container-castle {
    position: absolute;
    z-index: 2;
    right: -20px;
    bottom: -10px;
    height: 88svh;
}

.castle {
    position: relative;
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;

    z-index: 4;
}

.kanji {
    position: absolute;
    display: block;
    z-index: 2;
    left: 100px;
    bottom: 180px;
    width: 81%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);

    animation: hero-appear 4s cubic-bezier(0.34, 1.2, 0.64, 1) 4s both;
}   

.hero__layer--foreground {
    z-index: 3;
    inset: auto 0 0;
    width: 100%;
    max-height: 48%;
    object-fit: cover;
    object-position: center bottom;
}

.hero_content {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 100svh;
    width: 80%;
    max-width: 1000px;
    margin-inline: auto;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    padding: 150px 0 80px;
    text-align: center;

    gap: 05px;


    animation: hero-appear 5s cubic-bezier(0.34, 1.2, 0.64, 1) 4s both;
}

@keyframes hero-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero_title {
    max-width: 100%;
    margin: 0;
    font-size: 40px;
    font-family: "inter", sans-serif;
    font-weight: 400;
    line-height: 0.98;
    text-shadow: 0 2px 16px rgb(28 62 73 / 12%);

    text-align: left;
}

.hotel {
    letter-spacing: 0.14em;
}

.hero_title span {
    display: block;
}

.hero_title strong {
    font-weight: 700;
}

.hero_counter {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 09px;
    margin-top: clamp(18px, 4vw, 38px);
}

.hero_counter-unit {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.hero_counter-value {
    font-family: "Humane", sans-serif;
    font-size: 200px;
    font-weight: 500;
    line-height: 0.65;
    letter-spacing: 0;
}

.hero_counter-label {
    width: 100%;
    margin-top: 14px;
    font-size: 20px;
    text-align: center;

    line-height: 1.2;
}

.hero_counter-separator {
    padding-top: 0.06em;
    font-size: clamp(3rem, 12vw, 7rem);
    line-height: 0.82;
}

.hero_date {
    font-family: "inter", sans-serif;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-align: left;
}

.cerezoizquierda {
    position: absolute;
    z-index: 15;
    top: -86px;
    left: -127px;
    width: 31%;
    height: auto;

    animation: cerezoizquierda-mirror 15s linear infinite alternate;
}

@keyframes cerezoizquierda-mirror {
    to {
        transform: translate(50px, 34px);
    }
}

.cerezoderecha {
    position: absolute;
    z-index: 15;
    top: -16px;
    right: -51px;
    width: 31%;
    height: auto;

    filter: blur(5px);
    animation: cerezoderecha-mirror 15s linear infinite alternate;
}

@keyframes cerezoderecha-mirror {
    to {
        transform: translate(62px, -42px);
    }
}

.cerezoizquierdaabajo {
    position: absolute;
    z-index: 15;
    bottom: -51px;
    left: -21px;
    width: auto;
    height: 45%;

    animation: cerezoizquierdaabajo-mirror 15s linear infinite alternate;
}

@keyframes cerezoizquierdaabajo-mirror {
    to {
        transform: translate(-59px, 30px);
    }
}

.cerezocentro {
    position: absolute;
    z-index: 14;
    bottom: -131px;
    left: 198px;
    width: auto;
    height: 40%;
    transform: rotate(-15deg);
}

.hojacentroverde {
    position: absolute;
    z-index: 13;
    bottom: -70px;
    left: 267px;
    width: auto;
    height: 29%;
}

@media (min-width: 801px) and (max-width: 1200px) {
    .hero-layer-fondocielo {
        top: 16.5%;
        width: 92%;
        height: 95%;
        border-radius: 42px 42px 0 0;
        background-position: center 35%;
    }

    .logo {
        top: 4.5%;
        width: clamp(280px, 36vw, 400px);
    }

    .container-castle {
        right: -2%;
        bottom: -2%;
        height: clamp(450px, 55vw, 680px);
    }

    .kanji {
        left: 32%;
        bottom: 30%;
        width: 65%;
    }

    .hero_content {
        /* Conserva la distribucion de escritorio y reduce todo el bloque un 10%. */
        transform: scale(0.9);
        transform-origin: left center;
    }
}

@media (min-width: 801px) and (max-width: 1200px) and (max-height: 650px) {
    .container-castle {
        height: clamp(220px, 32vw, 300px);
    }

    .kanji {
        bottom: 28%;
    }
}

@media (max-width: 800px) {
    .hero {
        height: 100svh;
        min-height: 620px;
    }

    .logo {
        top: 4.5%;
        width: min(68%, 300px);
    }

    .hero-layer-fondocielo {
        top: 13.3%;
        left: 50%;
        width: 92%;
        height: 95%;
        transform: translateX(-50%);
        border-radius: 36px 36px 0 0;
        background-position: center 35%;
    }

    .container-castle {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -2%;
        height: 45%;
    }

    .kanji {
        left: 0;
        bottom: 16%;
        width: 110%;
    }

    .hero_content {
        position: absolute;
        top: 19.2%;
        left: 0;
        width: 100%;
        min-height: 0;
        padding: 0 12px;
        align-items: center;
        gap: 0;
    }

    .hero_title {
        width: 100%;
        font-size: clamp(25px, 8.2vw, 36px);
        line-height: 1.03;
        text-align: center;
    }

    .hotel {
        letter-spacing: 0.12em;
    }

    .hero_counter {
        width: 100%;
        justify-content: center;
        gap: 0;
        margin-top: clamp(36px, 9vw, 40px);
    }

    .hero_counter-unit {
        width: 25%;
        align-items: center;
    }

    .hero_counter-value {
        font-size: clamp(118px, 39vw, 170px);
    }

    .hero_counter-label {
        margin-top: 14px;
        font-size: clamp(16px, 5.3vw, 24px);
    }

    .hero_counter-separator {
        padding-top: 0.16em;
        font-size: clamp(5rem, 18vw, 6.5rem);
        font-weight: 700;
    }

    .hero_date {
        width: 100%;
        margin-top: 22px;
        font-size: clamp(15px, 5vw, 22px);
        letter-spacing: 0.46em;
        text-align: center;
        white-space: nowrap;
    }

    .cerezoizquierda {
        top: -35px;
        left: -47px;
        width: 35%;
    }

    .cerezoderecha {
        top: -20px;
        right: -43px;
        width: 34%;
    }

    .cerezoizquierdaabajo {
        bottom: -24px;
        left: -14px;
        height: 31%;
    }

    .cerezocentro {
        bottom: -75px;
        left: 29%;
        height: 25%;
    }

    .hojacentroverde {
        bottom: -42px;
        left: 48%;
        height: 18%;
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .hero_counter {
        max-width: 420px;
    }
}

@media (max-width: 1200px) and (max-height: 500px) and (orientation: landscape) {
    .logo {
        top: 18px;
        width: 240px;
    }

    .hero-layer-fondocielo {
        margin-top: 10px;
    }

    .hero_content {
        translate: 0 -40px;
    }
}
