/* ============================================================
   SOCIAL & MEDIA — Global Stylesheet  v2 pixel-perfect
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ivory:    #F7F5F2;
  --carbon:   #111111;
  --magenta:  #E91E63;
  --lima:     #C8D92B;
  --gray-mid: #888888;
  --gray-dim: #1A1A1A;
  --gray-bdr: rgba(255,255,255,0.08);
  --bdr-light: rgba(17,17,17,0.08);

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --nav-h: 72px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--carbon);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Ocultar cursor nativo en dispositivos de puntero fino (ratón) */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Custom Cursor ──────────────────────────────────────────── */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: left, top;
}
/* Aparece tras el primer movimiento */
body.cursor-active #cursor-dot,
body.cursor-active #cursor-ring { opacity: 1; }

#cursor-dot {
  width: 7px; height: 7px;
  background: var(--magenta);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.4s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--magenta);
  transform: translate(-50%, -50%);
  transition: width 0.45s var(--ease), height 0.45s var(--ease),
              border-color 0.3s, background 0.3s, opacity 0.4s;
}

/* Estado hover (sobre links y botones) */
body.cursor-hover #cursor-dot {
  width: 10px; height: 10px;
  background: var(--magenta);
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(233,30,99,0.6);
  background: rgba(233,30,99,0.07);
}

/* Estado click */
body.cursor-click #cursor-dot {
  width: 4px; height: 4px;
}
body.cursor-click #cursor-ring {
  width: 28px; height: 28px;
}

/* ── Noise Overlay ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9998; opacity: 0.35;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 32px 0 24px;
  transition: background 0.5s, backdrop-filter 0.5s, border-bottom 0.5s;
}
#navbar.scrolled {
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--gray-bdr);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 28px;
}
.nav-logo-mark {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(200,217,43,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-logo-sm {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--lima);
  line-height: 1;
}
.nav-logo-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  display: block;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
}
.nav-links a {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.55);
  padding: 6px 11px;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 11px; right: 11px;
  height: 1px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ivory); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-lang {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}
.nav-lang:hover { color: var(--ivory); }
.nav-lang svg { width: 9px; }

.btn-contact {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid rgba(247,245,242,0.35);
  border-radius: 100px;
  padding: 8px 20px;
  color: var(--ivory);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn-contact:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--carbon);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ivory);
  transition: transform 0.3s, opacity 0.3s;
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  background: var(--carbon);
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 58%;
}

/* Side label */
.hero-side {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.hero-side-text {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.28);
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-side-dot {
  position: absolute;
  left: 7px;
  top: 50%;
  width: 5px; height: 5px;
  background: var(--magenta);
  border-radius: 50%;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
}
.hero-scroll-label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.35);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(247,245,242,0.15);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--magenta);
  animation: scrollTick 2s ease-in-out infinite;
}
@keyframes scrollTick {
  0%   { top: -100%; }
  50%  { top: 0; }
  100% { top: 100%; }
}

/* Hero Left */
.hero-left {
  padding: calc(var(--nav-h) + 60px) 40px 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-heading {
  font-family: var(--font-sans);
  font-size: clamp(44px, 5.8vw, 82px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ivory);
  margin-bottom: 28px;
}
.hero-heading .mg  { color: var(--magenta); }
.hero-heading .lm  { color: var(--lima); font-style: italic; font-family: var(--font-serif); font-weight: 500; }

.hero-sub {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(247,245,242,0.48);
  max-width: 340px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lima);
  color: var(--carbon);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 100px;
  border: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-pill:hover {
  background: #d5e82e;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200,217,43,0.3);
  color: var(--carbon);
}
.btn-pill svg { width: 15px; transition: transform 0.3s; }
.btn-pill:hover svg { transform: translateX(3px); }

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  transition: gap 0.3s;
}
.btn-text-link svg { width: 15px; transition: transform 0.3s; }
.btn-text-link:hover { gap: 12px; color: var(--magenta); }
.btn-text-link:hover svg { transform: translateX(2px); }

/* Hero Right */
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(15%) brightness(0.72);
  transform: scale(1.04);
  will-change: transform;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--carbon) 0%, transparent 25%);
  z-index: 1;
}

/* Rotating Badge */
.hero-badge {
  position: absolute;
  bottom: 52px;
  right: 52px;
  width: 118px; height: 118px;
  z-index: 4;
}
.hero-badge-svg {
  width: 100%; height: 100%;
  animation: rotateSVG 22s linear infinite;
}
@keyframes rotateSVG { to { transform: rotate(360deg); } }
.hero-badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: rgba(247,245,242,0.9);
  letter-spacing: -0.01em;
}

/* ════════════════════════════════════════════════════════════
   LO QUE HACEMOS
════════════════════════════════════════════════════════════ */
#lo-que-hacemos {
  background: #000;
  display: grid;
  grid-template-columns: 25% 50% 25%;
  gap: 0;
  min-height: 650px;
  position: relative;
  overflow: hidden;
}

.lqh-left {
  padding: 64px 40px 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.lqh-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lima);
  margin-bottom: 22px;
}
.lqh-heading {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.lqh-dash {
  display: block;
  width: 32px; height: 2px;
  background: var(--magenta);
  margin-top: 28px;
}

.lqh-center {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
  outline: none;
}
.lqh-center img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lqh-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc-item {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(233,30,99,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: background 0.3s;
  position: relative;
}
.svc-item:first-child { border-top: 1px solid rgba(233,30,99,0.18); }
.svc-item:hover { background: rgba(255,255,255,0.04); }

.svc-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.svc-num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lima);
  line-height: 1;
}
.svc-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.58);
  transition: color 0.3s;
  line-height: 1.45;
}
.svc-item:hover .svc-name { color: var(--ivory); }
.svc-arrow {
  color: var(--magenta);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.svc-item:hover .svc-arrow { transform: translateX(5px); }

/* ════════════════════════════════════════════════════════════
   PORTAFOLIO
════════════════════════════════════════════════════════════ */
#portafolio {
  background: var(--ivory);
  padding: 96px 0;
  border-top: 1px solid rgba(17,17,17,0.06);
}

.port-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  padding: 0 56px;
  align-items: start;
}

.port-sidebar {
  padding-right: 48px;
  padding-top: 8px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.port-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 24px;
}
.port-heading {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--carbon);
  margin-bottom: 40px;
}
.port-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--magenta);
}
.port-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--carbon);
  position: relative;
  transition: gap 0.3s;
}
.port-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--carbon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.port-link:hover { gap: 14px; color: var(--carbon); }
.port-link:hover::after { transform: scaleX(1); }
.port-link svg { width: 14px; }

/* Portfolio grid */
.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 3px;
}

.port-item {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
}
.port-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(25%) brightness(0.82);
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.port-item:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) brightness(0.65);
}
.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.8) 0%, transparent 55%);
}
.port-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
}
.port-num {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(247,245,242,0.45);
  margin-bottom: 3px;
}
.port-name {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
}

/* Lima card */
.port-lima {
  grid-column: 3 / 5;
  background: var(--lima);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px;
  cursor: pointer;
  transition: background 0.3s;
}
.port-lima:hover { background: #d5e82e; }
.port-lima p {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--carbon);
}
.port-lima-arrow {
  align-self: flex-end;
  width: 44px; height: 44px;
  border: 2px solid var(--carbon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.port-lima:hover .port-lima-arrow { transform: translateX(5px); }
.port-lima-arrow svg { width: 16px; }

/* ════════════════════════════════════════════════════════════
   INDUSTRIAS
════════════════════════════════════════════════════════════ */
#industrias {
  background: var(--carbon);
  padding: 96px 0;
  border-top: 1px solid var(--gray-bdr);
  overflow: hidden;
}

.ind-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  padding: 0 56px;
  align-items: center;
}

.ind-left {
  padding-right: 48px;
}
.ind-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 24px;
}
.ind-heading {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ivory);
}

.ind-strip-wrap {
  overflow: hidden;
  position: relative;
}
.ind-strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.ind-strip:active { cursor: grabbing; }
.ind-strip::-webkit-scrollbar { display: none; }

.ind-item {
  position: relative;
  flex-shrink: 0;
  width: 172px;
  height: 230px;
  overflow: hidden;
}
.ind-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(45%) brightness(0.65);
  transition: filter 0.5s, transform 0.6s var(--ease);
}
.ind-item:hover img { filter: grayscale(0%) brightness(0.55); transform: scale(1.05); }
.ind-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(17,17,17,0.88) 0%, transparent 100%);
  z-index: 1;
}
.ind-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 9px;
  border-radius: 100px;
}
.ind-chip-dot {
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--magenta);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   CASOS DE ÉXITO
════════════════════════════════════════════════════════════ */
#casos {
  background: var(--ivory);
  padding: 96px 0 80px;
  border-top: 1px solid rgba(17,17,17,0.06);
  overflow: hidden;
}

.casos-header {
  padding: 0 56px;
  margin-bottom: 64px;
}
.casos-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0;
}

.casos-track-wrap {
  overflow: hidden;
}
.casos-track {
  display: flex;
  gap: 0;
  transition: transform 0.65s var(--ease);
}

.caso-card {
  flex-shrink: 0;
  width: 20%;
  padding: 32px 28px 28px;
  border-right: 1px solid rgba(17,17,17,0.08);
  border-left: 1px solid rgba(17,17,17,0.08);
  margin-left: -1px;
}

.caso-quote {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 300;
  color: var(--magenta);
  line-height: 0.75;
  margin-bottom: 18px;
  display: block;
}
.caso-text {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(17,17,17,0.65);
  margin-bottom: 28px;
  flex: 1;
}
.caso-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.caso-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}
.caso-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }
.caso-person-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--carbon);
  line-height: 1.2;
}
.caso-person-role {
  font-size: 10px;
  color: var(--gray-mid);
  margin-top: 1px;
}
.caso-person-date {
  font-size: 9.5px;
  color: rgba(17,17,17,0.32);
  margin-top: 1px;
}

/* Dots */
.casos-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.casos-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(17,17,17,0.18);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.casos-dot.active {
  background: var(--magenta);
  width: 22px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════
   CTA FINAL
════════════════════════════════════════════════════════════ */
#cta-final {
  position: relative;
  background: var(--carbon);
  overflow: hidden;
  border-top: 1px solid var(--gray-bdr);
}
.cta-bg {
  position: absolute;
  inset: 0; z-index: 0;
}
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: brightness(0.14) grayscale(50%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  min-height: 480px;
  padding: 100px 64px;
}

.cta-heading-col { padding-right: 48px; }
.cta-heading {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--ivory);
}
.cta-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lima);
}

.cta-list-col {
  padding: 0 48px;
  border-left: 1px solid var(--gray-bdr);
  border-right: 1px solid var(--gray-bdr);
}
.cta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.cta-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 500;
  color: rgba(247,245,242,0.72);
  white-space: nowrap;
}
.cta-list li::before {
  content: '—';
  color: var(--magenta);
  font-weight: 700;
  flex-shrink: 0;
}

.cta-right-col {
  padding-left: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.cta-neon {
  font-family: var(--font-serif);
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lima);
  text-shadow:
    0 0 18px rgba(200,217,43,0.7),
    0 0 50px rgba(200,217,43,0.4),
    0 0 100px rgba(200,217,43,0.18);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
#footer {
  background: #090909;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-logo {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(200,217,43,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-logo-sm {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 500;
  color: rgba(200,217,43,0.7);
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-soc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.38);
  transition: color 0.3s;
}
.footer-soc:hover { color: rgba(247,245,242,0.75); }
.footer-soc-icon {
  width: 14px; height: 14px;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.footer-soc:hover .footer-soc-icon { opacity: 1; }

.footer-copy {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(247,245,242,0.18);
}

.footer-lang {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}
.footer-lang a {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.32);
  padding: 0 10px;
  transition: color 0.3s;
}
.footer-lang a.active { color: rgba(247,245,242,0.8); }
.footer-lang a:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.12);
}
.footer-lang a:hover { color: var(--ivory); }

/* ════════════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 99000;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; flex-shrink: 0; }
.wa-float:hover {
  transform: scale(1.10);
  box-shadow: 0 6px 28px rgba(37,211,102,0.60), 0 4px 12px rgba(0,0,0,0.28);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.55); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.25), 0 0 0 12px rgba(37,211,102,0); }
}
.wa-float { animation: wa-pulse 2.4s ease-in-out infinite; }
.wa-float:hover { animation: none; }
@media (max-width: 600px) {
  .wa-float { bottom: 18px; right: 18px; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ════════════════════════════════════════════════════════════
   INNER PAGES
════════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 88px) 56px 96px;
  background: var(--carbon);
  border-bottom: 1px solid var(--gray-bdr);
}
.page-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 28px;
}
.page-h1 {
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ivory);
  max-width: 900px;
}
.page-h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(247,245,242,0.3);
}
.page-sub {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247,245,242,0.42);
  max-width: 460px;
  margin-top: 36px;
}

.content-sec {
  padding: 96px 56px;
}
.content-sec.light { background: var(--ivory); color: var(--carbon); }
.content-sec.dark  { background: var(--carbon); color: var(--ivory); }
.content-sec.dim   { background: var(--gray-dim); color: var(--ivory); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.grid-2.rev { direction: rtl; }
.grid-2.rev > * { direction: ltr; }

.sec-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 20px;
}
.sec-h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.sec-p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.55;
  margin-bottom: 32px;
}
.content-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.content-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
  transition: transform 0.8s var(--ease);
}
.content-img:hover img { transform: scale(1.03); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feat-card {
  padding: 44px 36px;
  background: var(--gray-dim);
  border: 1px solid var(--gray-bdr);
  transition: background 0.3s;
}
.feat-card:hover { background: #222; }
.feat-num  { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--magenta); margin-bottom: 18px; }
.feat-title{ font-size: 17px; font-weight: 700; color: var(--ivory); margin-bottom: 10px; letter-spacing: -0.01em; }
.feat-body { font-size: 13px; line-height: 1.72; color: rgba(247,245,242,0.42); }

.vals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.val-item {
  padding: 36px 28px;
  border: 1px solid var(--bdr-light);
}
.val-num   { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; color: var(--magenta); margin-bottom: 14px; }
.val-title { font-size: 16px; font-weight: 700; color: var(--carbon); margin-bottom: 8px; }
.val-body  { font-size: 12.5px; line-height: 1.7; color: rgba(17,17,17,0.52); }

.port-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.port-page-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  cursor: pointer;
}
.port-page-item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) grayscale(20%); transition: transform 0.7s var(--ease), filter 0.5s; }
.port-page-item:hover img { transform: scale(1.05); filter: brightness(0.6) grayscale(0%); }
.port-page-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(17,17,17,0.85), transparent); z-index: 1; }
.port-page-num  { font-size: 9px; font-weight: 700; color: rgba(247,245,242,0.4); margin-bottom: 3px; letter-spacing: 0.1em; }
.port-page-name { font-size: 13px; font-weight: 700; color: var(--ivory); }
.port-page-cat  { font-size: 9.5px; color: var(--magenta); margin-top: 3px; letter-spacing: 0.08em; text-transform: uppercase; }

.ind-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.ind-page-item { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #1a1a1a; cursor: pointer; }
.ind-page-item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.65) grayscale(30%); transition: transform 0.6s var(--ease), filter 0.5s; }
.ind-page-item:hover img { transform: scale(1.06); filter: brightness(0.5) grayscale(0%); }
.ind-page-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,0.88), transparent 50%); z-index: 1; }
.ind-page-lbl { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 18px; z-index: 2; }
.ind-page-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ivory); }

.casos-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.caso-page-card {
  padding: 44px 36px;
  background: var(--ivory);
  border: 1px solid rgba(17,17,17,0.07);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.caso-page-card:hover { border-color: rgba(233,30,99,0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.caso-page-quote { font-family: var(--font-serif); font-size: 52px; font-weight: 300; color: var(--magenta); line-height: 0.8; margin-bottom: 18px; }
.caso-page-text { font-size: 13.5px; line-height: 1.8; color: rgba(17,17,17,0.62); margin-bottom: 28px; }
.caso-page-person { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(17,17,17,0.08); padding-top: 22px; }
.caso-page-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #ddd; }
.caso-page-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }
.caso-page-name { font-size: 12px; font-weight: 700; color: var(--carbon); }
.caso-page-role { font-size: 10.5px; color: var(--gray-mid); }
.caso-page-date { font-size: 9.5px; color: rgba(17,17,17,0.32); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact-info-item { padding: 24px 0; border-bottom: 1px solid var(--gray-bdr); }
.contact-info-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--magenta); margin-bottom: 8px; }
.contact-info-val { font-size: 15px; font-weight: 500; color: var(--ivory); }
.form-lbl { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,245,242,0.4); margin-bottom: 10px; }
.form-input, .form-textarea {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid rgba(247,245,242,0.14);
  padding: 10px 0; font-family: var(--font-sans); font-size: 15px; color: var(--ivory);
  outline: none; transition: border-color 0.3s; resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(247,245,242,0.2); }
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--magenta); }
.form-textarea { min-height: 110px; }
.form-group { margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }
.rd4 { transition-delay: 0.4s; }
.rd5 { transition-delay: 0.5s; }

/* ════════════════════════════════════════════════════════════
   MOBILE NAV — Panel lateral derecho
════════════════════════════════════════════════════════════ */

/* Backdrop oscuro al abrir el menú */
body.mob-open::after {
  content: '';
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.mob-open { overflow: hidden; }

.mob-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 88vw);
  background: #0e0e0e;
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -12px 0 48px rgba(0,0,0,0.6);
}
.mob-nav.open { transform: translateX(0); }

/* Fila superior con botón cerrar */
.mob-nav-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  min-height: 64px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(247,245,242,0.45);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: color 0.3s, background 0.3s;
  position: static;
}
.mob-nav-close::after {
  content: '✕';
  font-size: 14px;
  letter-spacing: 0;
  color: rgba(247,245,242,0.5);
  transition: color 0.3s, transform 0.3s;
}
.mob-nav-close:hover {
  color: var(--ivory);
  background: rgba(255,255,255,0.03);
}
.mob-nav-close:hover::after { color: var(--ivory); transform: rotate(90deg); }

/* Links del menú */
.mob-nav a {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.45);
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.3s, background 0.3s, padding-left 0.35s var(--ease);
  position: relative;
}
.mob-nav a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--magenta);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.mob-nav a:hover,
.mob-nav a.active {
  color: var(--ivory);
  background: rgba(255,255,255,0.04);
  padding-left: 32px;
}
.mob-nav a:hover::before,
.mob-nav a.active::before { transform: scaleY(1); }

/* Pie del panel */
.mob-nav-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mob-nav-footer p {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.2);
}

/* ════════════════════════════════════════════════════════════
   PAGE TRANSITION
════════════════════════════════════════════════════════════ */
.pg-transition {
  position: fixed; inset: 0;
  background: var(--carbon);
  z-index: 9997;
  pointer-events: none;
  transform: translateY(100%);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* ── Navbar colapsa a 1024px (8 links no caben antes) ─────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-lang   { display: none; }
}

@media (max-width: 1200px) {
  #hero { grid-template-columns: 50% 50%; }
  .hero-heading { font-size: clamp(36px, 5vw, 64px); }
  .port-layout { grid-template-columns: 260px 1fr; padding: 0 40px; }
  .port-grid { grid-template-rows: 220px 220px; }
  .ind-layout { grid-template-columns: 280px 1fr; padding: 0 40px; }
  .cta-inner { padding: 80px 48px; }
  .cta-neon { font-size: 70px; }
  #footer { padding: 36px 40px; }
  .content-sec { padding: 80px 40px; }
  .page-hero { padding: calc(var(--nav-h) + 64px) 40px 72px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .vals-grid { grid-template-columns: repeat(2, 1fr); }
  .casos-page-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    height: 100svh;
    min-height: 640px;
  }
  #hero::before {
    content: '';
    position: absolute;
    inset: 0 0 38% 0;
    background-image: url('../img/hero-arquitectura.jpg');
    background-size: 75% auto;
    background-position: 85% top;
    background-repeat: no-repeat;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
  }
  .hero-right { display: none; }
  .hero-left {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--nav-h) + 40px) 32px 64px 44px;
    background: linear-gradient(to right, rgba(17,17,17,1) 28%, rgba(17,17,17,0.78) 58%, rgba(17,17,17,0.25) 100%);
  }
  #lo-que-hacemos { grid-template-columns: 1fr; min-height: auto; }
  .lqh-center { height: 300px; border-bottom: 1px solid #1A1A1A; }
  .lqh-left { border-bottom: 1px solid #1A1A1A; padding: 48px 32px; }
  .lqh-right { border-top: none; }
  .svc-item { padding: 18px 24px; }
  .port-layout { grid-template-columns: 1fr; padding: 0 32px; }
  .port-sidebar { position: static; padding-right: 0; margin-bottom: 40px; }
  .port-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .port-item { height: 220px; }
  .port-lima { grid-column: 1 / 3; height: 200px; }
  .ind-layout { grid-template-columns: 1fr; padding: 0 32px; gap: 40px; }
  .ind-strip { padding-bottom: 0; }
  .caso-card { width: 50%; }
  .cta-inner { grid-template-columns: 1fr; gap: 48px; padding: 72px 32px; }
  .cta-list-col { border-left: none; border-right: none; border-top: 1px solid var(--gray-bdr); border-bottom: 1px solid var(--gray-bdr); padding: 40px 0; }
  .cta-right-col { padding-left: 0; }
  #footer { grid-template-columns: 1fr; gap: 24px; padding: 36px 32px; }
  .footer-lang { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .port-page-grid { grid-template-columns: repeat(2, 1fr); }
  .casos-page-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .vals-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 62px; }
  #navbar { padding: 0 20px; }
  .nav-right { display: none; }
  .hero-left { padding: calc(var(--nav-h) + 28px) 24px 56px 36px; }
  .hero-scroll { left: 36px; bottom: 24px; }
  .hero-side { display: none; }
  .hero-heading { font-size: clamp(36px, 11vw, 52px); }
  .port-layout { padding: 0 20px; }
  .port-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .port-item { height: 220px; }
  .port-lima { grid-column: 1; height: 200px; }
  .ind-layout { padding: 0 20px; }
  .ind-item { width: 150px; height: 200px; }
  .casos-header { padding: 0 20px; }
  .caso-card { width: 85vw; }
  .cta-inner { padding: 56px 20px; }
  #footer { padding: 32px 20px; }
  .footer-left { flex-direction: column; align-items: flex-start; }
  .content-sec { padding: 64px 20px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 20px 56px; }
  #lo-que-hacemos { grid-template-columns: 1fr; }
  .lqh-left { padding: 40px 20px; }
  .svc-item { padding: 16px 20px; }
  .svc-num { font-size: 24px; }
  .port-page-grid { grid-template-columns: 1fr; }
  .ind-page-grid { grid-template-columns: 1fr 1fr; }
}
