/* ===================================================================
   TRÄ HOUSES — LP Alto Padrão · Dark & Gold
   Mobile-first · Gallery lightbox · FAQ accordion
   =================================================================== */

/* --- TOKENS (Dark & Gold — Scandinavian Premium) --- */
:root {
  --bg: #0A0A0A;
  --bg-alt: #141414;
  --surface: #1A1A1A;
  --ink: #F5F0EA;
  --ink-soft: #BFB8AF;
  --ink-mute: #7A7368;
  --line: rgba(207,168,50,0.12);
  --gold: #CFA832;
  --gold-deep: #A88525;
  --wood: #957561;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
  --shadow-sm: 0 6px 24px rgba(0,0,0,0.25);
  --pad: clamp(4rem, 11vw, 11rem);
  --maxw: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }

/* --- TYPOGRAPHY --- */
.display { font-family: 'Poppins', sans-serif; font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; }
.h2 { font-family: 'Poppins', sans-serif; font-weight: 300; font-size: clamp(1.75rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); }
.eyebrow { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .6; }
.lead { font-size: clamp(1rem, 1.5vw, 1.3rem); color: var(--ink-soft); line-height: 1.65; }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 1rem; padding: 1.05rem 2.3rem; border-radius: 100px; cursor: pointer; transition: all .45s var(--ease); border: 1px solid transparent; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--gold); color: #0A0A0A; }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(207,168,50,0.3); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.link { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .45s var(--ease); }
.link:hover { border-color: var(--gold); }

section { padding: var(--pad) 0; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(7px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), filter 1s ease var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal-r { opacity: 0; transform: translateX(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-r.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-r { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; } }

.mobile-break { display: none; }
.desktop-break { display: none; }
@media (max-width: 680px) { .mobile-break { display: block; } }
@media (min-width: 881px) { .desktop-break { display: inline; } }

/* =================================================================
   NAV
   ================================================================= */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
nav.scrolled { background: rgba(10,10,10,0.95); border-color: var(--line); box-shadow: 0 4px 24px rgba(0,0,0,0.3); backdrop-filter: blur(12px); }
nav .brand { color: #fff; }
nav .brand small { color: rgba(255,255,255,0.5); }
nav .nav-region { color: rgba(255,255,255,0.6); font-size: .82rem; }
nav .nav-cta { background: rgba(207,168,50,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(207,168,50,0.3); color: var(--gold); font-size: .82rem; font-weight: 500; padding: .62rem 1.35rem; border-radius: 100px; transition: all .3s; }
nav .nav-cta:hover, nav.scrolled .nav-cta { background: var(--gold); color: #0A0A0A; }
nav.scrolled .nav-cta:hover { background: var(--gold-deep); }

.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1.15rem; letter-spacing: .04em; }
.brand small { font-weight: 400; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; display: block; margin-top: -2px; }
.nav-r { display: flex; align-items: center; gap: 1.8rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: .82rem; font-weight: 500; color: rgba(255,255,255,0.7); letter-spacing: .04em; transition: color .3s; }
.nav-links a:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 32px; position: relative; z-index: 110; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s var(--ease); position: absolute; left: 5px; }
.nav-toggle span { top: 15px; }
.nav-toggle span::before { content: ""; top: -7px; }
.nav-toggle span::after { content: ""; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

.nav-menu-mobile { display: none; position: fixed; inset: 0; background: rgba(10,10,10,0.98); backdrop-filter: blur(20px); z-index: 105; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.nav-menu-mobile.open { display: flex; }
.nav-menu-mobile a { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 300; color: var(--ink); transition: color .3s; }
.nav-menu-mobile a:hover { color: var(--gold); }

@media (max-width: 680px) {
  .nav-links, .nav-region { display: none; }
  .nav-toggle { display: block; }
  .nav-in { height: 62px; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.05); transition: transform 1.8s var(--ease); will-change: transform; }
.hero-bg-img.loaded { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.4) 30%, rgba(10,10,10,0.6) 60%, rgba(10,10,10,0.85) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 100px; padding-bottom: clamp(2.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh; }
.hero-top { padding-top: 1rem; }
.hero-bottom { max-width: 800px; }
.eyebrow--light { color: rgba(255,255,255,0.7); }
.eyebrow--light::before { background: rgba(255,255,255,0.5); }
.lead--light { color: rgba(255,255,255,0.82); }
.link--light { color: rgba(255,255,255,0.9); border-bottom-color: rgba(255,255,255,0.3); }
.link--light:hover { border-bottom-color: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4.8rem); color: #fff; text-align: left; }
.hero-emphasis { display: block; font-weight: 500; font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: 1; letter-spacing: -0.04em; margin-top: 0.15em; background: linear-gradient(135deg, #fff 40%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .lead--light { max-width: 52ch; margin-top: 1.5rem; }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.2rem; flex-wrap: wrap; }

@media (max-width: 680px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-emphasis { font-size: clamp(2.6rem, 10vw, 3.6rem); }
  .hero .lead--light { font-size: 1rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* =================================================================
   TRUST BAR
   ================================================================= */
.trust-bar { display: flex; justify-content: center; gap: clamp(2rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-num { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold); line-height: 1.1; }
.trust-label { font-size: .68rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .15em; margin-top: .2rem; }

/* =================================================================
   PILARES — 3x3 grid
   ================================================================= */
.pilares { text-align: center; }
.pilares .h2 { max-width: 28ch; margin: 1.4rem auto 0; }
.pilares .lead { max-width: 60ch; margin: 1.6rem auto 0; }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.pilar-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 2.5vw, 2rem); text-align: left; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.pilar-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.pilar-icon { font-size: 1.4rem; margin-bottom: .6rem; }
.pilar-title { font-family: 'Poppins', sans-serif; font-weight: 400; font-size: 1.02rem; color: var(--ink); margin-bottom: .3rem; }
.pilar-desc { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 680px) { .pilares-grid { grid-template-columns: 1fr; } .pilares { text-align: left; } }
@media (min-width: 681px) and (max-width: 880px) { .pilares-grid { grid-template-columns: repeat(2, 1fr); } }

/* =================================================================
   SUSTENTABILIDADE
   ================================================================= */
.sustenta { background: var(--bg); text-align: center; }
.sustenta .h2 { max-width: 30ch; margin: 1.4rem auto 0; }
.sustenta .lead { max-width: 60ch; margin: 1.6rem auto 0; }
.sustenta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.sustenta-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 2.5vw, 2rem); text-align: center; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.sustenta-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.sustenta-icon { margin-bottom: 1rem; display: flex; justify-content: center; }
.sustenta-num { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--gold); line-height: 1.1; margin-bottom: .4rem; }
.sustenta-label { font-size: .82rem; color: var(--ink-soft); line-height: 1.45; }
.sustenta-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 2rem; background: rgba(207,168,50,0.06); border: 1px solid var(--line); border-radius: 16px; }
.sustenta-quote { font-family: 'Poppins', sans-serif; font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink); line-height: 1.5; font-style: italic; }
.sustenta-source { display: block; margin-top: .8rem; font-size: .82rem; color: var(--ink-mute); }
@media (max-width: 880px) { .sustenta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sustenta-grid { grid-template-columns: 1fr; } .sustenta { text-align: left; } }

/* =================================================================
   COMPARATIVO
   ================================================================= */
.compare { background: var(--bg-alt); }
.compare-table { margin-top: clamp(2.5rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: none; }
.compare-cell { padding: clamp(.8rem, 1.5vw, 1.2rem) clamp(1rem, 2vw, 1.5rem); font-size: clamp(.82rem, 1vw, .95rem); color: var(--ink-soft); display: flex; align-items: center; }
.compare-header { background: var(--surface); }
.compare-header .compare-cell { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: clamp(.78rem, 1vw, .88rem); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.compare-header .compare-tra { color: var(--gold); }
.compare-feature { font-family: 'Outfit', sans-serif; font-weight: 500; color: var(--ink); }
.compare-good { color: var(--gold); font-weight: 500; }
.compare-bad { color: #B05050; font-weight: 500; }
.compare-neutral { color: var(--ink-mute); font-weight: 500; }
@media (max-width: 600px) {
  .compare-row { grid-template-columns: 1fr; gap: 0; }
  .compare-header { display: none; }
  .compare-cell { padding: .7rem 1.2rem; }
  .compare-feature { background: var(--surface); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); padding-top: 1rem; }
  .compare-cell.compare-tra::before { content: "TRÄ: "; color: var(--gold); font-weight: 500; }
  .compare-cell.compare-conv::before { content: "Alvenaria: "; color: var(--ink-mute); font-weight: 500; }
  .compare-cell.compare-conv { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .compare-row:last-child .compare-conv { border-bottom: none; }
}

/* =================================================================
   SISTEMA CONSTRUTIVO
   ================================================================= */
.sistema { background: var(--bg-alt); }
.sistema-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 880px) { .sistema-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 6vw, 6rem); } }
.sistema-text .h2 { margin-top: 1.4rem; }
.sistema-text .lead { margin-top: 1.6rem; }
.sistema-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
.sistema-img img { transition: transform 1s var(--ease); }
.sistema-img:hover img { transform: scale(1.05); }

.sistema-detail { margin-top: clamp(3rem, 6vw, 5rem); }
.sistema-detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; align-items: start; }
@media (min-width: 880px) { .sistema-detail-grid { grid-template-columns: .95fr 1.05fr; gap: 3rem; } }


.price-highlight { margin-top: 2.5rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.price-big { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold); }
.price-detail { font-size: .92rem; color: var(--ink-soft); margin-top: .6rem; line-height: 1.6; }

/* =================================================================
   EXPLODE VIEW (3D layered explosion)
   ================================================================= */
.explode-view { position: relative; cursor: pointer; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: #ddd; }

.explode-layer { position: absolute; inset: 0; overflow: hidden; transition: transform .9s var(--ease), opacity .6s ease; }
.explode-layer img { width: 100%; height: 100%; object-fit: cover; }

/* Clip each layer to its zone of the image */
.explode-roof { clip-path: inset(0 0 62% 0); z-index: 3; }
.explode-structure { clip-path: inset(30% 0 22% 0); z-index: 2; }
.explode-base { clip-path: inset(70% 0 0 0); z-index: 1; }

/* Labels hidden by default */
.explode-label { position: absolute; right: 1rem; font-family: 'Outfit', sans-serif; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: rgba(10,10,10,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(207,168,50,0.3); padding: .35rem 1rem; border-radius: 100px; opacity: 0; transition: opacity .5s ease .2s; pointer-events: none; white-space: nowrap; }
.explode-roof .explode-label { bottom: .8rem; }
.explode-structure .explode-label { top: 50%; transform: translateY(-50%); }
.explode-base .explode-label { top: .8rem; }

/* Exploded state — layers separate */
.explode-view.exploded .explode-roof { transform: translateY(-28px); }
.explode-view.exploded .explode-structure { transform: translateY(0); }
.explode-view.exploded .explode-base { transform: translateY(28px); }
.explode-view.exploded .explode-label { opacity: 1; }

/* Hint */
.explode-view .explode-hint { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 10; background: rgba(207,168,50,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(207,168,50,0.3); padding: .4rem 1.2rem; border-radius: 100px; transition: opacity .4s ease; pointer-events: none; }
.explode-view .explode-hint span { font-family: 'Outfit', sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.explode-view.exploded .explode-hint { opacity: 0; }
@media (hover: none) {
  .explode-view .explode-hint span::after { content: " (toque para explodir)"; }
}

/* (Refúgio Essencial moved to portfolio grid) */

/* =================================================================
   PORTFÓLIO
   ================================================================= */
.port { background: var(--bg); }
.port-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.port-head .h2 { margin-top: 1.4rem; }
.port-head .lead { margin: 1.2rem auto 0; max-width: 46ch; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.8rem, 2vw, 1.5rem); }
@media (min-width: 680px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.project-cover { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.project-cover img { transition: transform 1s var(--ease); }
.project-card:hover .project-cover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card:hover .project-cover img { transform: scale(1.07); }
.project-cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.2rem; opacity: 0; transition: opacity .4s var(--ease); }
.project-card:hover .project-cover-overlay { opacity: 1; }
.project-tag { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(207,168,50,0.2); backdrop-filter: blur(8px); padding: .5rem 1.2rem; border-radius: 100px; border: 1px solid rgba(207,168,50,0.3); }
.project-info { padding: .9rem .2rem .4rem; }
.project-name { font-family: 'Poppins', sans-serif; font-weight: 400; font-size: clamp(.9rem, 1.2vw, 1.1rem); color: var(--ink); }
.project-meta { font-size: .78rem; color: var(--ink-mute); margin-top: .15rem; }
@media (hover: none) { .project-cover-overlay { opacity: 1; } }

/* =================================================================
   GALLERY LIGHTBOX
   ================================================================= */
.gallery-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.gallery-lightbox.open { opacity: 1; pointer-events: all; }
.gallery-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(16px); }
.gallery-container { position: relative; width: 100%; max-width: 900px; max-height: 90vh; padding: 1rem; }
.gallery-close { position: absolute; top: -2rem; right: 0; background: none; border: none; color: rgba(255,255,255,0.8); font-size: 2.4rem; cursor: pointer; z-index: 10; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; transition: color .3s; }
.gallery-close:hover { color: var(--gold); }
.gallery-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; padding: 0 .5rem; }
.gallery-title { font-family: 'Poppins', sans-serif; font-weight: 400; font-size: 1.3rem; color: #fff; }
.gallery-counter { font-size: .85rem; color: rgba(255,255,255,0.5); }
.gallery-track { position: relative; width: 100%; overflow: hidden; border-radius: 16px; aspect-ratio: 16/10; background: rgba(20,20,20,0.5); }
.gallery-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.gallery-track img.active { opacity: 1; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(207,168,50,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(207,168,50,0.25); color: #fff; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .3s; -webkit-tap-highlight-color: transparent; }
.gallery-nav:hover { background: rgba(207,168,50,0.3); }
.gallery-prev { left: -60px; }
.gallery-next { right: -60px; }
.gallery-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: background .3s, transform .3s; -webkit-tap-highlight-color: transparent; }
.gallery-dot.active { background: var(--gold); transform: scale(1.3); }
@media (max-width: 960px) { .gallery-prev { left: .5rem; } .gallery-next { right: .5rem; } .gallery-nav { width: 40px; height: 40px; font-size: 1.5rem; } .gallery-container { padding: .5rem; } .gallery-close { top: -1.5rem; right: .5rem; } .gallery-track { aspect-ratio: 4/3; } }
@media (hover: none) { .gallery-nav { display: none; } }

/* =================================================================
   ETAPAS
   ================================================================= */
.etapas .h2 { margin-top: 1.4rem; }
.etapas .lead { margin-top: 1.6rem; max-width: 52ch; }
.steps { margin-top: 3rem; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 1.3rem; color: var(--gold); }
.step h4 { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 1.1rem; margin-bottom: .25rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }
.step-time { display: inline-block; font-size: .76rem; color: var(--gold); background: rgba(207,168,50,0.1); padding: .2rem .7rem; border-radius: 100px; margin-top: .3rem; letter-spacing: .04em; }
.step-note { margin-top: 1.5rem; font-size: .88rem; color: var(--ink-mute); font-style: italic; }

/* =================================================================
   QUOTE
   ================================================================= */
.quote { background: var(--bg-alt); text-align: center; }
.quote blockquote { font-family: 'Poppins', sans-serif; font-weight: 300; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; margin: 0 auto; color: var(--ink); }
.quote cite { display: block; margin-top: 1.8rem; font-style: normal; color: var(--gold); font-size: .9rem; letter-spacing: .04em; }
.quote-sub { display: block; margin-top: .8rem; font-size: .82rem; color: var(--ink-mute); }

/* =================================================================
   FAQ
   ================================================================= */
.faq { background: var(--bg); }
.faq-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.faq-head .h2 { margin-top: 1.4rem; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; background: none; border: none; padding: 1.4rem 0; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.faq-q-icon { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; transition: transform .3s var(--ease); line-height: 1; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 0 1.5rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.65; }

/* =================================================================
   FINAL CTA
   ================================================================= */
.final-hero { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.final-hero-bg { position: absolute; inset: 0; z-index: 0; }
.final-hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.final-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.7) 50%, rgba(107,80,64,0.5) 100%); z-index: 1; }
.final-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 4vw, 3.5rem); align-items: center; padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
@media (min-width: 880px) { .final-hero-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 5rem); } }
.final-hero-content { max-width: 700px; }
.final-hero-h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin-top: 1.2rem; }
.final-emphasis { display: block; font-weight: 500; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; margin-top: 0.1em; background: linear-gradient(135deg, #fff 50%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.final-hero .lead--light { margin-top: 1.5rem; max-width: 44ch; }
.final-micro { font-size: .82rem; letter-spacing: .04em; }
.final-micro--light { color: rgba(255,255,255,0.6); }
.btn-light { background: #fff; color: #0A0A0A; font-weight: 500; }
.btn-light:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
@media (max-width: 680px) { .final-hero { min-height: auto; } .final-hero-content { max-width: 100%; } }

/* --- CONTACT FORM (Dark) --- */
.contact-form { background: rgba(20,20,20,0.97); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.8rem, 3vw, 2.5rem); box-shadow: 0 24px 80px rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.form-group input, .form-group textarea, .form-group select { font-family: 'Outfit', sans-serif; font-size: 1rem; padding: .85rem 1rem; border: 1px solid rgba(207,168,50,0.15); border-radius: 12px; background: var(--bg-alt); color: var(--ink); transition: border-color .3s, box-shadow .3s; -webkit-appearance: none; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,168,50,0.15); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-mute); opacity: .5; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%237A7368'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.btn-submit { width: 100%; justify-content: center; margin-top: .4rem; padding: 1.1rem 2rem; font-size: 1.05rem; background: var(--gold); color: #0A0A0A; }
.btn-submit:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(207,168,50,0.3); }
.form-success { text-align: center; padding: 2rem 1rem; }
.form-success-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: .5rem; }
.form-success-text { font-size: 1.05rem; color: var(--ink); line-height: 1.5; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform .3s var(--ease), box-shadow .3s; -webkit-tap-highlight-color: transparent; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
@media (max-width: 680px) { .whatsapp-float { bottom: 1rem; right: 1rem; width: 52px; height: 52px; } }

/* =================================================================
   FOOTER
   ================================================================= */
footer { background: #050505; color: rgba(233,232,232,0.7); }
.foot-in { display: flex; justify-content: space-between; gap: 2.5rem; padding: 4.5rem 0 2rem; flex-wrap: wrap; }
.foot-brand .brand { color: var(--gold); }
.foot-brand .brand small { color: rgba(233,232,232,0.45); }
.foot-col h5 { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(233,232,232,0.4); margin-bottom: .9rem; font-weight: 500; }
.foot-col a, .foot-col p { display: block; font-size: .9rem; color: rgba(233,232,232,0.7); margin-bottom: .4rem; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(207,168,50,0.1); padding: 1.4rem 0; font-size: .74rem; color: rgba(233,232,232,0.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }

/* =================================================================
   MOBILE REFINEMENTS
   ================================================================= */
@media (max-width: 680px) {
  :root { --pad: clamp(3.5rem, 10vw, 5rem); }
  .h2 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
  .lead { font-size: 1rem; line-height: 1.6; }
  .pilares .h2 { max-width: 100%; text-align: left; }
  .pilares { text-align: left; }
  .trust-bar { gap: 1.5rem; }
  .trust-num { font-size: 1.4rem; }
  .sistema-img { aspect-ratio: 4/3; border-radius: 16px; }
  .projects-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .project-cover { border-radius: 10px; }
  .project-name { font-size: .85rem; }
  .project-meta { font-size: .72rem; }
  .steps { gap: 0; }
  .step { gap: 1rem; padding: 1.2rem 0; }
  .step .n { font-size: 1.1rem; }
  .step h4 { font-size: 1rem; }
  .step p { font-size: .9rem; }
  .foot-in { flex-direction: column; gap: 2rem; padding: 3rem 0 1.5rem; }
}
/* tablet grid handled by main breakpoint */
