/* ================================
   2R ARQUITECTOS — Estilos globales
   Inspirado en fluid.glass · Paleta PDF
   ================================ */

:root {
  --bg-void: #0c0810;
  --bg-deep: #15101c;
  --bg-plum: #1c1427;
  --bg-raisin: #2a1f38;
  --ink: #f4efe6;
  --ink-mute: #b7ad9e;
  --ink-soft: #8a8275;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.22);
  --gold: #d4c17a;
  --gold-soft: #e8dba8;
  --brand-purple: #931c80;
  --brand-cream: #d6cf91;
  --paper: #f3ede2;
  --paper-deep: #e6ddc9;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  --serif: "Sora", "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Sora", "Inter", sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
html.has-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-void);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .4s var(--ease); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 0; }

/* Emphasis en titulares con Sora: NO italic sintético. PDF muestra texto plano — mantener mismo peso/color */
h1 em, h2 em, h3 em, h1 .italic, h2 .italic, h3 .italic {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}

p { margin: 0; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(24px, 4.5vw, 72px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand-purple);
  font-weight: 600;
}
/* Eyebrows sobre fondos oscuros: mantener brand purple pero con leve boost de claridad */
.hero .eyebrow, .approach .eyebrow, .footer .eyebrow, .page-hero .eyebrow,
.nav-overlay .eyebrow {
  color: #c85ab1;
}

/* ============ CURSOR PERSONALIZADO (isotipo 2R) ============ */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select, label { cursor: none; }

  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    mix-blend-mode: difference;
    transition: transform .15s var(--ease), width .3s, height .3s, opacity .3s;
  }
  .cursor-ring {
    width: 28px; height: 28px;
    background: url('../../assets/brand/isotipo.svg') center/contain no-repeat;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.3));
    transition: transform .4s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .4s;
    opacity: .9;
  }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    transform: translate(-50%, -50%) rotate(8deg);
  }
  body.cursor-hover .cursor-dot { opacity: 0; }
  body.cursor-view .cursor-ring {
    width: 88px; height: 88px;
    transform: translate(-50%, -50%) rotate(-6deg);
  }
  body.cursor-view .cursor-dot { opacity: 0; }
  body.cursor-view::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 120px; height: 120px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    opacity: .4;
  }
}

/* ============ HEADER TOP · Logotipo centrado ============ */
.header-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 28px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: padding .5s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
.header-top-logo {
  display: inline-flex;
  align-items: center;
  pointer-events: all;
  transition: opacity .4s var(--ease);
}
.header-top-logo:hover { opacity: .7; }
.header-top-logo img {
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 20px rgba(0,0,0,.5));
}
/* Al scroll, se esconde suavemente */
.header-top.hidden {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}
@media (max-width: 600px) {
  .header-top { padding: 22px 24px; }
  .header-top-logo img { height: 15px; }
}

/* ============ NAV · Cápsula flotante estilo fluid.glass ============ */
.nav {
  position: fixed;
  bottom: 32px; left: 50%;
  top: auto;
  transform: translateX(-50%);
  z-index: 100;
  width: auto;
  max-width: calc(100vw - 48px);
  padding: 0;
  transition: bottom .6s var(--ease), transform .6s var(--ease);
}
.nav.scrolled { bottom: 24px; }
.nav.at-bottom { bottom: 64px; transition: bottom .6s var(--ease), opacity .5s var(--ease), transform .6s var(--ease); }
/* Al at-bottom (footer visible): colapsar cápsula a un solo botón "back to top" centrado */
.nav.at-bottom .brand,
.nav.at-bottom .nav-section,
.nav.at-bottom .nav-toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(.7);
  width: 0;
  min-width: 0;
  max-width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  flex: 0 0 0;
  transition: opacity .3s var(--ease), transform .35s var(--ease), width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), padding .45s var(--ease);
}
.nav.at-bottom .nav-section::before,
.nav.at-bottom .nav-section::after { display: none; }
.nav.at-bottom .nav-inner {
  padding: 6px;
  gap: 0;
  min-height: 0;
  background: rgba(12, 8, 16, 0.75);
}
.nav.at-bottom .nav-back-top {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
  width: 44px;
  height: 44px;
}

/* Back-to-top button (solo visible en at-bottom) */
.nav-back-top {
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg-void);
  cursor: none;
  width: 0;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(.7);
  overflow: hidden;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease),
              transform .45s var(--ease), opacity .35s var(--ease), width .5s var(--ease);
}
.nav-back-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.08) translateY(-2px);
}
.nav-back-top svg { width: 16px; height: 16px; display: block; }

.nav .container { padding: 0 !important; max-width: none !important; width: auto !important; margin: 0 !important; }
.nav-inner {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(12, 8, 16, 0.72);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 14px 12px 20px;
  box-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
  width: auto;
  min-height: 64px;
}
.nav-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 50%);
  pointer-events: none;
}
.nav.scrolled .nav-inner {
  background: rgba(12, 8, 16, 0.85);
  border-color: var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  z-index: 110;
  padding: 0;
  margin: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  position: relative;
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(212, 193, 122, .08);
  border: 1px solid var(--line);
  border-radius: 50%;
  justify-content: center;
}
.brand:hover { opacity: .85; transform: rotate(5deg); }
.brand img {
  width: 22px; height: 22px;
  display: block;
  object-fit: contain;
}

/* Nombre de la sección actual */
.nav-section {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  padding: 0 8px;
  white-space: nowrap;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  min-width: 100px;
  text-align: center;
  position: relative;
}
.nav-section::before, .nav-section::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}
.nav-section::before { left: -4px; }
.nav-section::after { right: -4px; }
.nav-section.changing { opacity: 0; transform: translateY(-4px); }

.nav-icon-btn, .nav-toggle { margin-left: 0; }

.nav-menu, .nav-cta { display: none !important; }
.nav-menu a {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
  padding: 8px 0;
  font-weight: 500;
  display: inline-block;
  height: 1.2em;
  line-height: 1.2;
  overflow: hidden;
}
/* Line-swap hover (estilo fluid.glass) */
.nav-menu a .line {
  display: block;
  transition: transform .55s var(--ease);
}
.nav-menu a .line:nth-child(2) {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--gold);
}
.nav-menu a:hover .line { transform: translateY(-100%); }

.nav-cta {
  margin-left: 28px;
  padding: 0 24px !important;
  height: 42px;
  background: var(--gold);
  color: var(--bg-void) !important;
  border: none;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .5s var(--ease), color .5s var(--ease), transform .4s var(--ease);
  line-height: 42px;
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  height: 42px !important;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bg-void) !important;
  transform: translateY(-1px);
}
.nav-cta .line:nth-child(2) { position: absolute; top: 100%; left: 24px; color: var(--bg-void); }
.nav-cta:hover .line { transform: translateY(-100%); }

/* Iconos de la cápsula (compatibilidad, aunque el scroll-top se quitó) */
.nav-icon-btn {
  display: none;
}
.nav-scroll-top { display: none !important; }

.nav-toggle {
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg-void);
  cursor: none;
  width: 40px; height: 40px;
  padding: 0;
  z-index: 110;
  position: relative;
  border-radius: 50%;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--ink); border-color: var(--ink); transform: scale(1.05); }
.nav-toggle span {
  display: block;
  width: 16px; height: 1px;
  background: currentColor;
  margin: 3.5px auto;
  transition: transform .55s var(--ease), opacity .3s var(--ease), width .4s var(--ease);
  transform-origin: center;
}
.nav-toggle.open { background: var(--gold); color: var(--bg-void); border-color: var(--gold); }
.nav-toggle.open span { width: 14px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Body menu-open state: cápsula mantiene su contenido visible (isotipo + sección + burger→X), sólo oscurece fondo */
body.menu-open .nav-inner { background: rgba(12, 8, 16, 0.92); border-color: var(--line-strong); }

/* Backdrop oscuro detrás del menu overlay (imagen arquitectónica como fondo) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 20, 39, .55) 0%, rgba(12, 8, 16, .85) 100%),
    url('../../assets/images/proceso.webp') center/cover no-repeat;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s var(--ease), visibility 0s .7s;
  cursor: none;
}
.nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: all; transition: opacity .7s var(--ease), visibility 0s; }

/* ============ MENU OVERLAY · Bloque flotante encima de la cápsula ============ */
.nav-overlay {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%) scale(.92);
  transform-origin: center bottom;
  z-index: 99;
  width: min(420px, calc(100vw - 32px));
  background: rgba(21, 16, 28, 0.92);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 50px 140px -30px rgba(0,0,0,.9), 0 2px 12px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform .8s var(--ease-out), opacity .5s var(--ease), width .7s var(--ease), bottom .7s var(--ease), visibility 0s .5s;
  overflow: hidden;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
/* Al llegar a la ending-hero: overlay grande y completo dentro del bloque visual (sin scroll interno) */
.nav-overlay.at-footer {
  width: min(640px, calc(100vw - 64px));
  max-height: none;
  overflow: visible;
}
.nav-overlay.open {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: transform .8s var(--ease-out), opacity .5s var(--ease), visibility 0s;
}
.nav-overlay::-webkit-scrollbar { display: none; }
.nav-overlay { scrollbar-width: none; }

.nav-overlay::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .5;
  pointer-events: none;
}

.nav-overlay-inner {
  position: relative;
  padding: 60px 52px 44px;
  display: block;
  width: 100%;
}
.nav-overlay.at-footer .nav-overlay-inner { padding: 72px 64px 56px; }

.nav-overlay .eyebrow {
  display: block;
  margin-bottom: 36px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .24em;
}
.nav-overlay-label {
  display: block;
  margin: 32px 0 0 !important;
  color: var(--ink-soft) !important;
  text-align: right;
  font-size: 11px;
  letter-spacing: .32em !important;
  text-transform: uppercase;
}

.nav-overlay-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-overlay-list li {
  overflow: hidden;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
}
.nav-overlay-list li:last-child { border-bottom: 1px solid var(--line); }
.nav-overlay-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  padding: 24px 18px;
  position: relative;
  transition: color .5s var(--ease), transform .8s var(--ease), opacity .8s var(--ease), padding .4s var(--ease);
  transform: translateY(30px);
  opacity: 0;
}
.nav-overlay-list li { padding: 0; }
.nav-overlay.open .nav-overlay-list a { transform: translateY(0); opacity: 1; }
.nav-overlay.open .nav-overlay-list li:nth-child(1) a { transition-delay: .18s; }
.nav-overlay.open .nav-overlay-list li:nth-child(2) a { transition-delay: .24s; }
.nav-overlay.open .nav-overlay-list li:nth-child(3) a { transition-delay: .30s; }
.nav-overlay.open .nav-overlay-list li:nth-child(4) a { transition-delay: .36s; }
.nav-overlay.open .nav-overlay-list li:nth-child(5) a { transition-delay: .42s; }

.nav-overlay-list a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all .5s var(--ease);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
}
.nav-overlay-list a:hover { color: var(--gold); padding-left: 14px; }
.nav-overlay-list a:hover::after { opacity: 1; transform: translateX(0); }

.nav-overlay-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 44px 32px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .7s var(--ease) .5s, opacity .7s var(--ease) .5s;
}
.nav-overlay.at-footer .nav-overlay-side { padding: 32px 56px 36px; }
.nav-overlay.open .nav-overlay-side { transform: translateY(0); opacity: 1; }
.nav-overlay-side > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav-overlay-side h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 500;
  flex-shrink: 0;
}
.nav-overlay-side a {
  font-size: 13px;
  color: var(--ink-mute);
  display: inline-block;
  padding: 2px 0;
  text-align: right;
}
.nav-overlay-side a + a { margin-left: 16px; }
.nav-overlay-side a:hover { color: var(--gold); }
.nav-overlay-side .contact-info-block { display: flex; justify-content: space-between; }
.nav-overlay-side .contact-info-block p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  text-align: right;
}
.nav-overlay-side .contact-info-block strong { color: var(--ink-soft); display: block; font-weight: 400; font-family: var(--sans); font-size: 11px; margin-top: 4px; letter-spacing: .08em; }

@media (max-width: 520px) {
  .nav-overlay { bottom: 96px; width: calc(100vw - 24px); }
  .nav-overlay-inner { padding: 24px 26px 22px; }
  .nav-overlay-side { padding: 20px 26px 26px; gap: 16px; }
  .nav-overlay-list a { padding: 14px 4px; font-size: 24px; }
}

@media (max-width: 960px) {
  .nav-inner { padding: 7px 7px 7px 18px; min-height: 52px; }
  .brand img { height: 14px; }
  .nav-icon-btn, .nav-toggle { width: 38px; height: 38px; }
  .nav.scrolled .nav-scroll-top { width: 38px; }
  .nav-overlay-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 500px) {
  .nav { bottom: 16px; max-width: calc(100vw - 24px); }
  .nav.scrolled { bottom: 14px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg, .hero-video {
  position: absolute; inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center center !important;
  transform: scale(1.08);
  animation: heroZoom 22s ease-out forwards;
  will-change: transform;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(12,8,16,.3) 0%, transparent 60%),
    linear-gradient(180deg, rgba(12, 8, 16, 0.55) 0%, rgba(12, 8, 16, 0.25) 40%, rgba(12, 8, 16, 0.9) 100%);
}
.hero-content {
  max-width: 1000px;
  padding-top: 120px;
  padding-bottom: 160px;
}
.hero h1 {
  font-size: clamp(48px, 8.5vw, 130px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}
.hero h1 .italic {
  font-style: normal;
  display: inline-block;
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 32px;
  padding-left: 60px;
  position: relative;
}
.hero-kicker::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 44px; height: 1px; background: var(--gold);
  animation: lineGrow 1.2s var(--ease) .3s both;
  transform-origin: left;
}
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 680px;
}
.hero-meta p {
  font-size: 15px;
  color: var(--ink-mute);
  max-width: 420px;
  line-height: 1.75;
}
.hero-arrow {
  position: absolute;
  bottom: 130px; left: clamp(24px, 4.5vw, 72px);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 0;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.hero-arrow::before {
  content: "↘";
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
  display: inline-block;
  transition: transform .4s var(--ease);
}
.hero-arrow:hover { color: var(--gold); transform: translateX(4px); }
.hero-arrow:hover::before { transform: translate(3px, 3px); }
@media (max-width: 700px) {
  .hero-arrow { left: 24px; bottom: 110px; }
}

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 36px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .5s var(--ease);
  position: relative;
  overflow: hidden;
  line-height: 1;
  will-change: transform;
}
.btn-gold {
  background: var(--gold);
  color: var(--bg-void);
  border-color: var(--gold);
}
.btn-gold::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gold-soft);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
  border-radius: inherit;
}
.btn-gold:hover::before { transform: translateY(0); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -15px rgba(212, 193, 122, 0.5); border-color: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-ghost.dark { color: var(--bg-void); border-color: rgba(0,0,0,.2); }
.btn-ghost.dark:hover { background: var(--bg-void); color: var(--paper); border-color: var(--bg-void); }
.btn .arrow {
  display: inline-block;
  transition: transform .45s var(--ease);
}
.btn:hover .arrow { transform: translateX(6px); }

/* ============ SECCIONES ============ */
section { position: relative; padding: clamp(80px, 12vw, 180px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(36px, 5.2vw, 72px);
  max-width: 16ch;
}
.section-head .eyebrow { margin-bottom: 24px; display: block; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
}

/* Intro / Quiénes somos */
.intro {
  background: var(--paper);
  color: var(--bg-void);
  text-align: center;
}
.intro .eyebrow { color: var(--bg-void); opacity: .55; }
.intro h2 {
  font-size: clamp(32px, 4.5vw, 62px);
  max-width: 22ch;
  margin: 24px auto 48px;
  font-weight: 500;
}
.intro .lead {
  max-width: 640px;
  margin: 0 auto 52px;
  color: #3a2f1f;
  font-size: 18px;
  line-height: 1.75;
}

/* Servicios · Grid masonry (según PDF) */
.services { background: var(--paper); color: var(--bg-void); padding-top: 0; }
.services-head { align-items: start; }
.services-intro {
  max-width: 42ch;
  padding-top: 8px;
}
.services-lead {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bg-void);
  margin-bottom: 16px;
  font-weight: 400;
}
.services-detail {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.8;
  color: #5a4730;
  margin-bottom: 32px;
}
.services-intro .btn { padding: 14px 28px; font-size: 11px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: min-content;
  gap: 32px 32px;
  align-items: start;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: none;
  aspect-ratio: 4 / 5;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  background: var(--bg-deep);
}
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter .8s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(12,8,16,0) 0%,
    rgba(12,8,16,0) 30%,
    rgba(12,8,16,.45) 60%,
    rgba(12,8,16,.85) 85%,
    rgba(12,8,16,.95) 100%);
  transition: background .6s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  z-index: 3;
}
.service-card:hover img { transform: scale(1.08); filter: brightness(.55); }
.service-card:hover::after {
  background: linear-gradient(180deg, rgba(12,8,16,.55) 0%, rgba(12,8,16,.82) 100%);
}
.service-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px;
  z-index: 2;
  color: var(--ink);
}
.service-card h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin-bottom: 0;
  line-height: 1;
  transition: transform .55s var(--ease);
}
.service-card:hover h3 { transform: translateY(-4px); }
.service-card p {
  font-size: 13.5px;
  color: var(--ink);
  max-width: 34ch;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), max-height .5s var(--ease), margin-top .5s var(--ease), transform .5s var(--ease);
  overflow: hidden;
}
.service-card:hover p {
  opacity: 1;
  max-height: 120px;
  margin-top: 16px;
  transform: translateY(0);
}

/* PDF diagramación:
   sv-01 (Diseño)          → izquierda grande vertical
   sv-02 (Compatibilización) → derecha mediana vertical, desplazada hacia abajo
   sv-03 (Renders y planos) → izquierda pequeña vertical, debajo del sv-01
   sv-04 (Gestión licencias) → centro/derecha mediana horizontal */
.service-card.sv-01 {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  aspect-ratio: 4 / 5;
}
.service-card.sv-02 {
  grid-column: 8 / span 5;
  grid-row: 1 / span 2;
  aspect-ratio: 3 / 4;
  margin-top: 140px;
}
.service-card.sv-03 {
  grid-column: 2 / span 3;
  grid-row: 3;
  aspect-ratio: 3 / 4;
  margin-top: 48px;
}
.service-card.sv-04 {
  grid-column: 6 / span 5;
  grid-row: 3;
  aspect-ratio: 4 / 3;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .service-card, .service-card.sv-01, .service-card.sv-02, .service-card.sv-03, .service-card.sv-04 {
    grid-column: span 1; transform: none; margin: 0; aspect-ratio: 4 / 5;
  }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Cómo trabajamos — sección oscura con parallax */
.approach {
  background: var(--bg-deep);
  color: var(--ink);
  overflow: hidden;
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.approach-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.approach-media img {
  width: 100%; height: 115%; object-fit: cover;
  will-change: transform;
}
.approach h2 { font-size: clamp(32px, 4.2vw, 60px); font-style: normal; color: var(--ink); margin-bottom: 32px; }
.approach p { color: var(--ink-mute); font-size: 16px; line-height: 1.85; max-width: 50ch; margin-bottom: 48px; }
@media (max-width: 900px) {
  .approach-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* Proyectos · Lista acordeón tipo fluid.glass */
.projects { background: var(--paper); color: var(--bg-void); }
.project-list { border-top: 1px solid rgba(0,0,0,.15); }
.project-item {
  border-bottom: 1px solid rgba(0,0,0,.15);
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  gap: 40px;
  padding: 40px 8px;
  align-items: center;
  transition: padding .6s var(--ease), background .6s var(--ease);
  position: relative;
  overflow: hidden;
}
.project-item::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-void);
  transform: translateY(100%);
  transition: transform .8s var(--ease);
  z-index: 0;
}
.project-item:hover::before { transform: translateY(0); }
.project-item:hover { color: var(--paper); padding-left: 28px; }
.project-item > * { position: relative; z-index: 1; }
.project-item h3 {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 500;
  transition: color .5s var(--ease);
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 999px;
  color: #3a2f1f;
  transition: all .4s var(--ease);
  cursor: none;
  background: transparent;
  font-family: var(--sans);
}
.project-item:hover .project-tag { border-color: var(--gold); color: var(--gold); }
.project-plus {
  width: 48px; height: 48px;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  transition: all .5s var(--ease);
}
.project-item:hover .project-plus {
  background: var(--gold); color: var(--bg-void); border-color: var(--gold);
  transform: rotate(45deg);
}
.project-preview {
  position: fixed;
  width: 280px; height: 360px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.project-preview img { width: 100%; height: 100%; object-fit: cover; }
.project-preview.active { opacity: 1; transform: scale(1); }

@media (max-width: 800px) {
  .project-item { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .project-item:hover { padding-left: 0; }
  .project-plus { justify-self: end; }
}

/* Galería proyectos destacados */
.gallery {
  background: var(--paper);
  padding-top: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid .g-tall { aspect-ratio: 3/4; }
.gallery-grid .g-wide { aspect-ratio: 4/3; margin-top: 140px; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid .g-wide { margin-top: 0; }
}

/* Testimonios */
.testimonials {
  background: var(--paper);
  color: var(--bg-void);
  border-top: 1px solid rgba(0,0,0,.1);
}
.testimonial {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.testimonial-quote { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 36px); font-style: normal; line-height: 1.35; margin-bottom: 24px; }
.testimonial-quote::before { content: "“"; color: var(--gold); font-size: 2em; line-height: 0; margin-right: 6px; vertical-align: -.3em; }
.testimonial-author { font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }
.testimonial-author strong { color: var(--bg-void); display: block; font-weight: 500; font-family: var(--sans); margin-bottom: 2px; }

.testimonial-nav { display: flex; gap: 14px; margin-top: 56px; justify-content: center; align-items: center; flex-wrap: wrap; }
.t-btn {
  width: 52px; height: 52px;
  border: 1px solid rgba(0,0,0,.2); background: transparent;
  border-radius: 50%;
  cursor: none;
  display: grid; place-items: center;
  color: var(--bg-void);
  transition: all .5s var(--ease);
  font-family: var(--serif);
  font-size: 18px;
}
.t-btn:hover { background: var(--bg-void); color: var(--gold); border-color: var(--bg-void); transform: translateY(-2px); }
.t-review { font-size: 13px; color: var(--ink-soft); margin-left: 28px; letter-spacing: .06em; }
.t-review strong { color: var(--gold); font-family: var(--serif); font-size: 18px; margin-left: 6px; }

@media (max-width: 800px) {
  .testimonial { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .testimonial-avatar { margin: 0 auto; }
  .t-review { margin-left: 0; display: block; margin-top: 12px; width: 100%; }
}

/* CTA final */
.cta {
  background: var(--paper-deep);
  color: var(--bg-void);
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: .15;
  pointer-events: none;
}
.cta-isotipo {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 28vw, 340px);
  height: auto;
  opacity: .12;
  pointer-events: none;
  filter: grayscale(1) brightness(.6);
  z-index: 1;
}
@media (max-width: 900px) {
  .cta-isotipo { right: -30%; opacity: .08; }
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 80px;
  align-items: center;
  padding: 0 clamp(0px, 3vw, 40px);
}
.cta h2 {
  font-size: clamp(32px, 5.4vw, 72px);
  max-width: 14ch;
  font-weight: 500;
  line-height: 1.05;
}
.cta .eyebrow { display: block; margin-bottom: 24px; opacity: .55; }
.cta .btn { padding: 22px 40px; }

@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; gap: 48px; padding: 0; }
}

/* ============ PRE-FOOTER VISUAL · Imagen arquitectónica ============ */
.ending-hero {
  position: relative;
  height: clamp(620px, 88vh, 840px);
  overflow: hidden;
  background: var(--bg-void);
  isolation: isolate;
}
.ending-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 2s var(--ease-out);
  will-change: transform;
}
.ending-hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,8,16,.35) 0%, rgba(12,8,16,.7) 100%);
}

/* ============ FOOTER · Minimal (menú en hamburger) ============ */
.footer {
  background: var(--bg-void);
  color: var(--ink-mute);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.footer-bg { display: none; }
.footer::before { display: none; }
.footer > .container { position: relative; z-index: 1; }

.footer-bottom {
  padding-top: 0 !important;
  gap: 20px !important;
  font-size: 11px !important;
}
.footer-bottom-left { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 12px; width: auto; opacity: .55; transition: opacity .4s; }
.footer-logo:hover { opacity: 1; }
.footer-dev { color: var(--ink-soft); }

.footer-socials-inline { gap: 16px !important; }
.footer-socials-inline a {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  transition: all .4s var(--ease);
  font-size: 12px;
  color: var(--ink-mute);
}
.footer-socials-inline a:hover {
  background: var(--gold); color: var(--bg-void); border-color: var(--gold);
  transform: translateY(-2px);
}
.footer-legal { gap: 18px !important; font-size: 11px !important; }
.footer-legal a { font-size: 11px; }

/* Overlay socials iconos */
.overlay-socials { display: flex; gap: 10px; align-items: center; }
.overlay-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 14px;
  transition: all .4s var(--ease);
}
.overlay-socials a:hover {
  background: var(--gold); color: var(--bg-void); border-color: var(--gold);
  transform: translateY(-2px);
}
.footer-top {
  display: block;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 80px;
  align-items: end;
}
.footer-brand > div:first-of-type { min-width: 0; }
.footer-brand h3 {
  font-size: clamp(48px, 6.5vw, 100px);
  color: var(--ink);
  margin-bottom: 0;
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.025em;
  max-width: 14ch;
}
.footer-brand .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  align-items: flex-start;
}
.footer-brand .footer-contact a {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -.005em;
  transition: color .4s var(--ease), transform .4s var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.footer-brand .footer-contact a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink-mute);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.footer-brand .footer-contact a:hover { color: var(--gold); }
.footer-brand .footer-contact a:hover::after { transform: scaleX(1); transform-origin: left; background: var(--gold); }

@media (max-width: 800px) {
  .footer-brand { grid-template-columns: 1fr; gap: 40px; }
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-family: var(--sans);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 15px; color: var(--ink); font-family: var(--serif); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-socials-inline { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-socials-inline a { color: var(--ink-mute); }

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
  .footer-brand h3 { font-size: clamp(36px, 8vw, 56px); }
  .footer-bottom { justify-content: flex-start; }
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .14s; }
.reveal-delay-2 { transition-delay: .28s; }
.reveal-delay-3 { transition-delay: .42s; }

/* Line-by-line reveal · con padding para no cortar tildes/descenders */
.split-line {
  display: block;
  overflow: hidden;
  padding: .12em 0 .22em;
  margin: -.12em 0 -.22em;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  padding: .12em 0 .22em;
  margin: -.12em 0 -.22em;
}
.split-line.visible > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .12s; }
.split-line:nth-child(3) > span { transition-delay: .24s; }
.split-line:nth-child(4) > span { transition-delay: .36s; }

/* Image mask reveal */
.mask-reveal {
  position: relative;
  overflow: hidden;
}
.mask-reveal::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  transform-origin: bottom;
  transition: transform 1.4s var(--ease-out);
}
.mask-reveal.dark::after { background: var(--bg-deep); }
.mask-reveal.visible::after { transform: scaleY(0); }
.mask-reveal img { transform: scale(1.15); transition: transform 2s var(--ease-out); }
.mask-reveal.visible img { transform: scale(1); }

/* ============ PÁGINAS INTERNAS ============ */
.page-hero {
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 100px;
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: .4;
  filter: blur(3px);
  transform: scale(1.08);
  animation: heroZoom 20s ease-out forwards;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,8,16,.3), rgba(12,8,16,.7));
}
.page-hero h1 {
  font-size: clamp(48px, 7.5vw, 108px);
  max-width: 16ch;
  font-weight: 500;
}
.page-hero .crumbs {
  display: flex; gap: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 40px;
  align-items: center;
}
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .crumbs span { color: var(--gold); }

.legal {
  background: var(--paper);
  color: var(--bg-void);
  padding: 120px 0;
}
.legal .container { max-width: 900px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.legal .updated { color: var(--ink-soft); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 48px; display: block; }
.legal h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 56px 0 20px; color: var(--bg-void); font-weight: 400; }
.legal h3 { font-size: 18px; margin: 32px 0 14px; font-weight: 500; font-family: var(--sans); letter-spacing: -.01em; }
.legal p, .legal li { font-size: 15px; line-height: 1.85; color: #2a1f38; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--bg-void); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal strong { color: var(--bg-void); }

/* Contacto */
.contact { background: var(--paper); color: var(--bg-void); padding: 120px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
}
.contact-info h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 24px; }
.contact-info ul { list-style: none; padding: 0; margin: 40px 0; }
.contact-info li { padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.1); font-size: 15px; display: flex; justify-content: space-between; gap: 20px; }
.contact-info li strong { color: var(--bg-void); font-weight: 500; }

.form-group { margin-bottom: 28px; }
.form-group label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.2);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bg-void);
  outline: none;
  transition: border-color .4s var(--ease);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--bg-void); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin: 28px 0; line-height: 1.5; }
.form-checkbox input { margin-top: 3px; accent-color: var(--gold); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* Proyecto grid en proyectos.html */
.project-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  cursor: none;
  background: var(--bg-deep);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12,8,16,.88));
  transition: opacity .5s var(--ease);
}
.project-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px; z-index: 2; color: var(--ink);
  transform: translateY(20px);
  transition: transform .6s var(--ease);
}
.project-card-body h3 { font-size: 26px; margin-bottom: 6px; }
.project-card-body .eyebrow { color: var(--gold); display: block; margin-bottom: 8px; }
.project-card:hover img { transform: scale(1.06); }
.project-card:hover .project-card-body { transform: translateY(0); }

@media (max-width: 900px) { .project-grid-full { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 600px) { .project-grid-full { grid-template-columns: 1fr; } }

/* Skip a contenido */
.skip-link {
  position: absolute; top: -100px; left: 20px;
  background: var(--gold); color: var(--bg-void);
  padding: 12px 24px; z-index: 200;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
}
.skip-link:focus { top: 20px; }

/* ============ COOKIE BANNER · Rediseño ============ */
.cookie-banner {
  position: fixed;
  bottom: 32px; left: 32px;
  max-width: 460px;
  width: calc(100% - 64px);
  padding: 0;
  background: rgba(21, 16, 28, 0.9);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 90;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 60px));
  opacity: 0;
  transition: transform .9s var(--ease), opacity .5s var(--ease);
  overflow: hidden;
  color: var(--ink);
}
.cookie-banner.visible { transform: none; opacity: 1; }

.cookie-banner::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .6;
}
.cookie-inner {
  padding: 36px 40px 36px;
}
.cookie-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: 40px;
}
.cookie-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(212, 193, 122, .12);
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.cookie-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  font-style: normal;
  letter-spacing: -.01em;
  line-height: 1;
  margin: 0;
}
.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin: 0 0 28px;
}
.cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-actions .btn {
  padding: 13px 24px;
  font-size: 11px;
  letter-spacing: .16em;
  flex: 1;
  justify-content: center;
  min-width: fit-content;
}
.cookie-actions .btn-ghost {
  color: var(--ink-mute);
  border-color: var(--line-strong);
}
.cookie-actions .btn-ghost:hover { color: var(--ink); border-color: var(--ink-mute); }
.cookie-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-mute);
  cursor: none;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: all .3s var(--ease);
  z-index: 2;
}
.cookie-close:hover { background: rgba(244, 239, 230, 0.08); color: var(--ink); border-color: var(--line); }

@media (max-width: 520px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 88px; width: calc(100% - 32px); max-width: none; }
  .cookie-inner { padding: 28px 24px 28px; }
  .cookie-header { padding-right: 36px; }
  .cookie-actions .btn { flex: 1 1 100%; }
}

/* WhatsApp FAB */
.fab-wa {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  z-index: 80;
  box-shadow: 0 15px 35px -10px rgba(37,211,102,.6);
  transition: transform .4s var(--ease);
  cursor: none;
}
.fab-wa svg { width: 26px; height: 26px; }
@media (max-width: 560px) {
  .fab-wa { bottom: 88px; right: 16px; width: 48px; height: 48px; }
  .fab-wa svg { width: 22px; height: 22px; }
}
@media (max-width: 520px) {
  .fab-wa { bottom: 260px; }
}
.fab-wa:hover { transform: scale(1.1) rotate(-6deg); }
.fab-wa::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: .4;
  animation: fabPulse 2s infinite;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Selection */
::selection { background: var(--gold); color: var(--bg-void); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-raisin); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 1s var(--ease-out);
}
.page-transition.active { transform: translateY(0); }
.page-transition.out { transform: translateY(-100%); transition: transform 1s var(--ease-out) .2s; }

/* Loader inicial */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 1s var(--ease), transform 1s var(--ease), visibility 1s var(--ease);
}
.loader.hidden {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
}
.loader-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo::before {
  content: "";
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,193,122,0.18) 0%, transparent 70%);
  animation: loaderGlow 2.2s var(--ease) infinite alternate;
}
.loader-logo::after {
  content: "";
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(212,193,122,0.2);
  animation: loaderRing 3s linear infinite;
}
.loader-logo img {
  height: 64px; width: auto;
  display: block;
  position: relative;
  z-index: 1;
  animation: loaderFloat 3s var(--ease) infinite alternate;
}
.loader-tagline {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  animation: loaderFadeIn 1s var(--ease) .4s both;
}
@keyframes loaderGlow {
  0%   { transform: scale(0.85); opacity: .4; }
  100% { transform: scale(1.15); opacity: 1; }
}
@keyframes loaderRing {
  from { transform: rotate(0deg) scale(1); opacity: .3; }
  to   { transform: rotate(360deg) scale(1.08); opacity: .6; }
}
@keyframes loaderFloat {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}
@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: .85; }
}
.loader-bar {
  width: 160px; height: 1px;
  background: var(--line-strong);
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: ""; position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--brand-cream));
  transform-origin: left;
  animation: loadProgress 1.4s var(--ease-out) forwards;
}
@keyframes loadProgress {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ============ MICRO-ANIMATIONS: SCROLL PROGRESS BAR ============ */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--brand-purple) 50%, var(--gold));
  background-size: 200% 100%;
  z-index: 9999;
  pointer-events: none;
  animation: progressGradientMove 4s linear infinite;
}
@keyframes progressGradientMove {
  0%   { background-position: 0%   0%; }
  100% { background-position: 200% 0%; }
}

/* ============ MOUSE SPOTLIGHT (hero) ============ */
.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 700px at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(212,193,122,0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero:hover .hero-spotlight { opacity: 1; }

/* ============ GRAIN TEXTURE (secciones oscuras) ============ */
.grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.03;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* ============ BUTTON SHIMMER (mouse-tracking glow interno) ============ */
.btn-gold {
  --btn-glow-x: 50%;
  --btn-glow-y: 50%;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 80px at var(--btn-glow-x) var(--btn-glow-y), rgba(255,255,255,0.28) 0%, transparent 65%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn-gold:hover::after { opacity: 1; }

.btn-ghost {
  --btn-glow-x: 50%;
  --btn-glow-y: 50%;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 80px at var(--btn-glow-x) var(--btn-glow-y), rgba(212,193,122,0.18) 0%, transparent 65%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.btn-ghost:hover::after { opacity: 1; }

/* ============ CURSOR AMBIENT GLOW ============ */
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 500px; height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212,193,122,0.045) 0%, transparent 65%);
    pointer-events: none;
    z-index: 9987;
    border-radius: 50%;
    will-change: transform;
  }
}

/* ============ 3D CARD TILT ============ */
.service-card.has-tilt:hover {
  transform: none; /* JS controla la perspectiva */
}

/* ============ EYEBROW (prevent layout shift durante scramble) ============ */
.eyebrow { min-height: 1em; }

/* Print */
@media print {
  .nav, .footer, .cookie-banner, .hero-arrow, .fab-wa, .cursor-dot, .cursor-ring { display: none; }
  body { background: white; color: black; cursor: auto; }
  .hero, .page-hero { min-height: auto; page-break-after: always; }
  .legal a { color: black; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .split-line > span, .mask-reveal::after { opacity: 1 !important; transform: none !important; }
}
