:root {
    --color-bg-primary: #0A0A0C;
    --color-bg-secondary: #111114;
    --color-bg-elevated: #18181C;
    --color-bg-light: #F5F3EF;
    --color-bg-cream: #EDE8E0;

    --color-text-primary: #F0EDE8;
    --color-text-secondary: rgba(240, 237, 232, 0.55);
    --color-text-dark: #1A1A1E;
    --color-text-dark-muted: rgba(26, 26, 30, 0.55);

    --color-accent: #C5A880;
    --color-accent-warm: #D4B896;
    --color-accent-glow: rgba(197, 168, 128, 0.15);
    --color-accent-deep: #A88B65;

    --font-heading: 'Roboto', serif;
    --font-body: 'Roboto', sans-serif;

    --spacing-section: 160px;
    --spacing-section-mobile: 100px;
    --container-padding: 6vw;

    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 1.4s var(--ease-expo);
    --transition-medium: 0.7s var(--ease-expo);
    --transition-fast: 0.35s ease;

    --glass-bg: rgba(15, 15, 18, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 24px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg-primary);
}

html {
    background-color: var(--color-bg-primary);
    font-size: 16px;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    position: relative;
    cursor: default;

}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: overlay;
}

h1,
h2,
h3,
h4,
.logo,
.hero-title {
    font-family: 'Cinzel';
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

p {
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast), opacity var(--transition-fast);
    cursor: pointer;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding: 0 0 4rem;
    scroll-margin-top: 120px;
}

.dark-section {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.light-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    transition: background 0.5s ease;

    max-width: 100vw;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    gap: 12px;
    padding: 20px var(--container-padding);
    border: none;

    background: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-catalog {
    flex: 0 0 auto;
    position: relative;
    font-family: var(--font-body);
    font-size: clamp(0.78rem, 1.5vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.85rem 2.2rem;
    text-align: center;

    color: rgba(240, 237, 232, 0.70);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    overflow: visible;
    max-width: none;
    transition:
        color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
    white-space: nowrap;
    min-height: 44px;
}

.btn-catalog:hover {
    color: rgba(240, 237, 232, 0.95);
    border-color: rgba(255, 255, 255, 0.50);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-catalog.catalog-active {
    transform: translateY(-1px);
    font-weight: 700;
    color: #FFFFFF;
}

.btn-catalog.premium.catalog-active {
    color: #FFFFFF;
    background: #C49A00;
    border-color: #C49A00;
    text-shadow: 0 0 8px rgba(255, 230, 100, 0.8), 0 0 20px rgba(255, 210, 50, 0.5);
    box-shadow:
        0 6px 24px rgba(196, 154, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 30px rgba(196, 154, 0, 0.35);
    animation: pill-glow-gold 2.5s ease-in-out infinite;
}

.btn-catalog.premium.catalog-active:hover {
    background: #D4A800;
    border-color: #D4A800;
    text-shadow: 0 0 10px rgba(255, 235, 100, 0.9), 0 0 25px rgba(255, 215, 50, 0.6);
    box-shadow:
        0 10px 36px rgba(196, 154, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 50px rgba(196, 154, 0, 0.4);
    transform: translateY(-3px);
}

@keyframes pill-glow-gold {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(196, 154, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 30px rgba(196, 154, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    50% {
        box-shadow: 0 6px 28px rgba(196, 154, 0, 0.70), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 50px rgba(196, 154, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

.btn-catalog.select.catalog-active {
    color: #FFFFFF;
    background: #1A4A8A;
    border-color: #1A4A8A;
    text-shadow: 0 0 8px rgba(120, 180, 255, 0.8), 0 0 20px rgba(80, 150, 255, 0.5);
    box-shadow:
        0 6px 24px rgba(26, 74, 138, 0.60),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(26, 74, 138, 0.40);
    animation: pill-glow-blue 2.5s ease-in-out infinite;
}

.btn-catalog.select.catalog-active:hover {
    background: #1E5099;
    border-color: #1E5099;
    text-shadow: 0 0 10px rgba(140, 200, 255, 0.9), 0 0 25px rgba(100, 170, 255, 0.6);
    box-shadow:
        0 10px 36px rgba(26, 74, 138, 0.70),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 50px rgba(26, 74, 138, 0.45);
    transform: translateY(-3px);
}

@keyframes pill-glow-blue {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(26, 74, 138, 0.60), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 30px rgba(26, 74, 138, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 6px 28px rgba(26, 74, 138, 0.75), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 50px rgba(26, 74, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.btn-catalog.adaptable.catalog-active {
    color: #FFFFFF;
    background: #D4580A;
    border-color: #D4580A;
    text-shadow: 0 0 8px rgba(255, 170, 80, 0.8), 0 0 20px rgba(255, 140, 40, 0.5);
    box-shadow:
        0 6px 24px rgba(212, 88, 10, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(212, 88, 10, 0.38);
    animation: pill-glow-orange 2.5s ease-in-out infinite;
}

.adaptable-video {
    display: grid;
    justify-items: center;
}

.video-frame {
    position: absolute;
    width: 90%;
    height: auto;
    z-index: 10;
    border-radius: 20px;
}

video {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: opacity;
    pointer-events: none;

}

.v-1 {
    animation: crossfade-1 10s infinite ease-in-out;
}

.v-2 {
    animation: crossfade-2 10s infinite ease-in-out;
}

@keyframes crossfade-1 {

    0% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    70% {
        opacity: 0;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes crossfade-2 {

    0% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.btn-catalog.adaptable.catalog-active:hover {
    background: #E06212;
    border-color: #E06212;
    text-shadow: 0 0 10px rgba(255, 190, 100, 0.9), 0 0 25px rgba(255, 160, 60, 0.6);
    box-shadow:
        0 10px 36px rgba(212, 88, 10, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 50px rgba(212, 88, 10, 0.45);
    transform: translateY(-3px);
}

@keyframes pill-glow-orange {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(212, 88, 10, 0.55), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 30px rgba(212, 88, 10, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 6px 28px rgba(212, 88, 10, 0.70), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 50px rgba(212, 88, 10, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.light-section .section-header {
    border: none;
}

::view-transition {
    pointer-events: none;
}

.premium-container,
.select-container,
.adaptable-container {
    width: 100%;
    margin-top: 4rem;
    display: none;

}

.catalog-section {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.catalog-section.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10;
}

.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    pointer-events: none;
    max-width: 100vw;
    overflow: visible;
}

.nav-pill {

    background: white;
    color: black;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 168, 128, 0.12);
    border-radius: 60px;
    display: flex;
    align-items: center;
    transition:
        background 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease;
    pointer-events: auto;
    will-change: auto;
}

.nav-pill:hover {
    border-color: rgba(197, 168, 128, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(197, 168, 128, 0.08);
}

.nav-pill-logo {
    padding: 8px 16px;
}

.nav-pill-logo .logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.nav-pill-logo .logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-pill-logo .logo img:hover {
    opacity: 0.75;
}

.nav-pill-menu {
    color: black;
    padding: 16px 24px;
    gap: 0;
}

.nav-pill-menu .main-nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
    line-height: 0;
}

.nav-pill-menu .main-nav a {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3rem, 3rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;

    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.nav-pill-menu .main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill-menu .main-nav a:hover {
    color: rgb(205, 181, 139);
}

.nav-pill-menu .main-nav a:hover::after {
    width: 100%;
}

.nav-pill-menu .main-nav .social-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-left: 1rem;
    border-left: 1px solid rgba(197, 168, 128, 0.15);
}

.nav-pill-menu .main-nav .social-nav a::after {
    display: none;
}

.nav-pill-menu .social-icon {
    width: 2rem;
    height: 2rem;

    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-pill-menu .social-nav a:hover .social-icon {
    transform: scale(1.2);
    color: var(--color-accent);
}

.nav-pill.scrolled img {
    filter: invert(1);
    transition: filter 0.5s ease;
}

.nav-pill.scrolled {
    background: rgba(10, 10, 12, 0.85);
    color: white;
    border-color: rgba(197, 168, 128, 0.18);
}

.nav-pill-menu.menu-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: black;
    transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.nav-pill.scrolled .mobile-menu-toggle span,
.nav-pill-menu.menu-open .mobile-menu-toggle span {
    background-color: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
    line-height: 0;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    position: relative;

}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-medium);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .social-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav .social-nav a {
    padding-bottom: 0;
    line-height: 0;
}

.main-nav .social-nav a::after {
    display: none;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.main-nav .social-nav a:hover .social-icon {
    transform: scale(1.2);
    color: var(--color-accent);
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-line {
    width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    animation: loadProgress 2s var(--ease-expo) forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-top: 24px;
}

#hero {
    height: 100vh;
    height: 100svh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--container-padding);
    color: var(--color-text-primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to top, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.6) 30%, rgba(10, 10, 12, 0.3) 60%, rgba(10, 10, 12, 0.5) 100%),
        url('../img/casa-h.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1.1);
    will-change: transform;
    contain: strict;
}

.hero-content {
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    overflow: hidden;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(110%);
    animation: revealLine 1.2s var(--ease-expo) forwards;
}

.hero-title .line:nth-child(2) .line-inner {
    animation-delay: 0.15s;
}

@keyframes revealLine {
    to {
        transform: translateY(0);
    }
}

.hero-question {
    display: relative;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 300;
    color: var(--color-text-secondary);

    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.8s;
    letter-spacing: 0.02em;
    line-height: 1.7;
}

.hero-question em {
    color: var(--color-accent);
    font-style: normal;
    font-weight: 400;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.1s;
}

.hero-bottom {
    position: absolute;
    bottom: 50px;
    left: var(--container-padding);
    right: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.hero-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    color: var(--color-text-secondary);
}

.hero-scroll {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-scroll::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-accent);
    display: inline-block;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        width: 30px;
    }

    50% {
        opacity: 1;
        width: 50px;
    }
}

.emotional-section {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

.emotional-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.emotional-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    margin-bottom: 40px;
}

.emotional-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.2;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 35px;
}

.emotional-headline em {
    font-style: normal;
    color: var(--color-accent);
    position: relative;
}

.emotional-body {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.85;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0 auto 50px;
    font-weight: 300;
}

.emotional-section::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.stats-bar {
    padding: 80px 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.vision-section {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-primary);
    position: relative;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.vision-text {
    max-width: 520px;
}

.vision-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.vision-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-primary);
    margin-bottom: 30px;
    line-height: 1.2;
}

.vision-description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    font-weight: 300;
    margin-bottom: 20px;
}

.vision-list {
    list-style: none;
    margin-top: 35px;
}

.vision-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: color var(--transition-fast);
}

.vision-list li:hover {
    color: var(--color-text-primary);
}

.vision-list li::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.vision-image-stack {
    position: relative;
    height: 600px;
}

.vision-image-stack .img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 80%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    border-radius: 2px;
}

.vision-image-stack .img-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    height: 70%;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.vision-image-stack .accent-line {
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 80px;
    height: 1px;
    background: var(--color-accent);
    z-index: 3;
}

#projects {
    position: relative;
}

#projects.light-section .section-header {
    margin: 0 auto;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

#catalog-select {
    background: linear-gradient(160deg,
            #0d0d10 0%,
            #141418 40%,
            #0a0a0d 100%);

    padding: 2rem 1rem 2rem;
    margin: 0 0 3rem;
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.35),
        0 4px 0 rgba(197, 168, 128, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#catalog-select .project-card {
    background: rgba(22, 22, 28, 1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(197, 168, 128, 0.08);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#catalog-select .project-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(197, 168, 128, 0.25);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(197, 168, 128, 0.1);
}

#catalog-select .project-image-wrapper {
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

#catalog-select .project-info {
    padding: 1.2rem 1.4rem 1.4rem;
    background: rgba(18, 18, 22, 1);
    border-top: 1px solid rgba(197, 168, 128, 0.07);
}

#catalog-select .project-info h3 {
    color: var(--color-text-primary) !important;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#catalog-select .project-card:hover .project-info h3 {
    color: var(--color-accent-warm) !important;
    text-shadow: 0 0 20px rgba(197, 168, 128, 0.3);
}

#catalog-select .project-info p {
    color: rgba(197, 168, 128, 0.55) !important;
    font-size: 9px;
    letter-spacing: 0.3em;
}

#catalog-select .btn-mode {
    background: rgba(10, 10, 12, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-intro {
    max-width: 600px;
    margin-bottom: 60px;
}

.projects-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-dark-muted);
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 2fr);
    gap: 10px;
}

.premium-container.is-active {
    display: block;
    width: 100%;
    margin: 7% 0;
    opacity: 1;

}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 0;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
}

.button-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible;
    background: transparent !important;
    border: none !important;
    z-index: 1;

}

.btn-inner-container {
    overflow: visible;
    width: 100% !important;
    height: 100%;
    border-radius: 16px;
    position: relative !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.button-wrapper .premium-template.is-hovered,
.button-wrapper .premium-template:hover {
    transform: translateZ(0) !important;
}

.button-wrapper .sun-wrapper-mini {
    overflow: visible !important;
    clip-path: none !important;
    z-index: -5 !important;

    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
}

.premium-template {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    cursor: pointer;
    will-change: transform, box-shadow;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
}

.premium-text {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    transition: transform 0.5s ease;
    white-space: nowrap;
}

.adaptable-container.is-active {
    display: grid;
    opacity: 1;
}

.adaptable-icon {
    margin: 0 auto;
    width: 60%;
}

.adaptable-icon svg {
    width: 150%;

    color: white;
    filter: drop-shadow(0px 0px 20px #5462ff);
}

.project-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.project-image-wrapper {
    overflow: hidden;
    margin-bottom: 30px;

    position: relative;
    border-radius: 2px;

}

.project-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;

    transition: opacity var(--transition-medium);
    z-index: 2;
}

.img-container {
    position: relative;
    display: grid;

    transition: all 0.5s ease;
    overflow: hidden;
}

.btn-container {
    z-index: 11;
    position: absolute;
    bottom: 0;
    display: grid;
    width: 100%;
    height: 4rem;

    grid-template-columns: 33% 33% 34%;
    justify-content: center;

}

.btn-mode,
.btn-span-3d {
    position: relative;
    padding: 5px;
    background: rgba(20, 20, 20, 1);
    width: 100%;
    height: 4rem;
    border: 0;
    cursor: pointer;
}

.btn-svg {
    width: 3rem !important;
    height: 3rem !important;
}

.sun {

    color: var(--color-accent-warm);
}

.moon {

    color: var(--color-accent-warm);
}

.active svg {
    filter: drop-shadow(0px 0px 2px #fff829);
    transform: scale(1.1);
    transition: transform 0.5s ease, filter 0.5s ease;
}

svg {

    transition: transform 0.5s ease, filter 0.5s ease;
}

.img-t1 {

    z-index: 10;

    filter: saturate(150%);

}

.model {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

model-viewer {
    touch-action: pan-y;
}

.model.hidden {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

.img-t2 {
    position: absolute;
    left: 0;
    z-index: 10;
    opacity: 0;
    filter: saturate(150%);
    animation: change2 4s infinite ease;
}

.img-t3 {
    position: absolute;
    z-index: 10;
    left: 0;
    opacity: 0;
    filter: saturate(150%);
    animation: change2 4s infinite ease 1s;
}

.hidden {

    opacity: 0 !important;
    pointer-events: none !important;

    animation: none !important;
}

.day-group {
    transition: all 0.5s ease;
}

.night-group {
    position: absolute;
    width: 100%;
    transition: all 0.5s ease;
}

@keyframes change {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes change2 {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.project-card:hover .project-image-wrapper::after {}

.project-image-wrapper img {
    width: 100%;

    object-fit: cover;
    transition: transform 1.8s var(--ease-expo);

}

.project-card:hover .project-image-wrapper img {}

.project-info {
    position: relative;
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
    transition: color var(--transition-fast);
}

.project-card:hover .project-info h3 {
    color: var(--color-accent-deep);
}

.dark-section .project-info h3 {
    color: var(--color-text-primary);
}

.project-info p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-text-dark-muted);
    font-weight: 500;
}

.dark-section .project-info p {
    color: var(--color-accent);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    pointer-events: none;
}

.project-card .project-overlay {
    opacity: 1;
    transition: transform 0.5s ease, filter 0.5s ease;

}

.project-overlay span {
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 20;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.active .project-overlay {
    z-index: 20;
    transform: scale(1.2);
    filter: drop-shadow(0px 0px 2px #fff829);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.btn-span-3d {
    background: rgba(20, 20, 20, 1);
    border: none;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.model-active {
    transform: scale(1.2);
    filter: drop-shadow(0px 0px 2px #fff829);
}

#process {
    min-height: 100vh;
    min-height: 100svh;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#process .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

#process .btn-primary {
    font-size: 12px;
    padding: 20px 50px;
    gap: 10px;
    border-radius: 4px;
}

.cta-process {
    text-align: center;
}

.glass-panel-container {
    background-image:
        linear-gradient(to bottom, rgba(10, 10, 12, 0.94), rgba(10, 10, 12, 0.98)),
        url('../img/casa-h.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    overflow: hidden;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 80px var(--container-padding);
    position: relative;
    z-index: 10;
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 500px;
}

.section-header-clean {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-clean span {
    display: block;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 500;
}

.section-header-clean h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0;
    color: var(--color-text-primary);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 70px;
    min-height: 400px;
}

.approach-item {
    padding: 55px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    text-align: center;
    transition: transform var(--transition-medium),
        box-shadow var(--transition-medium),
        background var(--transition-medium),
        border-color var(--transition-medium);
}

.approach-item.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--glass-border);
}

.approach-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(197, 168, 128, 0.15);
}

.approach-number {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.approach-item h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: var(--color-text-primary);
}

.approach-item p {
    color: var(--color-text-secondary);
    line-height: 1.75;
    font-size: 1.1rem;
}

.step-icon {
    margin-bottom: 15px;
}

.step-icon svg {
    width: 56px;
    height: 56px;
    color: var(--color-accent);
}

.cta-section {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-primary);
    margin-bottom: 25px;
    line-height: 1.15;
}

.cta-body {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 550px;
    margin: 0 auto 50px;
    font-weight: 300;
    line-height: 1.8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 44px;
    background: var(--color-accent);
    color: var(--color-bg-primary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid var(--color-accent);
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg-primary);
    transform: translateY(101%);
    transition: transform var(--transition-medium);
}

.btn-primary:hover {
    color: var(--color-accent);
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.2);
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary svg {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 10px 0;
    border: none;
    background: none;
}

.btn-ghost::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.btn-ghost:hover {
    color: var(--color-accent);
}

.btn-ghost:hover::after {
    width: 50px;
}

#contact {

    padding: 60px 2rem;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.footer-grid {
    display: grid;
    padding: 8rem 0;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    border-top: 1px solid var(--glass-border);
}

.footer-left h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 40px;
    max-width: 600px;
}

.footer-email {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--color-accent);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.footer-email:hover::after {
    transform: scaleX(0);
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 20px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    color: var(--color-text-secondary);
}

.footer-col li {
    list-style: none;
    margin-bottom: 14px;
}

.footer-col a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-primary);
    opacity: 0.7;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 35px;
    right: 35px;
    background: #25D366;
    color: #FFF;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.fade-in-up {

    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    contain: layout style;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    contain: layout style;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-reveal {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scale-reveal.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-children>* {

    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.25s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.35s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

[data-parallax] {
    will-change: transform;
    contain: layout;
}

/* --- MEDIA QUERIES AGRUPADOS --- */

@media (max-width: 769px) {
    .grid-container {
        grid-template-columns: repeat(2, 48%);
        gap: 2rem 1rem;
        width: 100%;
        margin: 0 auto;
        justify-items: center;
    }

    .premium-container.is-active {
        margin: 13% 0 0;
        padding: 0 1.25rem;
    }

    .nav-pill-logo .logo img {
        height: 50px;
        width: auto;
        transition: opacity 0.3s ease;
    }

    .nav-pill.scrolled {
        background: rgba(10, 10, 12, 0.85);
        color: white;
        border-color: rgba(197, 168, 128, 0.18);
    }


    .hero-question {
        font-family: var(--font-body);
        display: absolute;
        bottom: 3rem;
        font-size: clamp(1rem, 1.8vw, 1.35rem);
        font-weight: 300;
        color: var(--color-text-secondary);

        max-width: 500px;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 1s ease forwards;
        animation-delay: 0.8s;
        letter-spacing: 0.02em;
        line-height: 1.7;
    }

    .img-container {
        min-height: 280px;
        height: 100%;
    }

    .model {
        position: relative;
        height: 280px;
        min-height: 280px;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .model.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .img-container {

        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .projects-grid {}

    .project-card {
        overflow: hidden;
    }

    :root {
        --spacing-section: 80px;
        --container-padding: 5vw;
    }

    html {
        max-width: 100vw;
    }

    .glass-panel-container {
        background-attachment: scroll;
    }

    body {
        overflow-x: clip;
        max-width: 100vw;
    }

    .section-padding {}


    body::after {
        display: none;
    }


    [data-parallax] {
        will-change: auto;
        contain: none;
    }


    .hero-bg {
        will-change: auto;
        contain: none;
        transform: scale(1.0);
    }


    .nav-pill {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.97);
    }

    .nav-pill.scrolled {
        background: rgba(10, 10, 12, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }


    .reveal-left,
    .reveal-right {
        transform: none;
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: none;
    }


    .fade-in-up {
        will-change: auto;
        contain: none;
    }


    .fade-in-up,
    .reveal-left,
    .reveal-right,
    .scale-reveal {
        transition-duration: 0.5s;
    }

    .section-header {
        gap: 10px;

        flex-wrap: wrap;
        min-height: auto;
        justify-content: center;
    }

    .btn-catalog {

        padding: 1rem 1.8rem;
        font-size: 0.88rem;
        letter-spacing: 0.12em;
        min-height: 56px;
        max-width: none;

        background: rgba(255, 255, 255, 0.12);
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.3);
        color: rgba(240, 237, 232, 0.8);
    }


    .btn-catalog.catalog-active {
        color: #FFFFFF !important;
        font-size: 0.95rem !important;
        transform: scale(1.08) translateY(-2px) !important;
        border-width: 2px;
    }

    .projects-grid,
    .stats-grid,
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }

    .select-container {
        padding: 0 1.5rem;
        overflow-x: clip;
    }

    .projects-grid .project-card {
        width: 100%;
        max-width: 100%;
    }

    .project-image-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .btn-container {
        width: 100%;
        max-width: 100%;
    }

    .approach-item {
        padding: 40px 25px !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }


    .nav-pill-menu {
        padding: 1rem 1rem;
    }


    .nav-pill-menu .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100svh;
        background: rgba(8, 8, 10, 0.98);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-pill-menu .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        line-height: normal;
        transform: translateY(20px);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-pill-menu .main-nav a {
        font-size: 1.4rem;
        letter-spacing: 0.18em;
        color: rgba(240, 237, 232, 0.9);
    }

    .nav-pill-menu .main-nav .social-nav {
        flex-direction: row;
        border-left: none;
        padding-left: 0;
        gap: 2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(197, 168, 128, 0.15);
        padding-top: 1.5rem;
    }

    .nav-pill-menu .main-nav .social-icon {
        width: 2rem;
        height: 2rem;
        color: rgba(197, 168, 128, 0.7);
    }


    .nav-pill-menu .main-nav.mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-pill-menu .main-nav.mobile-open ul {
        transform: translateY(0);
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 4.5rem);
    }

    .vision-image-stack {
        height: 300px;
        margin-top: 30px;
    }

    .footer-left h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .footer-email {
        font-size: 1.4rem;
    }

    .footer-grid {
        padding: 4rem 0;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn-primary,
    .btn-ghost {
        justify-content: center;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

@media (hover: hover) {
    .premium-template:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 24px 50px rgba(0, 0, 0, .6);
    }

    .premium-template:hover .premium-text {
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .fade-in-up {
        transform: translateY(20px);
        transition-duration: 0.6s;
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        gap: 60px 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 5rem 0;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .vision-image-stack {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 481px) {
    :root {
        --spacing-section: 80px;
        --container-padding: 7vw;
    }

    html {
        max-width: 100%;
    }

    body {
        overflow-x: clip;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(3.5rem, 11vw, 4rem);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .button-wrapper {
        width: 100%;
        min-height: 350px !important;

        aspect-ratio: 16 / 9.9;
        height: auto !important;
        display: flex;
        justify-content: center;
    }

    .button-wrapper * {
        max-width: 100% !important;

    }

    .btn-inner-container,
    .premium-container {
        height: 100% !important;
        width: 100% !important;
    }

    .grid-container {
        grid-template-columns: 100%;
        gap: 3rem;
        width: 100%;
        margin: 0 auto;
        justify-items: center;
    }

    .premium-container.is-active {
        margin: 30% 0 0;

    }

    /* #projects {} */
}

@media (max-width: 431px) {
    .grid-container {

        gap: 3.5rem;
    }

    .button-wrapper {
        width: 100%;
    }
}

@media (max-width: 391px) {
    .grid-container {
        padding: 0 0.8rem;
        margin: 0 auto;
        gap: 1.5rem;
        justify-items: center;
    }

    .button-wrapper {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg {
        transform: none !important;
    }

    .fade-in-up,
    .reveal-left,
    .reveal-right,
    .scale-reveal {
        opacity: 1;
        transform: none;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}