/* ============================================================
   InmoGlobalService — "Editorial Luxe"
   Alto contraste · Ivory cálido · Verde bosque · Acento brass
   Display: Fraunces · UI/Texto: Inter
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@300;400;500;600&display=swap");

/* ---- Variables ---- */
:root {
  --white:      #FFFFFF;
  --ivory:      #F5F2EA;   /* fondo cálido principal */
  --cream:      #ECE7DB;   /* fondo alterno */
  --ink:        #14130F;   /* casi negro cálido */
  --ink-2:      #57534A;   /* texto secundario */
  --forest:     #22352B;   /* verde bosque profundo (bloques oscuros) */
  --forest-2:   #1A2A21;
  --sage:       #567863;   /* verde medio, acento */
  --sage-light: #E7EDE7;
  --gold:       #C6A15B;   /* brass / dorado, acento CTA */
  --gold-dk:    #A9843F;
  --line:       #DCD6C8;
  --line-2:     #C7C0AE;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1320px;
  --pad:  clamp(20px, 4.5vw, 68px);
  --topbar-h: 40px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-2: cubic-bezier(.25, .46, .45, .94);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

/* ---- Utilidades ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(60px, 8vw, 120px) 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--forest); color: var(--ivory); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--ivory); }

/* ---- Tipografía ---- */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; line-height: 1.04;
  color: var(--ink); letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dk);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.dark .eyebrow, .cta-band .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); line-height: 1.75; font-weight: 300; }
.dark .lead { color: rgba(245,242,234,.75); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 18px 34px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--ivory);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }

/* CTA principal de conversión — brass */
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.btn-forest { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.btn-forest:hover { background: transparent; color: var(--forest); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost-white:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.text-link {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; position: relative; padding-bottom: 3px;
  color: var(--gold-dk);
}
.text-link::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.text-link:hover::after { transform: scaleX(1); }
.text-link .arr { display: inline-block; transition: transform .4s var(--ease); }
.text-link:hover .arr { transform: translateX(6px); }

/* ============================================================
   TOP BAR (contacto siempre visible — conversión)
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--topbar-h); background: var(--forest); color: var(--ivory);
  display: flex; align-items: center;
  font-size: .72rem; letter-spacing: .06em;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.topbar-left { color: rgba(245,242,234,.7); }
.topbar-left strong { color: var(--gold); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-right a { display: inline-flex; align-items: center; gap: 7px; color: var(--ivory); transition: color .3s; font-weight: 500; }
.topbar-right a:hover { color: var(--gold); }
.topbar-right svg { width: 14px; height: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(245,242,234,.86); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s, background .4s;
}
.site-header.elevated { box-shadow: 0 4px 30px rgba(20,19,15,.08); background: rgba(245,242,234,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding: 4px 0; transition: color .3s;
}
.nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5.5px; background: none; border: 0; padding: 6px; z-index: 110; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  margin-top: calc(var(--topbar-h) + var(--header-h));
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero video, .hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* scrim fuerte para legibilidad total del titular */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,12,10,.82) 0%, rgba(10,12,10,.30) 42%, rgba(10,12,10,.28) 70%, rgba(10,12,10,.5) 100%),
    linear-gradient(to right, rgba(10,12,10,.55) 0%, rgba(10,12,10,.05) 60%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: clamp(48px, 8vh, 96px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
}
.hero-inner .eyebrow { color: var(--gold); }
.hero-inner .eyebrow::before { background: var(--gold); }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 5.6rem); color: var(--white);
  margin-top: 20px; max-width: 20ch; line-height: 1.02; letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero h1 em {
  font-style: italic; font-weight: 400;
  display: block; margin-top: 14px;
  font-size: .42em; color: rgba(255,255,255,.9); letter-spacing: -0.01em;
}
.hero-sub { margin-top: 22px; color: rgba(255,255,255,.85); max-width: 48ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-right { text-align: right; padding-bottom: 4px; }
.hero-scroll { writing-mode: vertical-rl; font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.65); display: inline-flex; align-items: center; gap: 14px; }
.hero-scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   MARQUEE de ubicaciones
   ============================================================ */
.marquee { background: var(--ink); color: var(--ivory); overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; gap: 0; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-size: clamp(1rem, 1.7vw, 1.4rem); font-style: italic;
  padding: 16px 30px; display: inline-flex; align-items: center; gap: 30px;
}
.marquee-track span::after { content: "·"; color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement-wrap { max-width: 940px; margin: 0 auto; text-align: center; }
.statement-wrap h2 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.statement-wrap p { margin-top: 32px; }
.statement-wrap .text-link { margin-top: 44px; }

/* ============================================================
   STATS BAND (cifras de confianza)
   ============================================================ */
.stats { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(40px,5vw,64px) clamp(20px,3vw,44px); text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.stat-num small { font-size: .5em; }
.stat-word { font-size: clamp(1.5rem, 2.7vw, 2.3rem); font-style: italic; line-height: 1.1; }
.stat-label { margin-top: 14px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,242,234,.65); font-weight: 500; }

/* ============================================================
   SERVICE CARDS (3 columnas, index)
   ============================================================ */
.srv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 26px); margin-top: clamp(50px, 7vw, 84px);
}
.srv-card { background: var(--white); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.srv-card:hover { box-shadow: 0 30px 60px -30px rgba(20,19,15,.28); transform: translateY(-4px); }
.srv-card figure { overflow: hidden; aspect-ratio: 3/4; margin: 0; position: relative; }
.srv-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.srv-card:hover figure img { transform: scale(1.06); }
.srv-body { padding: clamp(26px, 3vw, 40px); flex: 1; display: flex; flex-direction: column; }
.srv-num { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--gold); display: block; margin-bottom: 16px; }
.srv-body h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 14px; }
.srv-body p { color: var(--ink-2); font-size: .96rem; flex: 1; }
.srv-body .text-link { margin-top: 28px; align-self: flex-start; }

/* ============================================================
   PROCESO (cómo trabajamos)
   ============================================================ */
.process-head { max-width: 720px; }
.process-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 18px 0 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px,3vw,40px); margin-top: clamp(44px,6vw,72px); }
.step { border-top: 2px solid var(--gold); padding-top: 26px; }
.step-num { font-family: var(--serif); font-size: 2.4rem; font-style: italic; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.2rem; margin: 16px 0 12px; letter-spacing: 0; }
.step p { font-size: .92rem; color: rgba(245,242,234,.72); }

/* ============================================================
   FULL-BLEED IMAGE
   ============================================================ */
.fullbleed { position: relative; height: clamp(400px, 62vh, 760px); overflow: hidden; }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; }
.fullbleed-quote {
  position: absolute; inset: 0; display: flex; align-items: center; z-index: 2;
  background: linear-gradient(to right, rgba(10,12,10,.6), rgba(10,12,10,.05) 65%);
}
.fullbleed-quote .wrap { width: 100%; }
.fullbleed-quote blockquote { max-width: 22ch; font-family: var(--serif); font-style: italic; color: var(--white); font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.12; }
.fullbleed-quote cite { display: block; margin-top: 24px; font-family: var(--sans); font-style: normal; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   EXCLUSIVA MANIFESTO
   ============================================================ */
.excl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 84px); align-items: center; }
.excl-left h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.excl-right p + p { margin-top: 20px; }
.excl-right .text-link { margin-top: 38px; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.tst-head { text-align: center; max-width: 720px; margin: 0 auto; }
.tst-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 18px; }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 30px); margin-top: clamp(44px, 6vw, 72px); }
.tst-card { background: var(--white); padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tst-stars { color: var(--gold); letter-spacing: .2em; font-size: .95rem; }
.tst-card p { font-family: var(--serif); font-size: clamp(1.05rem,1.5vw,1.2rem); line-height: 1.55; color: var(--ink); margin: 20px 0 auto; }
.tst-author { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.tst-author strong { display: block; font-family: var(--sans); font-size: .92rem; font-weight: 600; }
.tst-author span { font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--forest); color: var(--ivory); padding: clamp(64px, 8vw, 120px) 0; position: relative; overflow: hidden; }
.cta-band-inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 4vw, 72px); align-items: center; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--ivory); max-width: 16ch; }
.cta-band p { color: rgba(245,242,234,.72); margin-top: 20px; max-width: 46ch; }
.cta-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex-shrink: 0; }
.cta-phone { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic; color: var(--gold); transition: opacity .3s; }
.cta-phone:hover { opacity: .7; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.g-item { overflow: hidden; position: relative; background: var(--cream); cursor: pointer; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); display: block; }
.g-item:hover img { transform: scale(1.07); }
.g-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px; color: var(--white); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; background: linear-gradient(to top, rgba(10,12,10,.65), transparent); opacity: 0; transform: translateY(8px); transition: all .45s var(--ease); }
.g-item:hover .g-cap { opacity: 1; transform: none; }
.g-item::after { content: "＋"; position: absolute; top: 18px; right: 20px; color: var(--white); font-size: 1.1rem; opacity: 0; transform: scale(.6); transition: all .45s var(--ease); z-index: 2; }
.g-item:hover::after { opacity: .9; transform: none; }

.g-wide { grid-column: span 8; aspect-ratio: 16/10; }
.g-tall { grid-column: span 4; aspect-ratio: 3/4; }
.g-half { grid-column: span 6; aspect-ratio: 4/3; }
.g-full { grid-column: span 12; aspect-ratio: 21/9; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,12,10,.97); display: none; align-items: center; justify-content: center; padding: 28px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 24px; right: 28px; background: none; border: 0; color: var(--white); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }

/* ============================================================
   FLOATING WHATSAPP (conversión)
   ============================================================ */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 250;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 36px -8px rgba(37,211,102,.7); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPulse 2.4s var(--ease) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }

/* ============================================================
   INTRO DE PÁGINAS INTERIORES
   ============================================================ */
.page-intro { margin-top: calc(var(--topbar-h) + var(--header-h)); padding: clamp(56px, 7vw, 110px) 0 clamp(40px, 4vw, 64px); border-bottom: 1px solid var(--line); background: var(--cream); }
.page-intro h1 { font-size: clamp(2.8rem, 7vw, 6rem); margin-top: 24px; max-width: 16ch; }
.page-intro .lead { margin-top: 28px; max-width: 60ch; }

/* ============================================================
   SERVICIOS (bloques alternados)
   ============================================================ */
.svc-alt { border-top: 1px solid var(--line); }
.svc-blk { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; border-bottom: 1px solid var(--line); }
.svc-blk:nth-child(even) .svc-media { order: 2; }
.svc-media { overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); display: block; }
.svc-blk:hover .svc-media img { transform: scale(1.05); }
.svc-text { padding: clamp(40px, 5vw, 80px) clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.svc-text .no { font-family: var(--serif); font-size: 2rem; font-style: italic; color: var(--gold); display: block; margin-bottom: 20px; line-height: 1; }
.svc-text h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.svc-text p { color: var(--ink-2); margin-top: 24px; max-width: 46ch; }
.svc-feats { list-style: none; margin: 32px 0 40px; border-top: 1px solid var(--line); }
.svc-feats li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); display: flex; align-items: center; gap: 15px; }
.svc-feats li::before { content: ""; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 84px); align-items: start; }
.contact-info { padding-top: 8px; }
.c-row { padding: 26px 0; border-bottom: 1px solid var(--line); }
.c-row:first-child { border-top: 1px solid var(--line); }
.c-label { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dk); display: block; margin-bottom: 8px; font-weight: 600; }
.c-value { font-size: 1.1rem; }
.c-value a { transition: color .3s; }
.c-value a:hover { color: var(--sage); }
.c-value.big { font-family: var(--serif); font-size: clamp(1.4rem,2.4vw,1.9rem); font-style: italic; }
.socials { display: flex; gap: 0; margin-top: 40px; border: 1px solid var(--line); }
.socials a { flex: 1; text-align: center; padding: 15px 10px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; border-right: 1px solid var(--line); }
.socials a:last-child { border-right: 0; }
.socials a:hover { background: var(--forest); color: var(--ivory); }

/* Formulario */
.field { margin-bottom: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
.field label { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 10px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 300; color: var(--ink);
  transition: color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--line-2); }
.field select { color: var(--ink-2); }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field textarea { resize: none; min-height: 96px; }
.contact-form { border-top: 1px solid var(--line); }
.form-ok { margin-top: 18px; font-size: .9rem; color: var(--sage); display: none; font-weight: 500; }
.form-ok.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(245,242,234,.6); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(24px, 4vw, 60px); padding: clamp(52px, 6vw, 90px) 0 clamp(40px, 4vw, 64px); }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 22px; opacity: .9; }
.footer-brand p { font-size: .94rem; max-width: 38ch; line-height: 1.7; }
.footer-brand .footer-wa { margin-top: 24px; }
.footer-col h4 { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; font-weight: 600; font-family: var(--sans); }
.footer-col a { display: block; padding: 8px 0; font-size: .94rem; color: rgba(245,242,234,.68); transition: color .3s; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .78rem; color: rgba(245,242,234,.4); letter-spacing: .04em; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-left.in, .reveal-right.in { transform: none; }

.reveal img { transform: scale(1.07); transition: transform 1.6s var(--ease); }
.reveal.in img { transform: scale(1); }

.reveal-stagger > * { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); will-change: opacity, transform; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

.reveal .eyebrow::before, .reveal.eyebrow::before { width: 0; transition: width .8s var(--ease) .2s; }
.reveal.in .eyebrow::before, .reveal.in.eyebrow::before { width: 28px; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal img, .reveal-stagger > * { transition: none !important; transform: none !important; opacity: 1 !important; }
  .hero video, .hero img.hero-bg { animation: none; }
  .marquee-track { animation: none; }
  .wa-float::before { animation: none; }
}

/* ---- Checkbox privacidad ---- */
.field-check { border-bottom: 1px solid var(--line); padding: 24px 0; }
.check-label { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.check-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { width: 20px; height: 20px; min-width: 20px; border: 1px solid var(--line-2); display: inline-block; position: relative; margin-top: 2px; transition: border-color .3s, background .3s; }
.check-label:hover .check-box { border-color: var(--gold); }
.check-label input:checked ~ .check-box { background: var(--gold); border-color: var(--gold); }
.check-box::after { content: ""; position: absolute; top: 3px; left: 6px; width: 5px; height: 10px; border: 1.5px solid var(--ink); border-left: 0; border-top: 0; transform: rotate(45deg) scale(0); transition: transform .2s; }
.check-label input:checked ~ .check-box::after { transform: rotate(45deg) scale(1); }

/* ============================================================
   RESPONSIVE — TABLET (< 960px)
   ============================================================ */
@media (max-width: 960px) {
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-right { gap: 28px; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--ivory); flex-direction: column; align-items: flex-start;
    justify-content: center; padding: 0 44px; gap: 28px;
    transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line); z-index: 105;
    box-shadow: -8px 0 40px rgba(20,19,15,.1);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.05rem; color: var(--ink); letter-spacing: .12em; padding: 6px 0; }
  .nav a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }

  .excl-grid,
  .contact-grid,
  .cta-band-inner,
  .footer-top { grid-template-columns: 1fr; }

  .srv-grid { grid-template-columns: 1fr; }
  .srv-card { flex-direction: row; }
  .srv-card figure { aspect-ratio: 1/1; width: 42%; flex-shrink: 0; }
  .srv-body { padding: clamp(22px,4vw,34px); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }

  .svc-blk { grid-template-columns: 1fr; min-height: auto; }
  .svc-blk:nth-child(even) .svc-media { order: 0; }
  .svc-media { aspect-ratio: 3/2; }

  .g-wide, .g-tall, .g-half, .g-full { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ============================================================
   RESPONSIVE — MÓVIL (< 620px)
   ============================================================ */
@media (max-width: 620px) {
  :root { --header-h: 62px; --topbar-h: 38px; --pad: 20px; }

  .topbar { font-size: .68rem; }
  .topbar-right { gap: 20px; }
  .brand img { height: 34px; }

  .section { padding: 56px 0; }
  .page-intro { padding: 48px 0 36px; }

  .hero { height: 92svh; min-height: 560px; }
  .hero-inner { padding-bottom: 40px; }
  .hero .eyebrow { font-size: .62rem; letter-spacing: .22em; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero h1 em { font-size: .46em; }
  .hero-sub { font-size: .95rem; margin-top: 16px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; }

  .marquee-track span { padding: 16px 28px; gap: 28px; }

  .statement-wrap { text-align: left; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 16px; }

  .srv-card { flex-direction: column; }
  .srv-card figure { width: 100%; aspect-ratio: 4/3; }

  .process-grid { grid-template-columns: 1fr; gap: 22px; }

  .fullbleed { height: 320px; }
  .fullbleed-quote { background: linear-gradient(to top, rgba(10,12,10,.75), rgba(10,12,10,.15)); align-items: flex-end; padding-bottom: 32px; }

  .cta-band { padding: 56px 0; }
  .cta-band .btn { width: 100%; }

  .gallery-grid { gap: 8px; }
  .g-wide, .g-tall, .g-half, .g-full { aspect-ratio: 3/2; }

  .svc-media { aspect-ratio: 4/3; }
  .svc-text { padding: 36px 20px 44px; }
  .svc-text .btn { width: 100%; }

  .contact-grid { gap: 44px; }
  .socials { display: grid; grid-template-columns: 1fr 1fr; }
  .socials a { border-right: 1px solid var(--line); }
  .socials a:nth-child(even) { border-right: 0; }
  .socials a:nth-child(3), .socials a:nth-child(4) { border-top: 1px solid var(--line); }

  .footer-top { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }

  .wa-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .wa-float svg { width: 28px; height: 28px; }
}
