/* ==========================================================================
   Quality Premier Homes · Hoja de estilos principal
   ========================================================================== */

:root {
    --ink: #0e1116;
    --ink-2: #161b22;
    --ink-3: #222a35;
    --cream: #f6f2ec;
    --cream-2: #ede6dc;
    --white: #ffffff;
    --gold: #c9a46a;
    --gold-2: #e2c48f;
    --gold-dark: #a8844c;
    --text: #1d232b;
    --muted: #6b7280;
    --line: rgba(14, 17, 22, .1);
    --line-light: rgba(255, 255, 255, .14);

    --ff-serif: "Playfair Display", Georgia, serif;
    --ff-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 20px 60px -20px rgba(14, 17, 22, .25);
    --shadow-lg: 0 40px 100px -30px rgba(14, 17, 22, .45);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.77, 0, .175, 1);
    --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0;
    font-family: var(--ff-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.2em; }
em { font-style: italic; color: var(--gold); }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1280px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--tight { padding-top: 60px; }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
    color: var(--gold-dark); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero .eyebrow, .page-hero .eyebrow, .model-hero .eyebrow, .footer .eyebrow, .section--dark .eyebrow, .featured .eyebrow { color: var(--gold-2); }
.hero__eyebrow::before { display: none; }
.hero__eyebrow .line { width: 40px; height: 1px; background: currentColor; display: inline-block; }

.h-section { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.h-sub { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.section-head { margin-bottom: clamp(40px, 6vw, 70px); max-width: 760px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: none; flex-wrap: wrap; }
.section-head__lead { max-width: 440px; color: var(--muted); margin: 0; }

/* ---------- Botones ---------- */
.btn {
    --bg: var(--ink); --fg: var(--white);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border-radius: 100px;
    background: var(--bg); color: var(--fg);
    font-weight: 600; font-size: .95rem; letter-spacing: .02em;
    overflow: hidden; isolation: isolate;
    transition: color .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
    will-change: transform;
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--ink); border-radius: inherit;
    transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); box-shadow: 0 12px 30px -10px rgba(201, 164, 106, .7); }
.btn--gold:hover { color: var(--white); }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--outline { --bg: transparent; --fg: var(--ink); border: 1px solid var(--ink); }
.btn--outline:hover { color: #fff; }
.btn--sm { padding: 11px 22px; font-size: .85rem; }
.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(.3); transition: transform .6s var(--ease); }
.link-arrow:hover::after { transform-origin: left; transform: scaleX(1); }
.link-arrow svg { transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999; background: var(--ink); color: var(--gold);
    display: grid; place-items: center;
    transition: clip-path 1.1s var(--ease-io) .1s;
    clip-path: inset(0 0 0 0);
}
.is-loaded .preloader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__logo .logo__img { height: auto; width: min(340px, 72vw); opacity: 0; transform: translateY(14px) scale(.96); animation: logoIn 1.1s var(--ease) .1s forwards; }
.preloader__bar { width: 180px; height: 1px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--gold); animation: load 1.4s var(--ease) forwards; transform-origin: left; transform: scaleX(0); }
@keyframes logoIn { to { opacity: 1; transform: none; } }
@keyframes load { to { transform: scaleX(1); } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--gold); }
.cursor__ring { width: 40px; height: 40px; border: 1px solid rgba(201, 164, 106, .6); transition: width .4s var(--ease), height .4s var(--ease), background .4s, border-color .4s; }
.cursor.is-hover .cursor__ring { width: 74px; height: 74px; background: rgba(201, 164, 106, .12); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
    .cursor { display: block; }
}

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001; background: linear-gradient(90deg, var(--gold-dark), var(--gold-2)); transform-origin: left; transform: scaleX(0); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo__img { display: block; height: 50px; width: auto; max-width: 100%; }
.header.is-scrolled .logo__img { height: 44px; }
.header .logo__img { transition: height .5s var(--ease); }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
    color: var(--white);
    transition: background .5s var(--ease), height .5s var(--ease), transform .6s var(--ease), box-shadow .5s, color .5s;
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__brand { margin-right: auto; flex: none; }
.header__cta { white-space: nowrap; flex: none; }
.header.is-scrolled { --header-h: 72px; background: rgba(14, 17, 22, .82); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .5); }
.header.is-hidden { transform: translateY(-100%); }

.nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: block; white-space: nowrap; padding: 10px 16px; font-size: .92rem; font-weight: 500; overflow: hidden; height: 46px; }
.nav__link span, .nav__link::after { display: block; transition: transform .55s var(--ease); }
.nav__link::after { content: attr(data-text); position: absolute; left: 16px; top: 100%; color: var(--gold); padding-top: 10px; }
.nav__link:hover span, .nav__link:hover::after { transform: translateY(-100%); }
.nav__link::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease); }
.nav__link.is-active::before { transform: translateX(-50%) scale(1); }

.header__phone { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; opacity: .85; transition: opacity .3s, color .3s; }
.header__phone:hover { opacity: 1; color: var(--gold-2); }

.header__login {
    display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-light); color: inherit; margin-left: -14px;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.header__login:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (max-width: 960px) { .header__login { margin-right: -22px; } }

/* Selector de idioma EN / ES */
.lang { display: inline-flex; flex: none; align-items: center; padding: 3px; margin-left: -14px; border: 1px solid var(--line-light); border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.lang__opt { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; opacity: .7; transition: background .35s var(--ease), color .35s var(--ease), opacity .3s; }
.lang__opt:hover { opacity: 1; color: var(--gold-2); }
.lang__opt.is-active { opacity: 1; background: var(--gold); color: var(--ink); }
.lang--menu { margin: 18px 0 0; justify-self: start; border-color: rgba(255, 255, 255, .2); font-size: .82rem; }
.lang--menu .lang__opt { padding: 0 16px; letter-spacing: .04em; }
@media (max-width: 480px) {
    .header__inner { gap: 24px; }
    .lang { padding: 2px; font-size: .68rem; }
    .lang__opt { min-width: 30px; height: 32px; padding: 0 6px; }
}
@media (max-width: 340px) { .header .lang { display: none; } }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-light); position: relative; z-index: 1002; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 999; pointer-events: none; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 120px 32px 40px; }
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: circle(0 at calc(100% - 50px) 44px); transition: clip-path .9s var(--ease-io); }
.menu__nav, .menu__foot { position: relative; }
.menu__nav { display: grid; gap: 6px; }
.menu__link { font-family: var(--ff-serif); font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1.15; opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s; display: flex; align-items: baseline; gap: 16px; }
.menu__link small { font-family: var(--ff-sans); font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
.menu__link.is-active, .menu__link:hover { color: var(--gold-2); }
.menu__foot { margin-top: 50px; display: grid; gap: 6px; opacity: 0; transition: opacity .6s .5s; color: rgba(255, 255, 255, .7); }
.menu-open .menu { pointer-events: auto; }
.menu-open .menu__bg { clip-path: circle(150% at calc(100% - 50px) 44px); }
.menu-open .menu__link { opacity: 1; transform: none; }
.menu-open .menu__link:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__link:nth-child(2) { transition-delay: .32s; }
.menu-open .menu__link:nth-child(3) { transition-delay: .39s; }
.menu-open .menu__link:nth-child(4) { transition-delay: .46s; }
.menu-open .menu__foot { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); padding: 140px 0 190px; }
.hero__slides { position: absolute; inset: -4%; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.18); transition: opacity 1.6s var(--ease), transform 8s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1.02); }
.hero__overlay { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(14, 17, 22, .88) 0%, rgba(14, 17, 22, .55) 45%, rgba(14, 17, 22, .15) 100%),
    linear-gradient(0deg, rgba(14, 17, 22, .7) 0%, transparent 40%); }
.hero__grain { position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(3rem, 8.2vw, 7.4rem); line-height: .98; font-weight: 400; margin: 0 0 30px; letter-spacing: -.02em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: block; }
.hero__title em { color: var(--gold-2); }
.hero__lead { max-width: 520px; font-size: 1.12rem; color: rgba(255, 255, 255, .78); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Animación de entrada del hero (se activa al terminar la carga) */
.js .hero__line > span { transform: translateY(110%) rotate(3deg); transform-origin: left top; transition: transform 1.3s var(--ease); }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .finder, .js .hero__dots, .js .hero__scroll { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.is-ready .hero__line > span { transform: none; }
.is-ready .hero__line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .hero__line:nth-child(3) > span { transition-delay: .2s; }
.is-ready .hero__eyebrow { opacity: 1; transform: none; }
.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: .45s; }
.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: .6s; }
.is-ready .finder { opacity: 1; transform: none; transition-delay: .8s; }
.is-ready .hero__dots, .is-ready .hero__scroll { opacity: 1; transform: none; transition-delay: 1s; }

.glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
.glass-light { background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(16px); box-shadow: var(--shadow); }

.finder { position: absolute; z-index: 3; left: 50%; bottom: 60px; translate: -50% 0; width: min(980px, 100% - 48px); display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; padding: 10px; border-radius: 100px; }
.finder__field { display: grid; padding: 8px 26px; border-right: 1px solid rgba(255, 255, 255, .15); }
.finder__field span { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-2); font-weight: 700; }
.finder select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") right center no-repeat; border: 0; color: #fff; font: 600 1rem var(--ff-sans); padding: 2px 20px 2px 0; cursor: pointer; outline: none; }
.finder select option { color: var(--ink); }
.finder .btn { padding-inline: 34px; }

.hero__dots { position: absolute; z-index: 3; right: 48px; top: 50%; display: grid; gap: 14px; translate: 0 -50%; }
.hero__dots button { width: 3px; height: 40px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; border-radius: 3px; }
.hero__dots button span { position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: top; }
.hero__dots button.is-active span { animation: dotfill 6s linear forwards; }
@keyframes dotfill { to { transform: scaleY(1); } }

.hero__scroll { position: absolute; z-index: 3; left: 48px; bottom: 70px; display: grid; justify-items: center; gap: 12px; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 60px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--gold); animation: scrolldown 2s var(--ease-io) infinite; }
@keyframes scrolldown { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--white); padding: 26px 0; overflow: hidden; border-top: 1px solid var(--line-light); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 35s linear infinite; }
.marquee__track span { font-family: var(--ff-serif); font-size: clamp(1.4rem, 3vw, 2.2rem); font-style: italic; white-space: nowrap; }
.marquee__track b { color: var(--gold); font-size: 1.2rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal-card { opacity: 0; transform: translateY(70px) scale(.97); transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
.js .reveal.is-in, .js .reveal-card.is-in { opacity: 1; transform: none; }
.js .hero-in { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.is-ready .hero-in { opacity: 1; transform: none; }
.is-ready .hero-in:nth-of-type(2) { transition-delay: .12s; }
.is-ready .page-hero__lead.hero-in, .is-ready .model-hero__bar.hero-in { transition-delay: .25s; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.is-in .w > span { transform: none; }

.img-reveal { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--ink-3); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; }
.js .img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.js .img-reveal img { transform: scale(1.3); transition: transform 1.8s var(--ease); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); }
.js .img-reveal.is-in img { transform: scale(1.1); }

.img-fallback { opacity: 0; }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro .text-fill { font-size: clamp(1.6rem, 2.7vw, 2.4rem); line-height: 1.35; font-weight: 400; margin-bottom: 36px; }
.text-fill .tw { color: rgba(29, 35, 43, .15); transition: color .3s; }
.text-fill .tw.on { color: var(--text); }
.intro__media { position: relative; height: 620px; }
.intro__img-a { position: absolute; top: 0; right: 0; width: 78%; height: 78%; }
.intro__img-b { position: absolute; bottom: 0; left: 0; width: 52%; height: 50%; border: 8px solid var(--cream); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); }
.intro__badge { position: absolute; left: 8%; top: 12%; width: 130px; height: 130px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 2; }
.intro__badge svg.spin { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.intro__badge text { fill: rgba(255, 255, 255, .85); font-size: 10.5px; letter-spacing: 3px; font-family: var(--ff-sans); font-weight: 600; }
.intro__badge .icon { width: 36px; height: 36px; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 10vw, 130px); border-top: 1px solid var(--line); }
.stat { padding: 40px 24px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--ff-serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--ink); margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.stats--plain { margin-top: 0; border: 0; }
.stats--plain .stat { padding-top: 0; }

/* ---------- Destacados (scroll horizontal) ---------- */
.featured { background: var(--ink); color: #fff; overflow: hidden; }
.featured__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 70px; }
.featured__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
.featured__head .h-section { margin: 0; }
.featured .btn--outline { --fg: #fff; border-color: rgba(255, 255, 255, .4); }
.featured .btn--outline::before { background: #fff; }
.featured .btn--outline:hover { color: var(--ink); }
.featured__track { display: flex; gap: 32px; padding-inline: max(24px, (100vw - 1280px) / 2); width: max-content; will-change: transform; }
.no-gsap .featured__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }

.slide-card { position: relative; flex: none; width: min(560px, 80vw); height: min(62vh, 560px); border-radius: var(--radius-lg); overflow: hidden; scroll-snap-align: start; background: var(--ink-3); }
.slide-card__media { position: absolute; inset: 0; }
.slide-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.4s var(--ease); }
.slide-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 22, .95) 0%, rgba(14, 17, 22, .2) 55%, transparent 100%); transition: opacity .6s; }
.slide-card:hover .slide-card__media img { transform: scale(1.14); }
.slide-card__info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 36px; }
.slide-card__num { position: absolute; top: -280%; right: 30px; font-family: var(--ff-serif); font-size: 5rem; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .5); }
.slide-card h3 { font-size: 2.4rem; margin-bottom: 6px; color: #fff; }
.slide-card p { color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.slide-card__price { display: inline-block; margin-top: 18px; padding: 8px 18px; border-radius: 100px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .9rem; transform: translateY(10px); opacity: 0; transition: all .6s var(--ease); }
.slide-card:hover .slide-card__price { opacity: 1; transform: none; }
.slide-card--more { display: grid; place-items: center; align-content: center; gap: 20px; background: transparent; border: 1px dashed rgba(255, 255, 255, .3); color: var(--gold-2); font-family: var(--ff-serif); font-size: 2rem; width: min(380px, 70vw); transition: background .5s, color .5s; }
.slide-card--more::after { display: none; }
.slide-card--more:hover { background: var(--gold); color: var(--ink); }

/* ---------- Specs ---------- */
.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.specs .icon { color: var(--gold-dark); }
.specs--light { color: rgba(255, 255, 255, .85); }
.specs--light .icon { color: var(--gold-2); }

/* ---------- Por qué elegirnos ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item, .value {
    position: relative; padding: 40px 32px; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--line); overflow: hidden;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.why__item::before, .value::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 164, 106, .18), transparent 45%);
}
.why__item:hover, .value:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: rgba(201, 164, 106, .4); }
.why__item:hover::before, .value:hover::before { opacity: 1; }
.why__num { position: absolute; top: 24px; right: 28px; font-family: var(--ff-serif); font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1px rgba(14, 17, 22, .15); }
.why__icon, .value__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--cream); color: var(--gold-dark); margin-bottom: 28px; transition: background .5s, color .5s, transform .6s var(--ease); }
.why__icon .icon, .value__icon .icon { width: 26px; height: 26px; }
.why__item:hover .why__icon, .value:hover .value__icon { background: var(--ink); color: var(--gold); transform: rotate(-10deg) scale(1.08); }
.why__item p, .value p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Banda parallax ---------- */
.parallax-band { position: relative; min-height: 80vh; display: grid; align-items: center; overflow: hidden; color: #fff; text-align: center; }
.parallax-band__img { position: absolute; inset: -20% 0; background-size: cover; background-position: center; }
.parallax-band__overlay { position: absolute; inset: 0; background: rgba(14, 17, 22, .6); }
.parallax-band__content { position: relative; z-index: 2; }
.parallax-band blockquote { margin: 0 auto 24px; font-family: var(--ff-serif); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; max-width: 960px; }
.parallax-band blockquote em { color: var(--gold-2); }
.parallax-band p { color: var(--gold-2); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }

/* ---------- Tarjetas de modelo ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { perspective: 1000px; }
.card__link { display: block; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); transform-style: preserve-3d; height: 100%; }
.card:hover .card__link { box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.1); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 22, .6), transparent 50%); opacity: 0; transition: opacity .6s; }
.card:hover .card__media::after { opacity: 1; }
.card__badge { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 14px; border-radius: 100px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card__view { position: absolute; z-index: 2; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; transform: translate(-50%, -30%) scale(.8); opacity: 0; transition: all .6s var(--ease); }
.card:hover .card__view { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.card__body { padding: 26px 28px 30px; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card__title { font-size: 1.7rem; margin-bottom: 4px; }
.card__price { text-align: right; font-weight: 700; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.card__price small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-weight: 600; }
.card__tagline { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.card .specs { padding-top: 18px; border-top: 1px solid var(--line); }
.card.is-hidden { display: none; }

/* ---------- Proceso ---------- */
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process__line { position: absolute; top: 31px; left: 12%; right: 12%; height: 1px; background: var(--line); }
.process__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.process__step { position: relative; text-align: center; padding: 0 10px; }
.process__dot { position: relative; z-index: 2; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 28px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold); font-family: var(--ff-serif); font-size: 1.4rem; color: var(--gold-dark); transition: background .5s, color .5s, transform .5s var(--ease); }
.process__step:hover .process__dot { background: var(--ink); color: var(--gold); transform: scale(1.12); }
.process__step p { color: var(--muted); font-size: .95rem; }

/* ---------- Testimonios ---------- */
.testimonials { background: var(--cream-2); overflow: hidden; }
.tslider { max-width: 900px; margin: 0 auto; text-align: center; }
.tslider__track { display: grid; }
.tslide { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateX(60px); transition: opacity .8s var(--ease), transform 1s var(--ease); pointer-events: none; }
.tslide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tslide.is-prev { transform: translateX(-60px); }
.tslide__stars { color: var(--gold); letter-spacing: .3em; margin-bottom: 20px; }
.tslide blockquote { margin: 0 0 30px; font-family: var(--ff-serif); font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.4; font-style: italic; }
.tslide figcaption strong { display: block; font-size: 1.05rem; }
.tslide figcaption span { color: var(--muted); font-size: .9rem; }
.tslider__nav { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; }
.tslider__nav > button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .4s, color .4s, transform .4s var(--ease); }
.tslider__nav > button:hover { background: var(--ink); color: #fff; transform: scale(1.08); }
.tslider__dots { display: flex; gap: 10px; }
.tslider__dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(14, 17, 22, .2); transition: width .5s var(--ease), background .4s; }
.tslider__dots button.is-active { width: 32px; background: var(--gold); }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero, .model-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; padding: 180px 0 90px; color: #fff; overflow: hidden; background: var(--ink); }
.model-hero { min-height: 92vh; padding-bottom: 60px; }
.page-hero__bg, .model-hero__bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { scale: 1.25; } to { scale: 1; } }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 22, .92) 0%, rgba(14, 17, 22, .45) 55%, rgba(14, 17, 22, .35) 100%); }
.page-hero__content, .model-hero__content { position: relative; z-index: 2; }
.page-hero__title, .model-hero__title { font-size: clamp(3rem, 8vw, 6.8rem); font-weight: 400; line-height: 1; margin-bottom: 22px; }
.page-hero__title em { color: var(--gold-2); }
.page-hero__lead { max-width: 560px; color: rgba(255, 255, 255, .78); font-size: 1.1rem; margin: 0; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs em { color: #fff; font-style: normal; }

.model-hero__bar { display: grid; grid-template-columns: repeat(6, auto); justify-content: start; gap: 0; margin-top: 40px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(16px); width: fit-content; max-width: 100%; }
.model-hero__bar div { padding: 18px 30px; border-right: 1px solid rgba(255, 255, 255, .12); }
.model-hero__bar div:last-child { border-right: 0; }
.model-hero__bar small { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.model-hero__bar strong { font-family: var(--ff-serif); font-size: 1.7rem; font-weight: 500; }
.model-hero__bar sup { font-size: .55em; }

/* ---------- Filtros ---------- */
.filters { position: relative; z-index: 5; margin-top: -110px; margin-bottom: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 22px 30px; border-radius: var(--radius-lg); }
.filters__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; transition: all .4s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters__field { display: grid; gap: 4px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.filters__field select { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 .95rem var(--ff-sans); color: var(--ink); }
.filters__range { min-width: 240px; }
.filters__range output { color: var(--ink); margin-left: 6px; letter-spacing: 0; }
.filters__count { margin-left: auto; color: var(--muted); }
.filters__count strong { font-family: var(--ff-serif); font-size: 1.8rem; color: var(--ink); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p, 100%), var(--line) var(--p, 100%)); outline: none; margin: 12px 0 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); cursor: grab; transition: transform .3s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); cursor: grab; }

.empty { text-align: center; padding: 60px 20px; }
.empty p { color: var(--muted); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 820px; }
.compare th, .compare td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare th { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700; background: var(--cream); }
.compare tbody tr { transition: background .3s; }
.compare tbody tr:hover { background: rgba(201, 164, 106, .08); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td strong { font-family: var(--ff-serif); font-size: 1.15rem; font-weight: 500; }
.compare__price { font-weight: 700; color: var(--gold-dark); }

/* ---------- Detalle ---------- */
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.detail__block { margin-top: 80px; }
.detail__desc { font-size: 1.1rem; color: #3d4652; max-width: 720px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { position: relative; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery__item--big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery__zoom { position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); transform: scale(0); transition: transform .5s var(--ease); }
.gallery__item:hover .gallery__zoom { transform: scale(1); }
.js .gallery__item.is-in:hover img, .gallery__item:hover img { transform: scale(1.18); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.features li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.features li:hover { transform: translateX(8px); border-color: var(--gold); }
.features li > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); }

.detail__aside { position: sticky; top: 100px; }
.aside-card { padding: 36px; border-radius: var(--radius-lg); background: var(--ink); color: rgba(255, 255, 255, .75); box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.aside-card small { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--gold-2); font-weight: 700; }
.aside-card__price { font-family: var(--ff-serif); font-size: 3rem; font-weight: 500; color: #fff; line-height: 1; }
.aside-card .btn--outline { --fg: #fff; border-color: rgba(255, 255, 255, .3); }
.aside-card .btn--outline::before { background: #fff; }
.aside-card .btn--outline:hover { color: var(--ink); }
.aside-card__list { list-style: none; padding: 20px 0 0; margin: 6px 0 0; border-top: 1px solid var(--line-light); display: grid; gap: 12px; font-size: .92rem; }
.aside-card__list li { display: flex; align-items: center; gap: 10px; }
.aside-card__list .icon { color: var(--gold); }

.calc { padding: 44px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.calc__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-top: 20px; }
.calc__inputs { display: grid; gap: 18px; }
.calc__inputs label { display: block; font-weight: 600; font-size: .9rem; color: var(--muted); }
.calc__inputs output { float: right; color: var(--ink); font-weight: 700; }
.calc__result { position: relative; text-align: center; padding: 30px; border-radius: var(--radius-lg); background: var(--cream); }
.calc__result small { text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; font-weight: 700; color: var(--muted); }
.calc__result strong { display: block; font-family: var(--ff-serif); font-size: 3rem; font-weight: 500; color: var(--ink); line-height: 1.1; margin: 8px 0 14px; }
.calc__ring { width: 120px; height: 120px; margin: 0 auto 16px; }
.calc__ring svg { transform: rotate(-90deg); }
.calc__ring circle { fill: none; stroke-width: 3; }
.calc__ring-bg { stroke: var(--cream-2); }
.calc__ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s var(--ease); }
.calc__result p { margin: 0; font-size: .92rem; }
.calc__note { margin-top: 10px !important; font-size: .78rem !important; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 10, 13, .95); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 84vh; border-radius: var(--radius); transform: scale(.92); transition: transform .6s var(--ease), opacity .3s; }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; color: #fff; font-size: 2.6rem; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; line-height: 1; transition: background .3s, color .3s; }
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 24px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 30px; color: rgba(255, 255, 255, .6); letter-spacing: .2em; font-size: .85rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__img { aspect-ratio: 4 / 5; }
.about__years { position: absolute; right: -30px; bottom: 40px; padding: 28px 32px; border-radius: var(--radius-lg); display: flex; align-items: center; gap: 16px; }
.about__years strong { font-family: var(--ff-serif); font-size: 3.4rem; font-weight: 500; color: var(--gold-dark); line-height: 1; }
.about__years span { font-size: .85rem; line-height: 1.4; font-weight: 600; }
.about__text p { color: #3d4652; }
.about__sign { display: flex; align-items: center; gap: 16px; font-family: var(--ff-serif); font-style: italic; font-size: 1.2rem; margin-top: 30px; }
.about__sign-line { width: 60px; height: 1px; background: var(--gold); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.section--dark .value { background: var(--ink-2); border-color: var(--line-light); }
.section--dark .value p { color: rgba(255, 255, 255, .6); }
.section--dark .value__icon { background: var(--ink-3); color: var(--gold); }
.section--dark .value:hover .value__icon { background: var(--gold); color: var(--ink); }

.timeline { position: relative; max-width: 1000px; margin: 0 auto; display: grid; gap: 40px; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.timeline__item { position: relative; width: 50%; padding-right: 60px; }
.timeline__item.is-right { margin-left: 50%; padding: 0 0 0 60px; }
.timeline__dot { position: absolute; top: 30px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); z-index: 2; }
.timeline__item.is-right .timeline__dot { left: -9px; right: auto; }
.timeline__card { padding: 30px 34px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.timeline__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.timeline__step { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-dark); font-weight: 700; }
.timeline__card h3 { margin: 8px 0; }
.timeline__card p { margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__info > p { color: #3d4652; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.contact__list li:hover { transform: translateX(8px); border-color: var(--gold); }
.contact__list li > span { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); }
.contact__list small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700; color: var(--muted); }
.contact__list a, .contact__list p { font-weight: 600; margin: 0; }
.contact__list a:hover { color: var(--gold-dark); }
.contact__form-wrap { padding: clamp(28px, 4vw, 50px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
    width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream);
    font: 500 1rem var(--ff-sans); color: var(--ink); outline: none; resize: vertical;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.field select { appearance: none; cursor: pointer; }
.field--select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-30%) rotate(45deg); pointer-events: none; }
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201, 164, 106, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-10px) scale(.75); color: var(--gold-dark); font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: #d9534f; background: #fdf3f2; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 18px 22px; border-radius: 14px; margin-bottom: 24px; animation: pop .6s var(--ease); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert--ok { background: #ecf7ef; color: #1f6b3a; border: 1px solid #bfe3ca; }
.alert--err { background: #fdf0ef; color: #9b2c27; border: 1px solid #f2c6c3; display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .65); }
.footer__cta { padding: clamp(90px, 12vw, 160px) 0; border-bottom: 1px solid var(--line-light); text-align: center; position: relative; overflow: hidden; }
.footer__cta::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(circle, rgba(201, 164, 106, .16), transparent 65%); pointer-events: none; }
.footer__cta-inner { position: relative; }
.footer__cta .eyebrow { justify-content: center; }
.footer__big { font-size: clamp(2.8rem, 8vw, 7rem); color: #fff; font-weight: 400; line-height: 1; margin-bottom: 44px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 80px 0 60px; }
.footer__col { display: grid; align-content: start; gap: 10px; font-size: .95rem; }
.footer__col h4 { font-family: var(--ff-sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold-2); font-weight: 700; margin-bottom: 12px; }
.footer__col a { width: fit-content; transition: color .3s, transform .4s var(--ease); }
.footer__col a:hover { color: #fff; transform: translateX(5px); }
.footer__about .logo { margin-bottom: 18px; }
.footer__about .logo__img { height: 52px; }
.footer__about p { max-width: 340px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background .4s, color .4s, transform .4s var(--ease) !important; }
.social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-4px) !important; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; border-top: 1px solid var(--line-light); font-size: .85rem; }
.to-top { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; color: #fff; transition: background .4s, color .4s, transform .4s var(--ease); }
.to-top:hover { background: var(--gold); color: var(--ink); transform: translateY(-4px); }

.fab { position: fixed; right: 26px; bottom: 26px; z-index: 900; display: flex; align-items: center; gap: 0; height: 58px; padding: 0 18px; border-radius: 100px; background: var(--gold); color: var(--ink); font-weight: 700; box-shadow: 0 16px 40px -10px rgba(201, 164, 106, .7); transform: translateY(120px); transition: transform .7s var(--ease), gap .5s var(--ease); }
.fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .6s var(--ease); }
.fab:hover { gap: 10px; }
.fab:hover span { max-width: 200px; }
.fab.is-visible { transform: none; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1480px) { .header__phone { display: none; } }
@media (max-width: 1180px) {
    .header .logo__img { height: 42px; } .header.is-scrolled .logo__img { height: 38px; }
    .nav__link { padding: 10px 12px; }
    .why__grid, .values { grid-template-columns: repeat(2, 1fr); }
    .detail { grid-template-columns: 1fr; }
    .detail__aside { position: static; }
    .model-hero__bar { grid-template-columns: repeat(3, auto); }
    .model-hero__bar div:nth-child(3) { border-right: 0; }
    .model-hero__bar div:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 960px) {
    :root { --header-h: 76px; }
    .nav, .header__cta { display: none; }
    .burger { display: block; }
    .intro__grid, .about, .contact { grid-template-columns: 1fr; }
    .intro__media { height: 480px; }
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
    .process__line { display: none; }
    .finder { grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); position: relative; left: auto; bottom: auto; translate: none; margin: 40px 24px 0; width: auto; }
    .hero { flex-direction: column; justify-content: center; align-items: stretch; padding-bottom: 90px; }
    .finder__field { border-right: 0; }
    .finder .btn { grid-column: 1 / -1; }
    .hero__dots { right: 20px; }
    .hero__scroll { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .calc__grid { grid-template-columns: 1fr; }
    .about__years { right: 16px; }
    .timeline__line { left: 9px; }
    .timeline__item, .timeline__item.is-right { width: 100%; margin: 0; padding: 0 0 0 44px; }
    .timeline__dot, .timeline__item.is-right .timeline__dot { left: 0; right: auto; }
    .filters { margin-top: -70px; }
    .filters__count { margin-left: 0; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { width: calc(100% - 32px); }
    .grid-cards, .why__grid, .values, .features, .form__row { grid-template-columns: 1fr; }
    .finder { grid-template-columns: 1fr; margin-inline: 16px; }
    .hero__actions .btn { width: 100%; }
    .featured__head { flex-direction: column; align-items: flex-start; }
    .slide-card { height: 460px; }
    .slide-card__info { padding: 26px; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .model-hero__bar { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .model-hero__bar div { padding: 14px 18px; border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 16px; }
    .calc { padding: 26px; }
    .intro__media { height: 380px; }
    .intro__badge { width: 100px; height: 100px; }
    .stat { padding: 30px 14px 0; }
    .header .logo__img, .header.is-scrolled .logo__img { height: 34px; }
    .footer__about .logo__img { height: 44px; }
}

/* ==========================================================================
   Visor 3D
   ========================================================================== */
.card__3d {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--ink); color: var(--gold-2); font-size: .74rem; font-weight: 800; letter-spacing: .04em;
    box-shadow: 0 0 0 0 rgba(201, 164, 106, .55); animation: pulso3d 2.6s var(--ease) infinite;
}
@keyframes pulso3d { 0% { box-shadow: 0 0 0 0 rgba(201, 164, 106, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(201, 164, 106, 0); } }

.visor3d-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.visor3d-head .h-sub { margin: 0; }
.visor3d-head__txt { max-width: 340px; margin: 0; color: var(--muted); font-size: .95rem; }

.visor3d {
    position: relative; overflow: hidden; isolation: isolate;
    height: clamp(380px, 62vh, 620px); border-radius: var(--radius-lg);
    background: radial-gradient(120% 90% at 50% 0%, #eef3f7 0%, #d8e1e8 100%);
    box-shadow: var(--shadow-lg);
}
.visor3d__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; outline: none; }
.visor3d__canvas:active { cursor: grabbing; }

.visor3d__loader {
    position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 14px;
    color: var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
    transition: opacity .8s var(--ease), visibility .8s;
}
.visor3d__loader p { margin: 0; }
.visor3d__spin { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(14, 17, 22, .12); border-top-color: var(--gold); animation: giro3d 1s linear infinite; }
@keyframes giro3d { to { transform: rotate(360deg); } }
.visor3d.is-ready .visor3d__loader { opacity: 0; visibility: hidden; }
.visor3d.is-error .visor3d__spin { display: none; }

.visor3d__hint {
    position: absolute; z-index: 2; left: 50%; top: 22px; translate: -50% 0;
    display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px;
    background: rgba(14, 17, 22, .72); backdrop-filter: blur(10px); color: #fff; font-size: .78rem; white-space: nowrap;
    pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
}
.visor3d.is-ready .visor3d__hint { opacity: 1; animation: pista3d 1.8s var(--ease) .6s 2; }
.visor3d.is-touched .visor3d__hint { opacity: 0; animation: none; }
.visor3d__hint-tactil { display: none; }
@media (hover: none) { .visor3d__hint-pc { display: none; } .visor3d__hint-tactil { display: inline; } }
@keyframes pista3d { 50% { translate: -50% -4px; } }

.visor3d__tag {
    position: absolute; z-index: 2; top: 22px; right: 22px; padding: 6px 12px; border-radius: 100px;
    background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}

.visor3d__tools {
    position: absolute; z-index: 2; left: 50%; bottom: 20px; translate: -50% 0;
    display: flex; gap: 6px; padding: 6px; border-radius: 100px;
    background: rgba(14, 17, 22, .78); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
    opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease) .3s, transform .7s var(--ease) .3s;
}
.visor3d.is-ready .visor3d__tools { opacity: 1; transform: none; }
.visor3d__tools button {
    display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border: 0; border-radius: 100px;
    background: transparent; color: rgba(255, 255, 255, .78); font: 600 .8rem var(--ff-sans); cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease);
}
.visor3d__tools button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.visor3d__tools button.is-active { background: var(--gold); color: var(--ink); }
.visor3d__tools button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.visor3d:fullscreen, .visor3d.is-full { height: 100%; border-radius: 0; }
.visor3d.is-full { position: fixed; inset: 0; z-index: 9999; height: 100vh; }

@media (max-width: 640px) {
    .visor3d { height: 440px; border-radius: var(--radius); }
    .visor3d__tools { bottom: 12px; gap: 2px; padding: 4px; }
    .visor3d__tools button { padding: 10px 11px; }
    .visor3d__tools button span { display: none; }
    .visor3d__hint { top: 14px; font-size: .72rem; }
    .visor3d__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .marquee__track { animation: none; }
}
@media (max-width: 370px) { .header .logo__img, .header.is-scrolled .logo__img { height: 30px; } }
@media (min-width: 961px) and (max-width: 1140px) {
    .header__cta { display: none; }
    .header__inner { gap: 24px; }
}

/* Vista previa del sitio de otra compañía (?empresa=slug) */
.vista-previa { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 9999; padding: 8px 16px; border-radius: 999px; background: #111827; color: #fff; font: 600 .82rem/1.3 system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); white-space: nowrap; }
.vista-previa a { color: #f3c969; }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 21vw, 300px); grid-auto-flow: dense; gap: 18px; }
.galeria .galeria__item { display: block; width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border: 0; text-align: left; }
.galeria .galeria__item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.galeria__texto { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(8, 10, 13, .75)); color: #fff; font-size: .92rem; font-weight: 600; letter-spacing: .01em; }
.galeria__item:has(.galeria__texto) .gallery__zoom { bottom: auto; top: 16px; }
.galeria__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 50px; text-align: center; }
.galeria__cta p { margin: 0; font-size: 1.1rem; }
@media (max-width: 680px) {
    .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
    .galeria__texto { padding: 30px 12px 10px; font-size: .8rem; }
}
