/* =============================================
   Hero Coming Soon Block
   ============================================= */

.hero-coming-soon {
    width: 91%;
    max-width: 1760px;
    margin-inline: auto;
    padding: 32px 0;
}

.hero-coming-soon__container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* ---------- Image ---------- */
.hero-coming-soon__image-box {
    width: 100%;
    /* height: clamp(500px, 45vw, 680px); */
    height: auto;
    aspect-ratio: 2.4/1;
    background-size: cover;
    background-position: center;
}

.hero-coming-soon__image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(12, 35, 64, 0.75) 0%, rgba(12, 35, 64, 0) 55%);
    z-index: 1;
}

/* ---------- Content ---------- */
.hero-coming-soon__content-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-white);
    z-index: 2;
    padding: clamp(2rem, 5vw, 124px) clamp(2rem, 5vw, 95px);
}

.hero-coming-soon__button--mobile {
    display: none !important;
}

.hero-coming-soon__title {
    font-size: clamp(22px, 4vw, 74px);
    font-family: var(--font-corona);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    display: table; /* Hace que el fondo y la máscara se ajusten al texto */
    line-height: 1.1;
    padding: 0.1rem 0;
    max-width: clamp(300px, 40vw, 550px) !important;

    /* Textura interna */
    background-image: url('/wp-content/uploads/2026/04/title-mask-2.png');
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Máscara de bordes */
    -webkit-mask-image: url('/wp-content/uploads/2026/04/title-mask-2.png');
    mask-image: url('/wp-content/uploads/2026/04/title-mask-2.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.hero-coming-soon__description {
    width: 100%;
    font-family: var(--font-helvetica);
    font-size: var(--text-description);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    max-width: clamp(280px, 40vw, 470px);
    /* max-width: clamp(235px, 30vw, 350px); */
    /* margin-bottom: 13px; */
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

/* ---------- Badge wrapper (coming soon) ---------- */
.hero-coming-soon__badge-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    padding-top: 20px;
    padding-left: 20px;
    border-top-left-radius: 20px;
    background-color: var(--color-grey);
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom right;
    transition:
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.5s ease;
}

.hero-coming-soon__badge-wrapper.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Inverted border radius - top-right corner (above the badge, on the right edge) */
.hero-coming-soon__badge-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 0% 0%, transparent 20px, var(--color-grey) 20px);
}

/* Inverted border radius - bottom-left corner (to the left of the badge, on the bottom edge) */
.hero-coming-soon__badge-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 20px;
    height: 21px;
    background: radial-gradient(circle at 0% 0%, transparent 20px, var(--color-grey) 20px);
}

.hero-coming-soon__badge {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100%;
    max-width: clamp(200px, 20vw, 320px);
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
}

.hero-coming-soon__badge-image {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    padding: 8px;
    background-color: var(--color-dark-blue);
    transition: transform 0.8s ease;
}

.hero-coming-soon__badge-image img {
    display: block;
    width: 90%;
    height: auto;
    margin: auto;
}

.hero-coming-soon__badge-plus {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    color: var(--color-white);
    font-family: var(--font-helvetica);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.hero-coming-soon__badge-text {
    font-family: var(--font-helvetica);
    font-size: var(--text-description);
    font-weight: 500;
    color: var(--color-dark-blue);
    margin: 0;
    padding: 20px 20px 20px 29px;
}

/* =============================================
   Mobile
   ============================================= */
@media (max-width: 768px) {
    .hero-coming-soon {
        width: 100%;
        padding: 20px 10px 0;
    }

    .hero-coming-soon__container {
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }

    .hero-coming-soon__image-box {
        position: relative;
        height: 420px;
        border-radius: 20px;
    }

    .hero-coming-soon__image-box::after {
        display: none;
    }

    .hero-coming-soon__content-box {
        position: static;
        transform: none;
        max-width: 100%;
        padding: 16px 0 32px;
        background-color: var(--color-white);
    }

    .hero-coming-soon__title {
        font-size: 32px;
        color: var(--color-dark-blue);
        margin-bottom: 6px;
        mask-image: none;
    }

    .hero-coming-soon__description {
        max-width: unset;
        font-size: 15px;
        color: var(--color-dark-blue);
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .hero-coming-soon__button--desktop {
        display: none !important;
    }

    .hero-coming-soon__button--mobile {
        display: inline-block !important;
        width: 100%;
    }

    /* Badge mobile */
    .hero-coming-soon__badge-wrapper {
        bottom: auto;
        top: 420px;
        right: 0;
        padding-top: 10px;
        padding-left: 10px;
        transform: translateY(-100%) scale(0);
        transform-origin: bottom right;
        transition:
            transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.5s ease;
    }

    .hero-coming-soon__badge-wrapper.is-visible {
        opacity: 1;
        transform: translateY(-100%) scale(1);
        background-color: var(--color-white);
        border-top-left-radius: 11px;
    }

    .hero-coming-soon__badge-wrapper::before {
        top: -10px;
        right: 0;
        left: auto;
        width: 10px;
        height: 11px;
        background: radial-gradient(circle at 0% 0%, transparent 10px, var(--color-white) 10px);
    }

    .hero-coming-soon__badge-wrapper::after {
        bottom: 0;
        left: -10px;
        right: auto;
        width: 11px;
        height: 10px;
        background: radial-gradient(circle at 0% 0%, transparent 10px, var(--color-white) 10px);
    }

    .hero-coming-soon__badge {
        width: 180px;
        border-radius: 11px;
        background-color: var(--color-white);
    }

    .hero-coming-soon__badge-image img {
        border-radius: 0;
    }

    .hero-coming-soon__badge-text {
        display: none;
    }

    .hero-coming-soon__badge-plus {
        top: 5px;
        right: 5px;
        width: 16px;
        height: 16px;
        font-size: 16px;
    }
}

/* =============================================
   Animations
   ============================================= */
@keyframes heroComingSoonFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-coming-soon__image-box {
    animation: heroComingSoonFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-coming-soon__title {
    animation: heroComingSoonFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-coming-soon__description {
    animation: heroComingSoonFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-coming-soon__button {
    animation: heroComingSoonFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
