/**
 * Estudio GAM 1.7.1
 * Tema claro (Nexus) + componentes GAM + paneles Compression
 */

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

:root {
  --titanium: #F4F5F6;
  --carbon: #0D0E15;
  --volt: #D1FF00;
  --steel: #D9E0E4;
  --graphite: #1A1D1A;
  --white: #FFFFFF;
  --base-deep: var(--titanium);
  --base-mid: #ECEEF1;
  --base-soft: #E5E8EC;
  --slate-warm: #6B7280;
  --slate-light: #4B515C;
  --graphite-soft: #9CA3AF;
  --ivory: var(--carbon);
  --ivory-muted: #2A2E35;
  --silver: #3D424A;
  --panel-bg: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(13, 14, 21, 0.08);
  --silk-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-heavy: cubic-bezier(0.77, 0, 0.175, 1);
  --duration: 0.8s;
  --font-spine: 'Anton', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  background: var(--titanium);
  color: var(--carbon);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: 0.14; mix-blend-mode: multiply;
}

.atmosphere {
  position: fixed; inset: 0; z-index: 0;
  background: var(--titanium);
}

.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 40px;
  transition: background 0.8s var(--silk-ease), padding 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}

.top-nav.scrolled {
  background: rgba(244, 245, 246, 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  box-shadow: 0 1px 0 var(--steel);
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--carbon);
}

.nav-logo { border-radius: 6px; object-fit: contain; }
.nav-brand span { font-weight: 300; color: var(--slate-warm); }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }

.nav-links a {
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate-warm); position: relative; padding: 14px 0 6px;
  transition: color 0.8s var(--silk-ease);
}

.nav-links a::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--silver); border-bottom: 1px solid var(--silver);
  transform: translateX(-50%) rotate(45deg) translateY(-8px);
  opacity: 0; transition: transform 0.8s var(--silk-ease), opacity 0.6s var(--silk-ease);
}

.nav-links a:hover { color: var(--carbon); }
.nav-links a:hover::after { opacity: 0.7; transform: translateX(-50%) rotate(45deg) translateY(0); }
.nav-links a.active { color: var(--ivory-muted); }
.nav-links a.active::after { opacity: 0.4; transform: translateX(-50%) rotate(45deg) translateY(0); }

.nav-cta {
  padding: 10px 28px; border-radius: 100px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--carbon); color: var(--titanium); border: none; cursor: pointer;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease), background 0.8s var(--silk-ease);
}

.nav-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(13, 14, 21, 0.15);
  background: var(--graphite);
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; padding: 0;
}

.toggle-bar {
  display: block; width: 100%; height: 1.5px; background: var(--carbon);
  position: absolute; left: 0;
  transition: transform 0.6s var(--silk-ease), top 0.6s var(--silk-ease);
}

.toggle-bar:nth-child(1) { top: 6px; }
.toggle-bar:nth-child(2) { top: 16px; }
.nav-toggle.active .toggle-bar:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.active .toggle-bar:nth-child(2) { top: 11px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 550;
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--silk-ease), visibility 0.6s var(--silk-ease);
}

.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-menu-inner {
  position: absolute; inset: 0;
  background: rgba(244, 245, 246, 0.96);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 40px 60px; overflow-y: auto;
}

.mobile-menu-links { display: flex; flex-direction: column; flex: 1; justify-content: center; }

.mobile-menu-link {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em;
  color: var(--carbon); padding: 14px 0;
  border-bottom: 1px solid rgba(13, 14, 21, 0.06);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.6s var(--silk-ease);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s var(--silk-ease), transform 0.5s var(--silk-ease), color 0.6s var(--silk-ease);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.22s; }
.mobile-menu.open .mobile-menu-link:nth-child(6) { transition-delay: 0.26s; }
.mobile-menu.open .mobile-menu-link:nth-child(7) { transition-delay: 0.30s; }

.mobile-menu-link::before {
  content: attr(data-index); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--slate-warm); opacity: 0.4; min-width: 28px;
}

.mobile-menu-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(13, 14, 21, 0.06);
  opacity: 0;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1; transition: opacity 0.5s var(--silk-ease) 0.35s;
}

.mobile-menu-footer a {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.5;
}

body.menu-open { overflow: hidden; }
body.menu-open .top-nav {
  background: rgba(244, 245, 246, 0.95);
  backdrop-filter: blur(20px);
}

.side-panel {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; z-index: 100;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 24px 0;
}

.side-panel.left { left: 20px; }
.side-panel.right { right: 20px; }

.side-label {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 9px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.5;
}

.side-track {
  width: 1px; height: 160px;
  background: rgba(13, 14, 21, 0.08); position: relative;
}

.side-track-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--carbon), rgba(13, 14, 21, 0.15));
  transition: height 1.2s var(--silk-ease);
}

.side-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate-warm); opacity: 0.2;
  transition: opacity 0.8s var(--silk-ease), transform 0.8s var(--silk-ease);
}

.side-dot.active {
  opacity: 0.8; background: var(--carbon);
  box-shadow: 0 0 12px rgba(13, 14, 21, 0.2); transform: scale(1.3);
}

.side-readout {
  font-size: 9px; letter-spacing: 0.1em; color: var(--slate-warm); opacity: 0.35;
  font-variant-numeric: tabular-nums;
}

.main { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }

.section-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.7; margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1rem, 3vw, 1.5rem); font-weight: 300;
  letter-spacing: -0.04em; line-height: 1.15; color: var(--carbon); margin-bottom: 20px;
}

.section-title strong { font-weight: 600; }

.section-body {
  font-size: 0.95rem; font-weight: 300; line-height: 1.8;
  color: var(--slate-light); max-width: 800px;
}

.section-center { text-align: center; }
.section-center .section-body { margin: 0 auto; }

.silk-divider {
  width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
  margin: 0 auto;
}

#portfolio + .silk-divider {
  margin: 48px auto;
}

.btn-primary {
  display: inline-block; padding: 16px 44px; border-radius: 100px;
  background: var(--carbon); color: var(--titanium);
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease), background 0.8s var(--silk-ease);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(13, 14, 21, 0.18);
  background: var(--graphite);
}

.btn-secondary {
  display: inline-block; padding: 16px 44px; border-radius: 100px;
  background: transparent; color: var(--ivory-muted);
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--panel-border); cursor: pointer; text-decoration: none;
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease), background 0.8s var(--silk-ease);
}

.btn-secondary:hover {
  transform: scale(1.02);
  border-color: rgba(13, 14, 21, 0.15);
  background: rgba(13, 14, 21, 0.03);
}

.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1.2s var(--silk-ease), transform 1.2s var(--silk-ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* HERO */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  background: transparent;
}

.hero-stage { position: relative; z-index: 5; padding: 0 24px; }

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(48px, 11vw, 140px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.95;
  color: var(--carbon);
  opacity: 0;
  overflow: hidden;
  display: inline-block;
  white-space: normal;
  word-wrap: break-word;
  will-change: transform, opacity;
}

.hero-title.is-ready { opacity: 1; }

.hero-title .split-char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-title .split-char.is-space {
  width: 0.28em;
}

/* ShinyText — after SplitText completes (driven by JS) */
.hero-title.is-shiny {
  color: var(--carbon);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title.is-shiny {
    -webkit-text-fill-color: var(--carbon);
    background: none !important;
  }
}

.hero-ctas {
  margin-top: 40px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 1.4s var(--silk-ease) 1.6s forwards;
}

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--slate-warm);
  display: flex; align-items: center; gap: 12px; z-index: 5;
}

.hero-scroll-hint::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--carbon), transparent);
  animation: hint-drop 2.2s var(--silk-ease) infinite;
}

@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* SERVICIOS */
.services-section { padding-bottom: 80px; }
.services-header { margin-bottom: 48px; }

.services-track-wrap {
  width: 100vw; max-width: 100vw; margin: 0 calc(50% - 50vw);
  position: relative;
}

.services-track {
  display: flex; width: 100%; height: 800px;
  overflow: hidden; background: var(--carbon);
}

.services-hint {
  position: absolute; bottom: 20px; right: 36px; z-index: 20;
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(240, 240, 240, 0.35);
  pointer-events: none;
}

article.panel {
  flex: 1; position: relative; overflow: hidden; cursor: pointer;
  border-right: 1px solid #111;
  transition: flex var(--duration) var(--ease-heavy);
}

article.panel:last-child { border-right: none; }

.panel__bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; }

.panel__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.4) grayscale(100%);
  transform: scale(1.05);
  transition: filter var(--duration) var(--ease-heavy), transform var(--duration) var(--ease-heavy);
}

.panel__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.5) 0%, transparent 30%, transparent 60%, rgba(26,26,26,0.6) 100%);
  z-index: 2;
}

.panel__index {
  position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
  z-index: 10; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: #F0F0F0;
  opacity: 0.35; transition: opacity var(--duration) var(--ease-heavy);
  white-space: nowrap;
}

.spine {
  position: absolute; bottom: 60px; left: 50%;
  transform: translateX(-50%) rotate(180deg);
  z-index: 10; writing-mode: vertical-rl;
  font-family: var(--font-spine); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  text-transform: uppercase; color: #F0F0F0;
  letter-spacing: 0.05em; line-height: 1; white-space: nowrap;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-heavy), visibility 0.4s var(--ease-heavy);
}

.details {
  position: absolute; bottom: 48px; left: 48px; right: 48px; z-index: 10;
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.5s var(--ease-heavy) 0.15s, transform 0.5s var(--ease-heavy) 0.15s;
  pointer-events: none;
}

.details__category {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: #a8a8a8; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}

.details__category::before {
  content: ''; display: inline-block; width: 24px; height: 1px; background: #a8a8a8;
}

.details__title {
  font-family: var(--font-spine); font-size: clamp(2rem, 3.5vw, 3.2rem);
  text-transform: uppercase; color: #F0F0F0; line-height: 0.95; margin-bottom: 20px;
}

.details__description {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.7;
  color: rgba(240, 240, 240, 0.6); max-width: 420px; margin-bottom: 28px;
}

/* Specular Button (React Bits port) */
.specular-button {
  --sb-radius: 18px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0.08;
  --sb-blur: 8px;
  --sb-text-color: #f5f5f5;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  border-radius: var(--sb-radius);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
}

.specular-button:active { transform: scale(0.97); }

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 60%, transparent);
  outline-offset: 3px;
}

.specular-button--sm {
  font-size: 0.65rem;
  padding: 10px 22px;
}

.specular-button--md {
  font-size: 0.7rem;
  padding: 14px 30px;
}

.specular-button--lg {
  font-size: 0.85rem;
  padding: 18px 40px;
}

.specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.specular-button__label {
  position: relative;
  z-index: 2;
}

.services-track:hover > article.panel { flex: 1; }
.services-track > article.panel:hover { flex: 6; }
article.panel:hover .panel__bg img { filter: brightness(0.85) grayscale(0%); transform: scale(1); }
article.panel:hover .spine {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
article.panel:hover .details { opacity: 1; transform: translateX(0); pointer-events: auto; }
.services-track:hover > article.panel .panel__index { opacity: 0; }
article.panel:hover .panel__index { opacity: 0.35 !important; }

/* PORTFOLIO */
#portfolio {
  width: 100vw !important; max-width: 100vw !important;
  margin: 0 calc(50% - 50vw) !important;
  padding-left: 0 !important; padding-right: 0 !important;
}

#portfolio .section-title,
#portfolio .section-tag { padding-left: 8%; padding-right: 8%; }

.portfolio-section { width: 100%; max-width: 100%; padding: 80px 0 0; }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100vw !important; max-width: 100vw !important;
  margin-top: 60px; gap: 0 !important;
}

.portfolio-item {
  position: relative; overflow: hidden; cursor: pointer;
  width: 100%; height: 320px; min-height: 320px;
}

.portfolio-item picture {
  display: block; width: 100%; height: 100%;
}

.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.4s ease;
}

.portfolio-overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease;
}

.portfolio-overlay h3 { color: #fff; font-size: clamp(18px, 2vw, 28px); margin-bottom: 10px; }
.portfolio-overlay p { color: #d4d4d4; font-size: 14px; max-width: 240px; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-modal {
  display: none; position: fixed; z-index: 9999; inset: 0;
  background: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center;
}

.portfolio-modal-content { max-width: 90%; max-height: 90vh; }
.portfolio-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 48px; cursor: pointer; }

/* NOSOTROS */
.about-scroll-section {
  width: 100vw; max-width: 100vw; margin: 0 calc(50% - 50vw); padding: 0;
}

.hero-initial-wrap { height: 220vh; position: relative; }

.hero-initial-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

.hero-initial-media {
  position: absolute;
  top: var(--hero-inset-y, 0px);
  right: var(--hero-inset-x, 0px);
  bottom: var(--hero-inset-y, 0px);
  left: var(--hero-inset-x, 0px);
  border-radius: var(--hero-radius, 0px);
  overflow: hidden;
  background: #1e1e1e;
  /* Shadow only once the rect has inset — avoids gray flash while fullscreen */
  box-shadow: 0 24px 80px rgba(13, 14, 21, calc(var(--morph-progress, 0) * 0.18));
  transform: translateZ(0);
  backface-visibility: hidden;
}

.silk-bg {
  /* Full viewport layer — cropped by overflow, NOT resized on scroll */
  position: absolute;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  background: #1e1e1e;
  pointer-events: none;
}

.silk-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-initial-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 14, 21, 0.15), rgba(13, 14, 21, 0.35));
  opacity: calc(0.15 + (var(--overlay-strength, 0) * 0.75));
}

.hero-initial-content {
  position: relative; z-index: 3; text-align: center; color: var(--white);
  max-width: 720px; padding: 0 24px;
}

.hero-initial-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: #a8a8a8; margin-bottom: 20px;
}

.hero-initial-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px;
}

.hero-initial-title strong { font-weight: 700; }

.hero-initial-copy {
  font-size: clamp(0.9rem, 1.2vw, 1rem); font-weight: 300;
  line-height: 1.75; color: rgba(255, 255, 255, 0.92);
  opacity: var(--copy-opacity, 0);
  transform: translateY(calc(12px * (1 - var(--copy-opacity, 0))));
  margin-top: 4px;
}

/* FAQ — scroll morph + individual boxes */
.faq-morph-wrap {
  height: 280vh;
}

.faq-morph-content {
  position: relative;
  z-index: 3;
  width: min(920px, calc(100% - 64px));
  max-height: calc(100% - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 8px 32px;
  text-align: center;
  color: var(--white);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.faq-morph-heading {
  margin-bottom: 28px;
}

.faq-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 auto;
  text-align: left;
  max-width: 100%;
}

@media (min-width: 720px) {
  .faq-boxes {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .faq-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 7px);
    justify-self: center;
  }
}

.faq-box {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  opacity: var(--faq-reveal, 0);
  transform: translateY(calc(22px * (1 - var(--faq-reveal, 0)))) scale(calc(0.96 + 0.04 * var(--faq-reveal, 0)));
  pointer-events: none;
  transition:
    border-color 0.4s var(--silk-ease),
    background 0.4s var(--silk-ease);
}

.faq-box.is-faq-visible {
  pointer-events: auto;
}

.faq-box.open {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.faq-box .faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 18px 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  transition: color 0.4s var(--silk-ease);
}

.faq-box .faq-question:hover {
  color: #fff;
}

.faq-question-text {
  flex: 1;
}

.faq-box .faq-icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.faq-box .faq-icon::before,
.faq-box .faq-icon::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.5s var(--silk-ease), opacity 0.4s ease;
}

.faq-box .faq-icon::before {
  width: 10px; height: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-box .faq-icon::after {
  width: 1px; height: 10px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-box.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-box .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--silk-ease);
}

.faq-box .faq-answer-inner {
  overflow: hidden;
  padding: 0 20px;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  transition: padding 0.6s var(--silk-ease);
}

.faq-box.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-box.open .faq-answer-inner {
  padding: 0 20px 18px;
}

@media (max-width: 768px) {
  .faq-morph-wrap { height: 260vh; }
  .faq-morph-content {
    width: min(100%, calc(100% - 28px));
    padding: 20px 4px 24px;
  }
  .faq-box .faq-question {
    font-size: 0.86rem;
    padding: 16px;
  }
}

/* CONTACTO — same horizontal inset as Nosotros rect (laptop+) */
.contact-section { padding-bottom: 80px; }
.contact-section-header { margin-bottom: 48px; }

.contact-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 560px;
  border: 1px solid var(--panel-border); border-radius: 24px; overflow: hidden;
  background: var(--white); box-shadow: 0 20px 60px rgba(13, 14, 21, 0.06);
}

@media (min-width: 901px) {
  .contact-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(28px, min(2.8vw, 44px));
    padding-right: max(28px, min(2.8vw, 44px));
    box-sizing: border-box;
  }

  .contact-section-header {
    padding-left: 0;
    padding-right: 0;
  }

  .contact-split {
    width: 100%;
    max-width: none;
    border-radius: 36px;
    min-height: 600px;
  }
}

.contact-map-wrap { min-height: 400px; position: relative; overflow: hidden; }
.contact-map {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border: 0;
  filter: grayscale(20%) contrast(1.05);
}

.contact-form-wrap {
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}

.contact-form { width: 100%; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%; padding: 16px 18px;
  border: 1px solid var(--panel-border); border-radius: 12px;
  background: var(--titanium); color: var(--carbon);
  font-family: inherit; font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.4s var(--silk-ease), background 0.4s var(--silk-ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: rgba(13, 14, 21, 0.2); background: var(--white);
}

.contact-field--full { grid-column: 1 / -1; }

.contact-form textarea {
  min-height: 140px; resize: vertical;
  text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem;
}

.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.contact-feedback { margin: 16px 0; font-size: 0.85rem; padding: 12px 16px; border-radius: 10px; }
.contact-feedback[hidden] { display: none !important; }
.contact-feedback--success { background: rgba(209, 255, 0, 0.15); color: var(--graphite); }
.contact-feedback--error { background: rgba(220, 38, 38, 0.08); color: #991b1b; }

.contact-submit { margin-top: 8px; width: 100%; text-align: center; cursor: pointer; }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* FOOTER */
.footer-cta { padding: 120px 0 80px; text-align: center; }
.footer-ctas { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }

.site-footer {
  margin-top: 40px; padding: 48px 0 80px;
  border-top: 1px solid var(--panel-border); text-align: center;
}

.footer-social {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}

.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--panel-border); color: var(--slate-light);
  background: rgba(13, 14, 21, 0.03);
  transition: color 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease),
    background 0.6s var(--silk-ease), transform 0.6s var(--silk-ease);
}

.footer-social-link:hover {
  color: var(--carbon); border-color: rgba(13, 14, 21, 0.15);
  background: rgba(13, 14, 21, 0.06); transform: scale(1.06);
}

.footer-social-link svg { width: 18px; height: 18px; }

.footer-copyright {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate-warm); opacity: 0.5;
}

@media (max-width: 1024px) {
  .main { padding: 0 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .side-panel { display: none; }
}

@media (max-width: 992px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .services-track { flex-direction: column; height: auto; }
  article.panel {
    flex: none !important; width: 100%; height: 50vh; min-height: 280px;
    border-right: none; border-bottom: 1px solid #111;
  }
  article.panel:last-child { border-bottom: none; }
  .panel__bg img { filter: brightness(0.7) grayscale(0%) !important; transform: scale(1) !important; }
  .spine { display: none; }
  .panel__index { opacity: 0.35 !important; top: 20px; }
  .details {
    opacity: 1 !important; transform: none !important; pointer-events: auto !important;
    bottom: 24px; left: 24px; right: 24px;
  }
  .details__description { display: none; }
  .services-hint { display: none; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-map-wrap { min-height: 320px; position: relative; height: 320px; }
}

@media (max-width: 768px) {
  .main { padding: 0 20px; }
  .top-nav { padding: 18px 20px; }
  .top-nav.scrolled { padding: 14px 20px; }
  .hero { padding: calc(var(--nav-h) + 20px) 0 60px; }
  .hero-ctas { display: flex; justify-content: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 300px; text-align: center; }
  .section { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 24px; }
  .footer-ctas { flex-direction: column; align-items: center; }
  .hero-initial-wrap { height: 200vh; }
  .faq-morph-wrap { height: 260vh; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { height: 320px; min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-initial-wrap { height: auto; }
  .faq-morph-wrap { height: auto; }
  .hero-initial-sticky { position: relative; height: auto; min-height: 70vh; }
  .faq-box {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
