:root {
  /* Neutrals — warm, never pure black or white */
  --tinta:    #1A1410;
  --noche:    #282219;
  --carbon:   #3A302A;
  --humo:     #504640;
  --concreto: #6A5E58;
  --ceniza:   #857A74;
  --polvo:    #A89F99;
  --cemento:  #C8C0B9;
  --arena:    #DDD8D2;
  --lienzo:   #F8F4EF;

  /* Accents */
  --fuego-light: #EF7070;
  --sol:         #F9D84D;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --pad-x: clamp(24px, 5vw, 80px);

  /* Panel reveal */
  --panel-open-dur:  380ms;
  --panel-close-dur: 260ms;
  --panel-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --panel-blur: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
.section-qs, .section-svc, .footer { scroll-snap-align: start; }

::selection {
  background: #0d0b09;
  color: #f0ece5;
  text-shadow:
    0.4px  0.4px 0   rgba(255,255,255,0.12),
   -0.4px -0.4px 0   rgba(0,0,0,0.55),
    0.8px  0px   1px rgba(0,0,0,0.4),
   -0.8px  0px   1px rgba(0,0,0,0.4),
    0px    0.8px 1px rgba(255,255,255,0.06),
    1.2px  1.2px 2px rgba(0,0,0,0.35);
}
body {
  background: var(--lienzo);
  color: var(--tinta);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.loading { overflow: hidden; height: 100vh; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ====================== LOADER ====================== */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--lienzo);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  transition: opacity 600ms ease, visibility 600ms ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-mark {
  position: relative;
  width: clamp(110px, 16vw, 180px);
  aspect-ratio: 474 / 540;
}
.loader-mark .ghost,
.loader-mark .fill {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.loader-mark .ghost { color: var(--arena); }
.loader-mark .fill  { color: var(--tinta); clip-path: inset(var(--p,100%) 0 0 0); transition: clip-path 80ms linear; }

.loader-corners {
  position: absolute;
  top: 32px; left: 32px; right: 32px; bottom: 32px;
  pointer-events: none;
  color: var(--tinta);
  opacity: 0.9;
}
.loader-corners span {
  position: absolute; width: 18px; height: 18px;
  border: 1.5px solid currentColor;
}
.loader-corners .tl { top:0; left:0; border-right: none; border-bottom: none; }
.loader-corners .tr { top:0; right:0; border-left: none; border-bottom: none; }
.loader-corners .bl { bottom:0; left:0; border-right: none; border-top: none; }
.loader-corners .br { bottom:0; right:0; border-left: none; border-top: none; }

/* ====================== NAV ====================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: 100%;
  height: 72px;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: transparent;
}
.nav-left {
  min-width: 0; overflow: hidden;
  display: flex; align-items: center; gap: 32px;
}
.nav-left a {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 300ms ease;
}
.nav-left a:hover { color: var(--humo); }
.nav-right {
  min-width: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 24px;
}
.nav-cta {
  display: inline-block;
  background-image: url("../img/Untitled (5).png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  padding: 8px 20px;
  border-radius: 24px;
  color: var(--tinta);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 300ms ease;
}
.nav-cta:hover { color: var(--humo); }
.nav-lang {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.nav-lang-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0);
  transition: filter 300ms ease;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  z-index: 60;
  pointer-events: auto;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tinta);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease, background 300ms ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- light nav (footer visible) ---- */
.nav--light .nav-left a { color: var(--lienzo); }
.nav--light .nav-left a:hover { color: var(--cemento); }
.nav--light .nav-lang-icon { filter: brightness(0) invert(1); }
.nav--light .nav-burger span { background: var(--lienzo); }
/* contact pill text always stays dark */
.nav-cta { color: var(--tinta) !important; }


/* ====================== HERO ====================== */
.hero {
  position: relative;
  min-height: 100vh;
  color: var(--tinta);
  display: flex;
  flex-direction: column;
}
.bg-parallax { display: none; }
.hero-stamp {
  position: absolute;
  bottom: 12px;
  right: var(--pad-x);
  width: clamp(80px, 10vw, 140px);
  height: auto;
  pointer-events: none;
  z-index: 2;
}
.hero-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px var(--pad-x) var(--pad-x);
}
.hero-logo-wrap {
  position: relative;
  width: min(80vw, 142vh);
  pointer-events: none;
}
.hero-logo-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--tinta);
}
.hero-foot {
  position: absolute;
  bottom: 12px;
  left: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 3;
  will-change: transform;
}
.hero-claim {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  width: fit-content;
  background: #0d0b09;
  color: #f0ece5;
  padding: 2px 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-shadow:
     0.4px  0.4px 0   rgba(255,255,255,0.12),
    -0.4px -0.4px 0   rgba(0,0,0,0.55),
     0.8px  0px   1px rgba(0,0,0,0.4),
    -0.8px  0px   1px rgba(0,0,0,0.4),
     0px    0.8px 1px rgba(255,255,255,0.06),
     1.2px  1.2px 2px rgba(0,0,0,0.35);
}
.hero-svc-img {
  width: clamp(288px, 43.2vw, 691px);
  height: auto;
  display: block;
  pointer-events: none;
}
html[lang="en"] .hero-svc--es { display: none; }
html[lang="es"] .hero-svc--en { display: none; }


/* ====================== QUIENES SOMOS ====================== */
.section-qs {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
}
.qs-content {
  position: absolute;
  inset: 0;
}
.qs-body {
  position: absolute;
  top: var(--pad-x);
  right: var(--pad-x);
  max-width: clamp(338px, 39vw, 546px);
  text-align: right;
  color: #000;
}
.qs-body p {
  margin: 0 0 2.8em;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(10px, 0.81vw, 12.65px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
}
.qs-body p:last-child { margin-bottom: 0; }
.qs-sel {
  display: inline;
  background: #0d0b09;
  color: #f0ece5;
  padding: 1px 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-shadow:
     0.4px  0.4px 0   rgba(255,255,255,0.12),
    -0.4px -0.4px 0   rgba(0,0,0,0.55),
     0.8px  0px   1px rgba(0,0,0,0.4),
    -0.8px  0px   1px rgba(0,0,0,0.4),
     0px    0.8px 1px rgba(255,255,255,0.06),
     1.2px  1.2px 2px rgba(0,0,0,0.35);
}
.qs-headline {
  position: absolute;
  bottom: var(--pad-x);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(160px, 22vw, 360px);
  height: auto;
  pointer-events: none;
}
.qs-bottom-text {
  position: absolute;
  bottom: var(--pad-x);
  right: var(--pad-x);
  max-width: clamp(220px, 28vw, 400px);
  text-align: right;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(10px, 0.81vw, 12.65px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
  pointer-events: none;
}
.qs-section-img {
  position: absolute;
  bottom: var(--pad-x);
  left: var(--pad-x);
  width: clamp(26px, 2.64vw, 46px);
  height: auto;
  pointer-events: none;
}
html[lang="es"] .qs-img--en { display: none; }
html[lang="en"] .qs-img--es { display: none; }

.qs-logo-short {
  position: absolute;
  left: 8px;
  top: 8px;
  height: clamp(184px, 34vh, 430px);
  width: auto;
  color: var(--tinta);
  pointer-events: none;
  display: block;
}

/* ====================== SERVICIOS ====================== */
.section-svc {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  background: var(--lienzo);
}
.svc-content {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(40px, 5vh, 64px) 0 clamp(28px, 3.5vh, 48px);
}
.svc-headline {
  position: absolute;
  bottom: var(--pad-x);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(160px, 22vw, 360px);
  height: auto;
  pointer-events: none;
}
html[lang="es"] .svc-img--en { display: none; }
html[lang="en"] .svc-img--es { display: none; }

/* ---- Typographic service list ---- */
.svc-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
}
.svc-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 0.5vh, 8px) var(--pad-x);
  transition: background 0.12s ease;
  cursor: default;
  width: 100%;
}
.svc-item-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.2vw, 88px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--tinta);
  background: transparent;
  padding: 2px 0;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  text-align: center;
}
/* tag positions are all relative to .svc-item-wrap (= the text's bounding box) */
.svc-item-wrap {
  position: relative;
  display: inline-block;
}
.svc-item-tag {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(11px, 0.94vw, 14.3px);
  font-weight: 400;
  font-style: italic;
  color: var(--concreto);
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* 1 — above + right of the text */
.svc-item:nth-child(1) .svc-item-tag {
  bottom: 100%;
  left: 60%;
  padding-bottom: 12px;
}

/* 2 — right, flush to the text edge */
.svc-item:nth-child(2) .svc-item-tag {
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
}

/* 3 — left, flush to the text edge */
.svc-item:nth-child(3) .svc-item-tag {
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
}

/* 4 — below, centered under the text */
.svc-item:nth-child(4) .svc-item-tag {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
}

.svc-item:hover .svc-item-name {
  background: var(--tinta);
  color: var(--lienzo);
  padding: 2px 12px;
}
.svc-item:hover .svc-item-tag { color: var(--tinta); opacity: 1; }

/* description shown only on mobile */
.svc-item-desc { display: none; }

/* ====================== MOBILE SERVICES LIST (desktop: hidden) ====================== */
.svc-mobile-list { display: none; }

/* ====================== FOOTER / CONTACT ====================== */
.footer {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: var(--tinta);
  color: var(--polvo);
  padding: var(--pad-x);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.footer-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.footer-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.footer-col {
  display: flex;
  align-items: center;
}
.footer-col--right {
  justify-content: flex-end;
}
.footer-brand {
  text-align: center;
}
.footer-brand .logo { margin-bottom: 24px; }
.footer-brand .logo svg { width: clamp(160px, 18vw, 280px); height: auto; display: block; margin: 0 auto; }
.footer-brand p {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.9vw, 14px);
  color: var(--polvo);
  line-height: 1.7;
  margin: 0;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 52px);
  color: var(--polvo);
  letter-spacing: -0.02em;
  transition: color 200ms ease;
}
.footer-link:hover { color: var(--lienzo); }
.footer-link-icon {
  width: clamp(20px, 2vw, 32px);
  height: clamp(20px, 2vw, 32px);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 200ms ease;
}
.footer-link:hover .footer-link-icon { opacity: 1; }
.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  border-top: 0.5px solid var(--carbon);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  color: var(--ceniza);
  letter-spacing: 0.06em;
}
.footer-bottom a { color: var(--ceniza); }
.footer-bottom a:hover { color: var(--polvo); }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .nav-burger { display: flex !important; }
  .nav-cta { display: none !important; }

  .nav-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 72px !important;
    padding: 0 20px !important;
    overflow: visible !important;
  }

  .nav-right {
    margin-left: auto !important;
    display: flex !important;
  }

  .nav.menu-open { z-index: 9999 !important; }

  .nav-left {
    display: flex !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #1A1410 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 40px !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-20px) !important;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease !important;
  }
  .nav-left.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  .nav-left a {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #F8F4EF !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
  }
}

@media (max-width: 768px) {
  html { scroll-snap-type: none; }
  .section-qs, .section-svc, .footer { scroll-snap-align: none; }

  /* ---- HERO ---- */
  .hero-logo-svg { width: 78vw; }
  .hero-stamp { display: none; }

  /* ---- QS SECTION ---- */
  .section-qs { min-height: auto; }
  .qs-content {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 88px var(--pad-x) 72px;
    gap: 32px;
  }
  .qs-headline,
  .qs-section-img,
  .qs-logo-short,
  .qs-bottom-text { display: none; }
  .qs-body {
    position: static;
    max-width: 100%;
    text-align: center;
  }
  .qs-body p {
    font-size: clamp(11px, 3.4vw, 14px);
    margin-bottom: 1.8em;
  }

  /* ---- SERVICES SECTION ---- */
  .section-svc { min-height: auto; height: auto; }
  .svc-content {
    position: static;
    display: flex;
    flex-direction: column;
    padding: 48px 0 64px;
    gap: 0;
  }
  .svc-headline { display: none; }
  .svc-list { display: flex; }
  .svc-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 32px) var(--pad-x);
    border-bottom: 1px solid var(--cemento);
  }
  .svc-list .svc-item:first-child { border-top: 1px solid var(--cemento); }
  /* strip hover highlight on touch */
  .svc-item:hover .svc-item-name {
    background: transparent;
    color: var(--tinta);
    padding: 2px 0;
  }
  .svc-item-wrap { display: block; text-align: center; }
  .svc-item-name {
    font-size: clamp(24px, 7vw, 40px);
    white-space: normal;
    text-align: center;
    display: block;
  }
  .svc-item-tag { display: none; }
  .svc-item-desc {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: 400;
    line-height: 1.65;
    color: var(--carbon);
    margin: 12px auto 0;
    max-width: 80vw;
  }
}

@media (max-width: 600px) {
  .hero { padding-top: 80px; min-height: 100svh; }

  .footer-main { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; text-align: center; }
  .footer-col--right { justify-content: center; }
  .footer-link { font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ====================== PRIVACY MODAL ====================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26, 20, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 320ms ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  background: var(--noche);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 80vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--polvo);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  z-index: 2;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--lienzo); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body {
  padding: 48px 40px 40px;
  overflow-y: auto;
  color: var(--polvo);
  scrollbar-width: thin;
  scrollbar-color: var(--humo) transparent;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--lienzo);
  margin: 0 0 32px;
  padding-right: 40px;
}
.modal-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sol);
  margin: 28px 0 10px;
}
.modal-body h3:first-of-type { margin-top: 0; }
.modal-body p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: var(--polvo);
}
.modal-body ul {
  margin: 8px 0 8px 0;
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.modal-body ul li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--polvo);
}
.modal-body a { color: var(--fuego-light); }
.modal-body a:hover { color: var(--lienzo); }
.modal-date {
  margin-top: 32px !important;
  font-size: 12px !important;
  color: var(--ceniza) !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.05em;
}

/* ============ SVC POPUP ============ */
#svcPopup {
  position: fixed;
  z-index: 600;
  background: #0d0b09;
  color: var(--lienzo);
  padding: 26px 32px;
  max-width: clamp(312px, 36vw, 520px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
#svcPopup.is-visible { opacity: 1; }
#svcPopupText {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.12vw, 17px);
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
  color: var(--lienzo);
}

/* ============ HERO TRANSITION ============ */
#heroTransition {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  display: none;
}
#heroTransition.ht-active {
  display: block;
  pointer-events: all;
}
#htSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}


