.hero {
    position: relative;
    width: 100vw;
    height: 135svh;
    overflow: hidden;
    background-color: #141313;
    isolation: isolate;
}

.hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero .hero-bg img,
.hero .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60svh;
    background: linear-gradient(360deg,
            rgba(20, 19, 19, 1) 0%,
            rgba(20, 19, 19, 0.5) 40%,
            rgba(20, 19, 19, 0) 100%);
    z-index: 2;
}

.hero .hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--base-100);
    text-align: center;
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    z-index: 3;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 28px;
}

.hero-logo img {
    max-width: 25%;
    width: 100%;
    height: auto;

    opacity: 0;
    transform: translateY(30px);
    filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));

    animation: logoGlowReveal 1.4s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes logoGlowReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: brightness(1.6) drop-shadow(0 0 30px rgba(255, 255, 255, 0.9));
    }

    100% {
        opacity: 0.75;
        /* 👈 aquí controlas la transparencia final */
        transform: translateY(0);
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    }
}


/* ============================= */
/* HERO COCINA - SOLO ESTA SECCIÓN */
/* ============================= */

.hero-cocina {
    height: 120svh;
    /* altura diferente */
}

.hero-cocina .hero-content {
    top: 23%;
    text-align: center;
    gap: 3rem;
}

.hero-cocina .hero-gradient {
    height: 70svh;
    background: linear-gradient(360deg,
            rgba(10, 10, 10, 1) 0%,
            rgba(10, 10, 10, 0.6) 40%,
            rgba(10, 10, 10, 0) 100%);
}

.hero-cocina .hero-tagline {
    color: #e8e2d8;
}

.hero-cocina .hero-logo img {
    max-width: 20%;
    opacity: 0.65;
}


.gradual-spacing {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    min-height: 4.5rem;
}

.gradual-letter {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--base-100);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
    line-height: 1.1;
}

.hero-tagline {
    width: 100%;
    color: var(--base-200);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-tagline.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 18rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 10;
}

.hero-scroll-indicator.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-scroll-indicator .scroll-phrase {
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 1;
    font-weight: 500;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.hero-scroll-indicator .scroll-arrow {
    color: #D4AF37;
    /* Elegant Golden/Champagne hue */
    animation: bounce-glow 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    /* Initial subtle glow so it's never completely dull */
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
}

@keyframes bounce-glow {

    0%,
    100% {
        transform: translateY(-10%);
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
    }

    50% {
        transform: translateY(20%);
        /* Stronger golden pulse when pushing down */
        filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.8));
    }
}

.hero .hero-stats {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.hero .hero-stats .container {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.hero .hero-stats .stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    aspect-ratio: 16/9;
    color: var(--base-200);
    background-color: rgba(242, 237, 230, 0.1);
    backdrop-filter: blur(1rem);
    border-radius: 1rem;
    overflow: hidden;
}

.hero .hero-stats .stat-count,
.hero .hero-stats .stat-info {
    flex: 1;
}

.hero .hero-stats .stat-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
}

.hero .hero-stats .stat-info {
    display: flex;
    align-items: flex-end;
}

@media (max-width: 1000px) {
    .hero {
        height: 100dvh;
    }

    .hero .hero-content {
        width: 100% !important;
        top: 55svh !important;
        /* Push it down below the logo in mobile */
        padding-top: 2rem !important;
    }

    .hero-scroll-indicator {
        bottom: 2rem !important;
        /* Push the scroll indicator down so it doesn't overlap the logo */
    }

    .hero .hero-tagline {
        width: 95% !important;
        /* Use more horizontal space to prevent excessive wrapping */
    }

    .hero .hero-tagline .lg {
        font-size: 0.95rem !important;
        /* Significantly reduce font size on mobile */
        line-height: 1.5 !important;
        letter-spacing: 0.05em !important;
    }

    .hero .hero-stats .container {
        flex-direction: column;
        padding-bottom: 5rem;
    }

    .hero .hero-stats .stat {
        aspect-ratio: 16/6;
    }

    .hero .hero-stats .stat-divider {
        display: none;
    }

    .hero-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 28px;
    }

    .hero-logo img {
        max-width: 50%;
        width: 100%;
        height: auto;
    }

    .hero-cocina .hero-logo img {
        max-width: 50%;
    }
}




.what-we-do {
    width: 100vw;
    height: max-content;
    color: var(--base-100);
    text-align: justify;

}

.what-we-do .container h1 {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    margin-bottom: 4rem;
    color: var(--base-100);
    font-size: 4.5rem;
}

.what-we-do .what-we-do-content {
    width: 100%;
    display: flex;
    gap: 6rem;
}

.what-we-do .what-we-do-col:nth-child(1) {
    flex: 0 0 32%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.what-we-do .what-we-do-col:nth-child(2) {
    flex: 1;
    display: flex;
    align-items: center;
}

.what-we-do .what-we-do-col:nth-child(1) p.lg {
    color: var(--base-250);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: justify;
}

.what-we-do .what-we-do-col:nth-child(1) p {
    color: var(--base-100);
}

.what-we-do .what-we-do-col:nth-child(2) p {
    width: 100%;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.what-we-do .what-we-do-col .what-we-do-tags {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.what-we-do .what-we-do-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
}

.what-we-do .what-we-do-tag p.mono {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--base-200);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.what-we-do .what-we-do-tag:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.what-we-do .what-we-do-tag:hover p.mono {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@media (max-width: 1000px) {
    .what-we-do .container h1 {
        margin-bottom: 2rem;
        font-size: 2rem !important;
        /* Resize large title for mobile */
        text-align: center !important;
    }

    .what-we-do .what-we-do-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .what-we-do .what-we-do-col:nth-child(1) {
        gap: 1.5rem;
    }

    .what-we-do .what-we-do-col:nth-child(1) p.lg {
        text-align: center !important;
    }

    .what-we-do .what-we-do-col:nth-child(2) p {
        width: 100%;
        font-size: 1.15rem !important;
        line-height: 1.5;
        text-align: center !important;
        animation: mobileBrisaGlow 4s ease-in-out infinite alternate !important;
    }

    .what-we-do .what-we-do-col .what-we-do-tags {
        justify-content: center !important;
    }

    .what-we-do .what-we-do-tag {
        padding: 0.8rem 1.4rem;
        border-color: rgba(255, 255, 255, 0.35) !important;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.15) !important;
        /* Persistent glow on mobile */
    }

    @keyframes mobileBrisaGlow {
        0% {
            transform: translateY(0);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
        }

        100% {
            transform: translateY(-5px);
            text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.2);
        }
    }
}

.featured-projects-container {
    position: relative;
    width: 100vw;
    padding: 1rem 0 0 0;
    color: var(--base-100);
    overflow: hidden;
}

.featured-projects-container .featured-projects-header-callout,
.featured-projects-container .featured-projects-header {
    text-align: center;
}

.featured-projects-container .featured-projects-header-callout {
    color: #ffffff;
    margin-bottom: 2rem;
}

.featured-projects-container .featured-projects-header {
    width: 100%;
    margin: 0 auto 2rem auto;
    font-size: 50px;
}

@media (max-width: 1000px) {
    .featured-projects-container .featured-projects-header {
        width: 100%;
        font-size: 1.1rem !important;
        /* Reduce section title size */
        line-height: 1.4;
        font-weight: 400 !important;
        padding: 0 1rem !important;
        text-align: center !important;
        /* Force center alignment on mobile */
    }
}

.client-reviews-container {
    position: relative;
    width: 100vw;
    height: 120svh;
    color: var(--base-100);
    padding: 4rem 0 2rem 0;
}

.client-reviews-container .client-reviews-header-callout {
    text-align: center;
    color: var(--base-350);
    margin-bottom: 1rem;
}

@media (max-width: 1000px) {
    .client-reviews-container .client-reviews-header-callout {
        margin-bottom: 3rem;
    }
}

@media (min-height: 1200px) {
    .client-reviews-container {
        margin: 10rem 0 4rem 0;
        height: 60svh;
    }
}

/* =================== GALLERY SCROLL =================== */

@keyframes gallery-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.gallery-scroll {
    position: relative;
    width: 100vw;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    background-color: var(--base-500);
}

.gallery-scroll-title {
    text-align: center;
    color: var(--base-100);
}

.gallery-scroll-title h2 {
    letter-spacing: 0.15em;
}

.gallery-scroll-track {
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(90deg,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
    -webkit-mask: linear-gradient(90deg,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
}

.gallery-scroll-strip {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: gallery-marquee 25s linear infinite;
}

.gallery-scroll-item {
    flex-shrink: 0;
    width: 20rem;
    height: 20rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-scroll-item:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.gallery-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1000px) {
    .gallery-scroll {
        padding: 4rem 0;
        gap: 2rem;
    }

    .gallery-scroll-item {
        width: 14rem;
        height: 14rem;
    }

    .gallery-scroll-strip {
        gap: 1rem;
        animation-duration: 18s;
    }
}

.hero .hero-tagline .lg {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.8;
    font-weight: 500;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.room-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.room-btn {
    padding: 0.9rem 2.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.room-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DDDDD6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.room-btn:hover {
    border-color: #DDDDD6;
    color: #141313;
}

.room-btn:hover::before {
    transform: scaleX(1);
}

.room-btn.active {
    background-color: #DDDDD6;
    border-color: #DDDDD6;
    color: #141313;
}

@media (max-width: 1000px) {
    .room-filter {
        gap: 0.5rem;
    }

    .room-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.3;
        padding: 0.7rem 0.5rem;
        /* Reduced padding slightly to ensure it fits well */
        font-size: 0.8rem !important;
        /* Smaller font text to ensure it looks adjustable and elegant */
        flex: 1;
        /* Allow them to share width on narrow screens */

        /* User requested golden text with a very soft glow on mobile */
        color: rgba(255, 255, 255, 0.7) !important;
        text-shadow: none !important;
    }

    .room-btn.active {
        /* Keep dark text when active, no golden glow */
        color: #141313 !important;
        text-shadow: none !important;
    }
}
