/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ZONA SUR REFRIGERACIÓN — Dark Tech Redesign
   Palette: ink #0a0c10 · navy #050714 · teal #00B4BD · accent
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@font-face {
  font-family: "Geometric Slabserif 712";
  src: url("../fonts/GeometricSlabserif712-ExtBd.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dark base */
  --bg-0: #050709;        /* deepest */
  --bg-1: #0a0d12;        /* default surface */
  --bg-2: #11151c;        /* card */
  --bg-3: #181d26;        /* raised */
  --line: #1f2632;
  --line-strong: #2c3543;

  /* Text */
  --fg-0: #f5f7fa;        /* high-contrast title */
  --fg-1: #d4dae3;        /* body */
  --fg-2: #8b94a3;        /* secondary */
  --fg-3: #5a6375;        /* tertiary / labels */

  /* Accent (teal stays) */
  --teal: #00B4BD;
  --teal-soft: #00d4dd;
  --teal-deep: #008B93;
  --teal-glow: rgba(0, 180, 189, 0.18);

  --navy: #050714;        /* legacy reference */
  --white: #ffffff;

  /* Densidad — controlada por Tweaks */
  --density: 1;
  --space-1: calc(8px * var(--density));
  --space-2: calc(16px * var(--density));
  --space-3: calc(24px * var(--density));
  --space-4: calc(40px * var(--density));
  --space-5: calc(64px * var(--density));
  --space-6: calc(96px * var(--density));
  --space-7: calc(140px * var(--density));
  --section-y: calc(120px * var(--density));

  --container: 1280px;

  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  /* Aliases (keep code working) */
  --serif: var(--sans);

  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.no-scroll { overflow: hidden; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-1);
  background: var(--bg-1);
  text-rendering: optimizeLegibility;
  /* Subtle grid texture */
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.015) 1px, transparent 0),
    radial-gradient(1px 1px at 80% 70%, rgba(0,180,189,0.025) 1px, transparent 0);
  background-size: 50px 50px, 80px 80px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
::selection { background: var(--teal); color: var(--bg-0); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-4); } }

/* ━━━━━━━━━━ NAV ━━━━━━━━━━ */
.nav {
  display: block !important; /* Bootstrap también tiene .nav { display:flex }, esto lo cancela */
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 300;
  padding: var(--space-2) 0;
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 7, 9, 0.85);
}
.nav__inner {
  width: 100%;
  padding: 0 clamp(20px, 4vw, 80px); /* Padding proporcional, ocupa todo el ancho */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@media (min-width: 768px) { .nav__inner { padding: 0 clamp(32px, 5vw, 80px); } }

.nav__brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none !important;
  flex-shrink: 0;
}
.nav__brand-iso {
  width: 38px; height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  /* Sin filtro: respeta colores originales del isotipo */
}
.nav__brand-name {
  font-family: "Geometric Slabserif 712", "Roboto Slab", serif;
  font-weight: normal;
  font-style: normal;
  font-size: 14px;
  line-height: 1.05;
  color: var(--fg-0);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__brand-sub {
  display: block;
  font-family: "Geometric Slabserif 712", "Roboto Slab", serif;
  font-weight: normal;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-top: 4px;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .nav__brand-name { font-size: 12px; }
  .nav__brand-sub { font-size: 10px; }
  .nav__brand-iso { width: 32px; height: 32px; }
}

.nav__links {
  display: none;
  gap: var(--space-3);
}
/* Desktop: empujar links a la derecha del todo */
@media (min-width: 900px) { 
  .nav__links { 
    display: flex;
    margin-left: auto; /* Hard right */
  } 
}

/* Mobile Menu Styles */
@media (max-width: 899px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: 300px;
    background: var(--bg-0); /* Fondo sólido oscuro */
    border-left: 1px solid var(--line-strong);
    flex-direction: column;
    padding: 100px 40px;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    margin: 0;
    gap: 20px;
  }
  .nav.is-open .nav__links {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
  }
  .nav__links a { 
    font-size: 20px; 
    padding: 12px 0; 
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
}

/* Overlay para oscurecer el fondo */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 150; /* Por debajo de la .nav (300) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav.is-open + .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav__links a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-2);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--teal);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--teal); }
.nav__links a:hover::after { width: 100%; }

/* Hamburger Button */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  margin-left: auto; /* Empuja a la derecha */
}
@media (min-width: 900px) { .nav__toggle { display: none; } }

.nav__toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--teal);
  transition: all 0.3s var(--ease);
  transform-origin: left;
}

.nav.is-open .nav__toggle span:nth-child(1) { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: rotate(-45deg); }

/* Eliminado nav__cta por petición del usuario */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
  50% { box-shadow: 0 0 0 6px rgba(0,180,189,0); }
}

/* ━━━━━━━━━━ HERO ━━━━━━━━━━ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--fg-0);
  padding: 120px var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--bg-0);
}
@media (min-width: 768px) { .hero { padding: 140px var(--space-5) var(--space-5); } }

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.1) saturate(0.4) brightness(0.55);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,9,.5) 0%, rgba(5,7,9,.3) 30%, rgba(5,7,9,.95) 100%),
    linear-gradient(90deg, rgba(5,7,9,.85) 0%, rgba(5,7,9,.2) 70%);
}
/* Tech grid overlay */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(0,180,189,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,189,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 80%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 80%, black 30%, transparent 70%);
}

.hero__content {
  position: relative; z-index: 2;
  max-width: 1000px;
  margin-bottom: var(--space-5);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 8px 14px;
  border: 1px solid var(--teal-deep);
  background: rgba(0,180,189,0.08);
  border-radius: 4px;
  margin-bottom: var(--space-3);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}
.hero__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 var(--space-3);
  color: var(--fg-0);
}
.hero__title em {
  font-style: normal;
  font-weight: 300;
  color: var(--teal);
  display: block;
}
.hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 600px;
  color: var(--fg-2);
  margin: 0 0 var(--space-4);
}
.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.hero__meta {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-strong);
  padding-top: var(--space-3);
}
.hero__meta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 768px) { .hero__meta-row { grid-template-columns: repeat(4, 1fr); } }
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-num {
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-0);
}
.meta-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-3);
}

/* ━━━━━━━━━━ BUTTONS ━━━━━━━━━━ */
a.btn, button.btn, .btn {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  transition: all .25s var(--ease) !important;
  border: 1px solid transparent !important;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none;
}
a.btn--primary, button.btn--primary, .btn--primary {
  background: var(--teal) !important;
  color: var(--bg-0) !important;
  border-color: var(--teal) !important;
}
a.btn--primary:hover, button.btn--primary:hover, .btn--primary:hover {
  background: var(--teal-soft) !important;
  border-color: var(--teal-soft) !important;
  box-shadow: 0 0 0 4px var(--teal-glow) !important;
  transform: translateY(-1px);
}
a.btn--ghost, button.btn--ghost, .btn--ghost {
  color: var(--fg-0) !important;
  border-color: var(--line-strong) !important;
  background: rgba(255,255,255,0.02) !important;
}
a.btn--ghost:hover, button.btn--ghost:hover, .btn--ghost:hover {
  background: rgba(0,180,189,0.08) !important;
  border-color: var(--teal) !important;
  color: var(--teal) !important;
}
a.btn--light, .btn--light { background: var(--bg-0) !important; color: var(--teal) !important; border-color: var(--bg-0) !important; }
a.btn--light:hover, .btn--light:hover { background: var(--fg-0) !important; color: var(--bg-0) !important; border-color: var(--fg-0) !important; }
a.btn--outline-light, .btn--outline-light { color: var(--fg-0) !important; border-color: rgba(255,255,255,.4) !important; background: transparent !important; }
a.btn--outline-light:hover, .btn--outline-light:hover { background: rgba(255,255,255,.1) !important; border-color: var(--fg-0) !important; }
a.btn--block, button.btn--block, .btn--block { width: 100%; justify-content: center; padding: 16px !important; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-deep);
  padding-bottom: 4px;
  transition: gap .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--teal-soft); border-color: var(--teal-soft); }

/* ━━━━━━━━━━ STRIP ━━━━━━━━━━ */
.strip {
  background: var(--bg-2);
  color: var(--fg-1);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__lead {
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  max-width: 880px;
  margin: 0 0 var(--space-4);
  color: var(--fg-0);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.strip__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}
@media (min-width: 768px) { .strip__list { grid-template-columns: repeat(3, 1fr); } }
.strip__list li {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 14px;
  color: var(--fg-1);
}
.strip__list .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: .12em;
}

/* ━━━━━━━━━━ SECTION HEADS ━━━━━━━━━━ */
.section-head { margin-bottom: var(--space-5); max-width: 1000px; }
.section-head__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-2);
  padding: 4px 10px;
  border: 1px solid var(--teal-deep);
  background: rgba(0,180,189,0.06);
  border-radius: 3px;
}
.section-head__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--fg-0);
}
.section-head__title em {
  font-style: normal;
  color: var(--fg-3);
  font-weight: 300;
  font-family: var(--mono);
  font-size: 0.55em;
  letter-spacing: -0.01em;
  display: block;
  margin-top: 12px;
  text-transform: lowercase;
}
.section-head__lead {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 60ch;
  margin: var(--space-3) 0 0;
}

/* ━━━━━━━━━━ SERVICES ━━━━━━━━━━ */
.services { padding: var(--section-y) 0; background: var(--bg-1); }

.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  position: relative;
  align-items: start;
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 600px) and (max-width: 899px) {
  .service {
    grid-template-columns: 50px 1fr;
    gap: var(--space-3);
  }
  .service__media { grid-column: 1 / -1; order: 2; }
  .service__body { grid-column: 2 / -1; order: 3; }
  .service__num { grid-column: 1 / 2; order: 1; }
  .service--reverse .service__media { order: 2; }
  .service--reverse .service__body { order: 3; }
}
@media (min-width: 1100px) {
  .service {
    grid-template-columns: 60px 1fr 1.1fr;
    gap: var(--space-3);
    padding: var(--space-5) 0;
    align-items: stretch;
  }
  .service--reverse .service__media { order: 3; }
  .service--reverse .service__body { order: 2; }
}
@media (min-width: 1280px) {
  .service {
    grid-template-columns: 80px 1fr 1fr;
    gap: var(--space-4);
  }
}

.service__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--teal);
}
.service__media {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.service__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .4s var(--ease);
  filter: brightness(.85) saturate(.9);
}
.service:hover .service__media img { transform: scale(1.04); filter: brightness(1) saturate(1); }

.service__body {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  min-width: 0;
}
.service__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--fg-0);
  word-wrap: break-word;
  hyphens: auto;
}
.service__lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
  max-width: 50ch;
}
.service__list {
  list-style: none; margin: var(--space-2) 0 var(--space-3); padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.service__list li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  padding-left: 22px;
  position: relative;
  letter-spacing: .01em;
}
.service__list li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--teal);
  font-family: var(--sans);
}

/* ━━━━━━━━━━ ABOUT ━━━━━━━━━━ */
.about {
  background: var(--bg-2);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-6); }
}
.about__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: var(--space-2) 0 var(--space-3);
  color: var(--fg-0);
}
.about__title em {
  font-style: normal;
  color: var(--teal);
  font-weight: 300;
  display: block;
}
.about__text p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.7;
  margin: 0 0 var(--space-2);
  max-width: 52ch;
  text-wrap: pretty;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--line);
}
.about__stats > div { display: flex; flex-direction: column; gap: 6px; }
.about__stats dt {
  font-family: var(--sans);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-0);
}
.about__stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-3);
}
.about__media {
  margin: 0;
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.about__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.85) saturate(.85);
}
.about__media figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: var(--fg-0);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ━━━━━━━━━━ PROCESS ━━━━━━━━━━ */
.process {
  background: var(--bg-1);
  padding: var(--section-y) 0;
}
.process__list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .process__list { grid-template-columns: repeat(5, 1fr); }
}
.step {
  padding: var(--space-3) var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s var(--ease);
}
@media (min-width: 768px) {
  .step {
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding: var(--space-4) var(--space-2) var(--space-5);
  }
  .step:last-child { border-right: none; }
}
.step:hover { background: var(--bg-2); }
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--teal);
  margin-bottom: var(--space-2);
  padding: 3px 8px;
  border: 1px solid var(--teal-deep);
  border-radius: 3px;
}
.step__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-1);
  color: var(--fg-0);
}
.step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: var(--space-1) 0 0;
}

/* ━━━━━━━━━━ PROJECTS ━━━━━━━━━━ */
.projects {
  background: var(--bg-2);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.projects__grid {
  display: grid;
  grid-template-columns: 1fr; /* Una columna por defecto (móvil) */
  gap: var(--space-3);
  grid-auto-rows: auto;
}
@media (min-width: 600px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
    gap: var(--space-2);
  }
}
@media (max-width: 600px) {
  .proj { height: 300px; }
  .proj--tall, .proj--wide { grid-column: auto !important; grid-row: auto !important; }
}
@media (min-width: 900px) {
  .projects__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
    grid-auto-rows: 320px;
  }
}
.proj {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.proj img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .4s var(--ease);
  filter: brightness(.75) saturate(.8);
}
.proj:hover img { transform: scale(1.05); filter: brightness(1) saturate(1); }
.proj figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-3);
  background: linear-gradient(transparent 0%, rgba(5,7,9,.95) 100%);
  color: var(--fg-0);
  display: flex; flex-direction: column; gap: 6px;
}
.proj__cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.proj__title {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
}
@media (min-width: 900px) {
  .proj--tall { grid-row: span 2; }
  .proj--wide { grid-column: span 2; }
}

/* ━━━━━━━━━━ CTA ━━━━━━━━━━ */
.cta {
  background: var(--bg-0);
  color: var(--fg-0);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0,180,189,0.35), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(0,180,189,0.18), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(0,180,189,0.12), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 900px; }
.cta__num { color: var(--teal) !important; }
.cta__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: var(--space-2) 0 var(--space-3);
  color: var(--fg-0);
}
.cta__title em { font-style: normal; color: var(--teal); font-weight: 300; display: block; }
.cta__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 var(--space-4);
}
.cta__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ━━━━━━━━━━ CONTACT ━━━━━━━━━━ */
.contact {
  background: var(--bg-1);
  padding: var(--section-y) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.contact__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: var(--space-2) 0 var(--space-3);
  color: var(--fg-0);
}
.contact__title em { font-style: normal; color: var(--teal); font-weight: 300; display: block; }
.contact__lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 42ch;
  margin: 0 0 var(--space-4);
}
.contact__info {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.contact__info > div { display: flex; flex-direction: column; gap: 6px; }
.contact__info dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact__info dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-0);
}
.contact__info dd a { transition: color .2s var(--ease); }
.contact__info dd a:hover { color: var(--teal); }

.contact__map {
  width: 100%; height: 280px;
  border: 1px solid var(--line);
  filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95);
  transition: filter .4s var(--ease);
}

/* Form */
.contact__form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-self: start;
  border-radius: 4px;
}
@media (max-width: 600px) { .contact__form { grid-template-columns: 1fr; padding: var(--space-3); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-0);
  border-radius: 0;
  outline: none;
  transition: border-color .2s var(--ease);
}
.field select { padding: 12px 0; color-scheme: dark; }
.field select option { background: var(--bg-2); color: var(--fg-0); }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
}
.field textarea { resize: vertical; }

/* Validation */
.was-validated .field input:invalid,
.was-validated .field select:invalid,
.was-validated .field textarea:invalid {
  border-color: #ff4d4d !important;
  background-image: linear-gradient(to right, rgba(255, 77, 77, 0.05), transparent);
}
.was-validated .field input:valid,
.was-validated .field select:valid,
.was-validated .field textarea:valid {
  border-color: #2ecc71 !important;
}
.invalid-feedback {
  display: none;
  font-size: 11px;
  color: #ff4d4d;
  font-family: var(--mono);
  margin-top: 4px;
}
.was-validated :invalid ~ .invalid-feedback {
  display: block;
}
.field--check label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0;
}
.field--check input[type=checkbox] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  display: inline-grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 2px;
}
.field--check input[type=checkbox]:checked {
  background: var(--teal);
  border-color: var(--teal);
}
.field--check input[type=checkbox]:checked::after {
  content: "✓";
  color: var(--bg-0);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}
.field--check a { color: var(--teal); text-decoration: underline; }
.contact__legal {
  font-size: 11px;
  color: var(--fg-3);
  line-height: 1.5;
  margin: 0;
  font-family: var(--mono);
}

/* ━━━━━━━━━━ FOOTER ━━━━━━━━━━ */
.footer { background: var(--bg-0); color: var(--fg-1); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img, .footer__brand-iso { width: 40px; height: 40px; object-fit: contain; /* sin filtro: colores originales */ }
.footer__name {
  font-family: "Geometric Slabserif 712", "Roboto Slab", serif;
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--fg-0);
  text-transform: uppercase;
}
.footer__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--fg-3);
  margin: 4px 0 0;
  text-transform: uppercase;
}
.footer__h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--space-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--fg-2);
  transition: color .2s var(--ease);
  letter-spacing: .01em;
}
.footer ul a:hover { color: var(--teal); }
.footer__legal {
  border-top: 1px solid var(--line);
  padding: var(--space-2) 0;
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--mono);
  letter-spacing: .04em;
}
.footer__legal-row {
  display: flex; flex-direction: column; gap: var(--space-1);
  align-items: flex-start;
}
@media (min-width: 700px) {
  .footer__legal-row { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__legal-links { display: flex; gap: var(--space-3); }
.footer__legal-links a { color: var(--fg-3) !important; text-decoration: none !important; transition: color .2s var(--ease); }
.footer__legal-links a:hover { color: var(--teal) !important; }

/* ━━━━━━━━━━ WHATSAPP FAB ━━━━━━━━━━ */
.wsp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .35), 0 4px 10px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wsp:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 40px rgba(37,211,102,.5); }

/* ━━━━━━━━━━ TWEAKS PANEL ━━━━━━━━━━ */
.tw-panel {
  position: fixed; right: 20px; top: 90px; z-index: 80;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  font-family: var(--sans);
  display: none;
  border-radius: 4px;
}
.tw-panel.is-open { display: block; }
.tw-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.tw-panel__head h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
  color: var(--teal);
}
.tw-panel__close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--fg-3);
}
.tw-panel__close:hover { color: var(--fg-0); }
.tw-panel__body { padding: 18px; }
.tw-row { margin-bottom: 18px; }
.tw-row:last-child { margin-bottom: 0; }
.tw-row__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.tw-row__val { color: var(--teal); font-weight: 500; }
.tw-row input[type=range] {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  height: 24px;
}
.tw-row input[type=range]::-webkit-slider-runnable-track {
  height: 2px; background: var(--line-strong);
}
.tw-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal);
  margin-top: -6px;
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--teal-glow);
}
.tw-row input[type=range]::-moz-range-track { height: 2px; background: var(--line-strong); }
.tw-row input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 0; cursor: pointer;
}
.tw-presets { display: flex; gap: 6px; }
.tw-preset {
  flex: 1;
  padding: 8px 10px;
  font-size: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--fg-2);
  transition: all .2s var(--ease);
  border-radius: 3px;
}
.tw-preset:hover { border-color: var(--teal-deep); color: var(--teal); }
.tw-preset.is-active { background: var(--teal); color: var(--bg-0); border-color: var(--teal); }
