/*==================================================
  HERO.CSS
  Zen Spa Home
==================================================*/

/*==============================================
  HERO CONTAINER
==============================================*/

.hero {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 100vh;

    min-height: 100dvh;

    overflow: hidden;

    isolation: isolate;

    background: #090909;

}

/*==============================================
  MEDIA & VIDEO
==============================================*/

.hero-media {

    position: absolute;

    inset: 0;

    z-index: 0;

    overflow: hidden;

}

.hero-video {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transform: scale(1.08);

    will-change: transform, filter;

}

/*==============================================
  OVERLAY & FADE
==============================================*/

.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(

            rgba(0,0,0,.28),

            rgba(0,0,0,.72)

        ),

        radial-gradient(

            circle at 50% 30%,

            rgba(185,145,93,.12),

            transparent 65%

        );

    pointer-events: none;

}

.hero::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 220px;

    background: linear-gradient(to top, #090909, transparent);

    z-index: 1;

    pointer-events: none;

}

/*==============================================
  CONTENT & LAYOUT
==============================================*/

.hero .container {

    position: relative;

    z-index: 2;

}

.hero-content {

    max-width: 760px;

    padding-top: 180px;

    padding-bottom: 120px;

}

/*==============================================
  SUBTITLE
==============================================*/

.hero-subtitle {

    display: inline-flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 30px;

    color: var(--color-primary, #B9915D);

    font-size: .85rem;

    font-weight: 600;

    letter-spacing: .28em;

    text-transform: uppercase;

}

.hero-subtitle::before {

    content: "";

    width: 54px;

    height: 1px;

    background: currentColor;

}

/*==============================================
  TITLE & SPLITTYPE FIXES
==============================================*/

.hero-title {

    margin: 0 0 32px;

    color: #ffffff;

    font-size: clamp(3.2rem, 7vw, 6.6rem);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: normal;

    perspective: 1200px;

    font-variant-ligatures: none;

    text-rendering: optimizeLegibility;

}

/* Correcciones de espacio y renderizado para evitar recortes y solapamientos */

.hero-title .word {

    display: inline-block;

    overflow: visible !important;

    vertical-align: top;

    white-space: nowrap;

    margin-right: 0.15em;

    transform-style: preserve-3d;

}

.hero-title .char {

    display: inline-block;

    letter-spacing: normal !important;

    padding-right: 0.02em;

    overflow: visible !important;

    will-change: transform, opacity;

    transform-style: preserve-3d;

}

/*==============================================
  DESCRIPTION & ACTIONS
==============================================*/

.hero-description {

    max-width: 620px;

    margin-bottom: 48px;

    color: rgba(255, 255, 255, .82);

    font-size: 1.12rem;

    line-height: 1.9;

}

.hero-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

}

/*==============================================
  SCROLL INDICATOR
==============================================*/

.hero-scroll {

    position: absolute;

    left: 50%;

    bottom: 42px;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    z-index: 3;

    text-decoration: none;

    cursor: pointer;

}

.hero-scroll span {

    color: #ffffff;

    opacity: .7;

    font-size: .72rem;

    letter-spacing: .35em;

    text-transform: uppercase;

    transition: opacity .3s ease;

}

.hero-scroll:hover span {

    opacity: 1;

}

.hero-scroll-line {

    position: relative;

    width: 1px;

    height: 72px;

    background: rgba(255, 255, 255, .15);

    overflow: hidden;

}

.hero-scroll-line::after {

    content: "";

    position: absolute;

    top: -100%;

    left: 0;

    width: 100%;

    height: 100%;

    background: var(--color-primary, #B9915D);

    animation: heroScroll 2s linear infinite;

}

@keyframes heroScroll {

    from {

        top: -100%;

    }

    to {

        top: 100%;

    }

}

/*==============================================
  RESPONSIVE
==============================================*/

@media (max-width: 992px) {

    .hero-content {

        margin: auto;

        text-align: center;

        padding-top: 170px;

    }

    .hero-subtitle {

        justify-content: center;

    }

    .hero-subtitle::after {

        content: "";

        width: 54px;

        height: 1px;

        background: currentColor;

    }

    .hero-description {

        margin-inline: auto;

    }

    .hero-actions {

        justify-content: center;

    }

}

@media (max-width: 768px) {

    .hero-content {

        padding-top: 150px;

        padding-bottom: 90px;

    }

    .hero-title {

        font-size: clamp(2.8rem, 11vw, 4.3rem);

    }

    .hero-description {

        font-size: 1rem;

    }

    .hero-actions {

        flex-direction: column;

    }

    .hero-actions .btn {

        width: 100%;

    }

}

@media (max-width: 576px) {

    .hero-scroll {

        bottom: 24px;

    }

}