/* ============================================================
   ESPARTARQ — Static site styles
   Palette: deep green #011c17 (site) + green #023327 (navbar) + red #d83232
   Typography: Roboto Mono (display + body + caption)
   ============================================================ */

:root {
  --bg: #011c17;            /* verde profundo del sitio */
  --bg-soft: #021f1a;       /* un tono más oscuro */
  --bg-card: #03261f;       /* card green - un tono más claro */
  --bg-deep: #001410;       /* deepest green */
  --bg-nav: #023327;        /* verde del navbar (logo EspartArq) — distinto del verde del sitio */
  --bg-light: #f9f5f2;      /* claro cálido para secciones light */
  --bg-cream: #f9f5f2;      /* alias */
  --bg-cream-2: #f1e9dd;    /* variante ligeramente más profunda */
  --bg-tan: #d4c4a0;        /* acento tan cálido */
  --bg-ink: #1a1a1a;        /* near-black for accent sections */
  --fg: #fafafa;
  --fg-cream: #f9f5f2;      /* texto claro sobre fondo verde — igual al color de las secciones claras */
  --fg-muted: #b9c4bc;      /* soft sage on green */
  --fg-dim: #93a69c;        /* sage claro — contraste AA sobre --bg */
  --fg-darker: #7e9088;     /* sage medio — contraste AA sobre --bg */
  --fg-on-light: #1a1a1a;   /* dark text on light bg */
  --fg-muted-on-light: #555;
  --red: #d83232;           /* FireShot red */
  --red-dark: #a82323;
  --red-bright: #e8404a;
  --green: #25d366;         /* WhatsApp green (kept for WhatsApp button) */
  --border: #0e2922;
  --border-soft: rgba(255,255,255,0.10);
  --border-bright: rgba(255,255,255,0.18);
  --border-dark-soft: rgba(0,0,0,0.10);
  --radius: 0;
  --container: 1440px;
  --pad-x: clamp(1.5rem, 4vw, 2.5rem);
  --pad-x-lg: clamp(2.5rem, 6vw, 5rem);
  --font-display: 'Roboto Mono', ui-monospace, monospace;
  --font-body: 'Roboto Mono', ui-monospace, monospace;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

/* For light-background sections */
.section-light { background: var(--bg-light); color: var(--fg-on-light); }
.section-light .caption-mono.muted { color: var(--fg-muted-on-light); }
.section-light .caption-mono.muted-2 { color: #6e6e6e; }
.section-light .display-headline { color: var(--bg); }
.section-light .section-line { background: rgba(0,0,0,0.12); }
.section-light .proyectos-subtitle { color: var(--fg-muted-on-light); }
.section-light .nosotros-text { color: var(--fg-muted-on-light); }
.section-light .nosotros-headline { color: var(--bg); }
.section-light .process-step { border-top-color: rgba(0,0,0,0.12); }
/* Las tarjetas .process-step son siempre verde oscuro (ver --bg más abajo),
   incluso dentro de una sección clara — por eso necesitan más especificidad
   que la regla general .section-light, o el texto queda del mismo color
   que su propio fondo (invisible). */
.section-light .process-step .process-title { color: var(--fg); }
.section-light .process-step .process-desc { color: var(--fg-muted); }

/* Dark accent section (near-black) */
.section-ink { background: var(--bg-ink); color: var(--fg); }
.section-ink .caption-mono.muted { color: #999; }
.section-ink .caption-mono.muted-2 { color: #8a8a8a; }
.section-ink .display-headline { color: #fff; }
.section-ink .section-line { background: rgba(255,255,255,0.12); }

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
@media (min-width: 1024px) {
  .container { padding-left: var(--pad-x-lg); padding-right: var(--pad-x-lg); }
}

/* ========== TYPOGRAPHY ========== */
.caption-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}
.caption-mono.red { color: var(--red); }
.caption-mono.muted { color: var(--fg-muted); }
.caption-mono.muted-2 { color: var(--fg-darker); }

.display-headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--fg);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-wrap: balance;
}

.red { color: var(--red); }
.muted { color: var(--fg-muted); }
.muted-2 { color: var(--fg-darker); }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.d-block { display: block; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

/* ========== LOGO ========== */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
}
.logo-img {
  display: block;
  height: 3rem;
  width: auto;
}
@media (min-width: 768px) {
  .logo-img { height: 4rem; }
}
.logo-text { color: var(--fg); }
.logo-dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background: var(--red);
  border-radius: 50%;
  margin: 0 0.05em;
  transform: translateY(-0.05em);
}
.logo-arq {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 0.04em 0.18em;
  margin-left: 0.06em;
  letter-spacing: -0.02em;
  font-weight: 900;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 4rem;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-soft);
}
.nav.scrolled {
  background: rgba(2,51,39,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-soft);
}
@media (min-width: 768px) { .nav { height: 5rem; } }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}
.nav-logo { cursor: pointer; display: flex; align-items: center; height: 100%; padding: 0.25rem 0; }
.nav-logo .logo { font-size: 1.4rem; height: 100%; display: inline-flex; align-items: center; }
.nav-logo .logo-img { height: 3rem; max-height: calc(100% - 0.5rem); }
@media (min-width: 768px) { .nav-logo .logo { font-size: 1.6rem; } .nav-logo .logo-img { height: 4rem; max-height: calc(100% - 0.75rem); } }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--fg); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: -2px;
  height: 1px;
  background: var(--red);
}

.nav-cta { display: none; align-items: center; gap: 1rem; }
@media (min-width: 1024px) { .nav-cta { display: flex; } }

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-download:hover { color: var(--fg); }
.nav-download i { font-size: 0.85rem; }

.btn-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-bright);
  color: var(--fg);
  transition: all 0.3s;
}
.btn-cta:hover { border-color: var(--red); background: var(--red); color: #fff; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--fg);
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-soft);
  transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 80vh; }
.mobile-menu .container { padding-top: 1rem; padding-bottom: 1rem; display: flex; flex-direction: column; }
.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
}
.mobile-link .caption-mono { font-size: 0.7rem; }
.mobile-download { font-size: 1rem; color: var(--fg-muted); }
.mobile-download .caption-mono { font-size: 0.85rem; }
.mobile-cta { margin-top: 1.5rem; align-self: flex-start; padding: 0.875rem 1.25rem; background: var(--red); border: none; color: #fff; }
.mobile-cta:hover { background: var(--red-dark); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ========== BUTTONS ========== */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: #fff;
  border: none;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-bright);
  transition: border-color 0.3s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); }

.btn-outline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-bright);
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--red); background: var(--red); color: #fff; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .hero { padding-top: 6.5rem; } }

/* Trama sutil tipo plano arquitectónico — refuerza el mundo técnico de los dibujos */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(249,245,242,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,245,242,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 78% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 65% at 78% 45%, #000 0%, transparent 72%);
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--fg-muted);
  padding-top: 0.5rem;
}

/* ----- Split 50/50: texto | caja translúcida con el dibujo técnico ----- */
.hero-split {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.hero-text { min-width: 0; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--fg);
  font-size: clamp(2.25rem, 6.4vw, 4.75rem);
  margin-bottom: 1.75rem;
}
@media (min-width: 1024px) { .hero-title { font-size: clamp(2.5rem, 4.6vw, 4.25rem); } }
@media (min-width: 1440px) { .hero-title { font-size: clamp(3rem, 4.2vw, 4.75rem); } }
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--red-bright);
}
.hero-bottom {
  display: grid;
  gap: 1.5rem;
}
.hero-desc {
  font-size: 1.0625rem;
  color: var(--fg-cream);
  opacity: 0.92;
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 42ch;
}
@media (min-width: 768px) { .hero-desc { font-size: 1.125rem; } }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Caja translúcida con el dibujo técnico — igual a la referencia enviada */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.hero-visual-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: rgba(249, 245, 242, 0.06);
  border: 1px solid rgba(249, 245, 242, 0.14);
  border-radius: 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 50px 90px -30px rgba(0, 6, 5, 0.6);
  overflow: hidden;
}
.hero-visual-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(211,107,167,0.10), transparent 70%);
  pointer-events: none;
}
.hero-visual-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 40px rgba(0,6,5,0.45));
  animation: float-y 7s ease-in-out infinite;
}
@media (max-width: 1023px) {
  .hero-visual-box { max-height: 42vh; }
}

.hero-scroll {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-dim);
}
.scroll-arrow {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ========== SECTIONS ========== */
.section {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--border-soft);
}
.section-dark { background: var(--bg-soft); }
.section-border { border-top: 1px solid var(--border-soft); }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

/* ========== ESTUDIO ========== */
.estudio-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
@media (min-width: 768px) {
  .estudio-grid { grid-template-columns: 5fr 6fr; gap: 3rem; }
}
.estudio-left .caption-mono { color: var(--fg-muted); }
.estudio-desc {
  font-size: 1.125rem;
  color: var(--fg-cream);
  line-height: 1.7;
  text-wrap: pretty;
}
@media (min-width: 768px) { .estudio-desc { font-size: 1.25rem; } }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-cream);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--red);
  font-size: 1rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-icon i { font-size: 1rem; line-height: 1; }

.stats-grid {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stats-grid-single {
  grid-template-columns: 1fr;
  max-width: 22rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .stats-grid-single { grid-template-columns: 1fr; } }
.stats-grid-single .stat { text-align: center; }
.stat {
  background: var(--bg);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 768px) { .stat { padding: 2rem; } }
.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .stat-value { font-size: 3.75rem; } }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.5;
}
.stat-value.green-stat { color: var(--fg); }

/* ========== PROYECTOS ========== */
.proyectos-header {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 768px) {
  .proyectos-header { grid-template-columns: 7fr 4fr; gap: 2rem; align-items: end; }
}
.proyectos-subtitle {
  color: var(--fg-muted);
  text-wrap: pretty;
}
.proyectos-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}

/* Project row: text-only list item — covers only appear inside the project modal */
.project-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.75rem 0.5rem 1.75rem 0;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.35s ease, padding-left 0.35s ease;
}
.project-row:hover {
  background: rgba(255,255,255,0.04);
  padding-left: 1.25rem;
}
.project-row::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}
.project-row:hover::after { width: 100%; }

.project-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  min-width: 2.5rem;
}
.project-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.project-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  text-transform: uppercase;
  transition: color 0.3s;
}
.project-row:hover .project-name { color: var(--red-bright); }
.project-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fg-muted);
  line-height: 1.4;
  text-wrap: pretty;
}
.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  text-align: right;
}
.project-meta .meta-year { color: var(--fg-dim); }
.project-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.55;
  transform: translateX(0);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
  white-space: nowrap;
}
.project-row:hover .project-cta {
  opacity: 1;
  transform: translateX(4px);
  color: var(--red-bright);
}
.project-cta i { font-size: 0.85em; }

@media (max-width: 768px) {
  .project-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "number main cta"
      "meta  meta meta";
    gap: 0.75rem 1rem;
    padding: 1.25rem 0.25rem 1.25rem 0;
  }
  .project-row:hover { padding-left: 0.75rem; }
  .project-number { grid-area: number; }
  .project-main { grid-area: main; }
  .project-meta {
    grid-area: meta;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding-top: 0.25rem;
    border-top: 1px dashed rgba(255,255,255,0.08);
    margin-top: 0.25rem;
  }
  .project-cta { grid-area: cta; }
  .project-tagline { font-size: 0.8rem; }
}

/* ========== MANIQUÍES ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-bright);
  color: var(--fg-muted);
  transition: all 0.3s;
}
.filter-btn:hover { border-color: rgba(255,255,255,0.4); color: var(--fg); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.maniquies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .maniquies-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .maniquies-grid { grid-template-columns: repeat(4, 1fr); } }

.mannequin-card {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  overflow: hidden;
}
.mannequin-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.mannequin-card:hover img { transform: scale(1.05); }
.mannequin-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,29,21,0.9) 0%, transparent 50%);
}
.mannequin-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
}
.mannequin-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  background: rgba(8,29,21,0.65);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.5rem;
  width: fit-content;
}
.mannequin-name { display: none; }
.mannequin-number {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  background: rgba(8,29,21,0.6);
  backdrop-filter: blur(8px);
  padding: 0.125rem 0.5rem;
}

.maniquies-footer {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 768px) {
  .maniquies-footer { grid-template-columns: 1fr auto; align-items: end; }
}
.maniquies-footer p { color: var(--fg-muted); max-width: 60ch; }

/* ========== NOSOTROS ========== */
.nosotros-headline {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 22ch;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
}
.nosotros-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}
@media (min-width: 768px) { .nosotros-grid { grid-template-columns: 5fr 5fr; gap: 3rem; } }
.nosotros-text {
  font-size: 1.125rem;
  color: var(--fg-cream);
  line-height: 1.7;
  text-wrap: pretty;
}
.process-grid {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  margin-bottom: clamp(4rem, 8vw, 6rem);
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  background: var(--bg);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 768px) { .process-step { padding: 2rem; } }
.process-thumb {
  height: 6.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.process-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  opacity: 0.92;
}
@media (min-width: 768px) { .process-thumb { height: 7.5rem; } }
.process-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.process-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.taller-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}
.taller-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .taller-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.taller-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}
.taller-item.big {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
@media (min-width: 768px) {
  .taller-item.big { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
}
.taller-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.taller-item:hover img { transform: scale(1.05); }
.taller-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,29,21,0.8) 0%, transparent 50%);
}
.taller-label {
  position: absolute;
  bottom: 0.75rem; left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  z-index: 1;
}

/* ========== CONTACTO ========== */
.contacto-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .contacto-grid { grid-template-columns: 5fr 6fr; gap: 3rem; } }
.contacto-left .display-headline { font-size: clamp(2.25rem, 5vw, 4rem); }
.contacto-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 36ch;
  text-wrap: pretty;
}
.contact-info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) { .contact-info { margin-top: 3.5rem; } }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.2s;
}
.contact-link:hover { opacity: 0.8; }
.contact-icon {
  width: 2.5rem; height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-bright);
  color: var(--red);
  transition: all 0.3s;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.contact-icon svg { width: 1.125rem; height: 1.125rem; }
.contact-icon i { font-size: 1.125rem; line-height: 1; }
.contact-link:hover .contact-icon {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.contact-value { font-size: 1rem; color: var(--fg); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) { .contact-form { padding: 2rem; } }
.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-bright);
  padding: 0.5rem 0;
  color: var(--fg);
  outline: none;
  resize: vertical;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--fg-darker); }
.form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--red); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.5rem;
}
.form-actions .btn-primary { order: 1; }
.form-actions .btn-alt-mailto { order: 2; }
.form-actions .caption-mono { order: 3; flex-basis: 100%; }
.btn-alt-mailto {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}
.hidden-hp { display: none; }

/* ========== FOOTER ========== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  padding: 3rem 0 1.5rem;
}
@media (min-width: 768px) { .footer { padding: 4rem 0 1.5rem; } }
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; gap: 3rem; } }
.footer-brand .logo { font-size: 1.75rem; }
.footer-tagline {
  margin-top: 1rem;
  color: var(--fg-muted);
  max-width: 28ch;
  text-wrap: pretty;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover { color: var(--fg); }
.footer-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--red);
  font-size: 0.875rem;
}
.footer-ico svg { width: 100%; height: 100%; }
.footer-ico i { font-size: 0.875rem; line-height: 1; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

/* ========== WHATSAPP ========== */
.whatsapp-wrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
}
.whatsapp-btn {
  position: relative;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.05); }
.whatsapp-btn .wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
}
.whatsapp-btn .wa-icon svg { width: 100%; height: 100%; }
.whatsapp-btn .wa-icon i { font-size: 1.5rem; line-height: 1; }
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.3;
  z-index: -1;
  animation: wa-ping 2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ========== PROJECT MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #f5f1e8;
  overflow-y: auto;
  animation: fade-in 0.3s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  min-height: 100%;
  animation: modal-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top bar (sticky) - green */
.modal-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  height: 4rem;
  display: flex;
  align-items: center;
}
.modal-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.modal-top-meta { display: flex; align-items: baseline; gap: 1rem; }
.modal-top-meta .meta-cat { display: none; }
@media (min-width: 640px) { .modal-top-meta .meta-cat { display: inline; } }
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  transition: color 0.2s, transform 0.2s;
}
.modal-close:hover { color: var(--red-bright); transform: rotate(90deg); }

/* Project banner: green background with name + tagline */
.modal-project-banner {
  background: var(--bg);
  color: #fff;
  padding: 3rem 0;
}
@media (min-width: 768px) { .modal-project-banner { padding: 4rem 0 5rem; } }
.modal-banner-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .modal-banner-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
  }
}
.modal-project-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #fff;
  margin: 0;
}
.modal-project-tagline {
  font-size: 1rem;
  color: var(--fg-muted);
  text-wrap: pretty;
  margin: 0;
}
@media (min-width: 768px) {
  .modal-project-tagline { font-size: 1.25rem; max-width: 30ch; text-align: right; }
}

/* Black breadcrumb bar */
.modal-breadcrumb {
  background: var(--bg-ink);
  color: #fff;
  padding: 0.875rem 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.modal-breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
.modal-crumb { color: rgba(255,255,255,0.9); }
.modal-crumb-sep { color: var(--red); }

/* Modal body on cream background */
.modal-body { padding: 0; background: var(--bg-cream); color: var(--fg-on-light); }
.modal-content-inner {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .modal-content-inner { padding-top: 4rem; padding-bottom: 4rem; }
}

.modal-concept-label { margin-bottom: 0.75rem; }
.modal-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.modal-keyword {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--bg);
  background: rgba(0,0,0,0.04);
  font-weight: 600;
}

/* Hero image - centered, large */
.modal-hero {
  position: relative;
  aspect-ratio: 16/10;
  background: #0a1f17;
  overflow: hidden;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .modal-hero { aspect-ratio: 16/9; margin-bottom: 3.5rem; } }
.modal-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #0a1f17;
}
.modal-counter {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #fff;
  background: rgba(8,29,21,0.7);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.75rem;
}
.modal-nav {
  position: absolute;
  top: 0; bottom: 0;
  width: 25%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 1rem;
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s;
  background: transparent;
}
.modal-nav:hover { opacity: 1; }
.modal-nav-prev { left: 0; justify-content: flex-start; }
.modal-nav-next { right: 0; justify-content: flex-end; }
.modal-nav i {
  background: rgba(8,29,21,0.7);
  backdrop-filter: blur(8px);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Expand (zoom-in) button on modal hero image */
.modal-expand {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 4;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,29,21,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  color: #fff;
  cursor: zoom-in;
  transition: all 0.25s ease;
  font-size: 0.875rem;
}
.modal-expand:hover { background: var(--red); border-color: var(--red); transform: scale(1.08); }
@media (max-width: 768px) {
  .modal-expand { width: 2.25rem; height: 2.25rem; top: 0.75rem; right: 0.75rem; }
}

/* ===== PORTADA — two large stacked hero images at the top of each project ===== */
.modal-portada {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0a1f17;
  overflow: hidden;
  margin-bottom: 2.5rem;
  cursor: zoom-in;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 24px -10px rgba(0,0,0,0.25);
}
@media (min-width: 768px) {
  .modal-portada { aspect-ratio: 16 / 9; margin-bottom: 3rem; }
}
.modal-portada img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a1f17;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-portada:hover img { transform: scale(1.02); }
.modal-portada-tag {
  position: absolute;
  bottom: 1rem; left: 1rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(216, 50, 50, 0.92);
  padding: 0.35rem 0.7rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .modal-portada { aspect-ratio: 4 / 3; margin-bottom: 1.75rem; }
  .modal-portada-tag { font-size: 0.55rem; bottom: 0.75rem; left: 0.75rem; padding: 0.25rem 0.55rem; }
}

/* Concept block (label + tags on left, paragraph on right) */
.modal-concept {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
@media (min-width: 768px) { .modal-concept { grid-template-columns: 3fr 8fr; gap: 2rem; } }
.modal-concept-left { display: flex; flex-direction: column; gap: 0.5rem; }
.modal-concept-text {
  font-size: 1.125rem;
  color: var(--fg-on-light);
  line-height: 1.6;
  text-wrap: pretty;
  margin: 0;
}
@media (min-width: 768px) { .modal-concept-text { font-size: 1.375rem; } }

/* Feature blocks (3 columns with icons) */
.modal-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .modal-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .modal-features { grid-template-columns: repeat(3, 1fr); } }
.modal-feature {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.modal-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--bg);
  margin: 0;
  text-transform: uppercase;
}
.modal-feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted-on-light);
  line-height: 1.55;
  margin: 0;
}

/* Meta info grid */
.modal-meta-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .modal-meta-grid { grid-template-columns: repeat(3, 1fr); } }
.modal-meta-item .caption-mono { display: block; margin-bottom: 0.5rem; color: var(--fg-muted-on-light); }
.modal-meta-item-value {
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Gallery label */
.modal-gallery-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.modal-gallery-label .caption-mono.muted { color: var(--fg-muted-on-light); }

/* Gallery grid - 4 columns on desktop */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .modal-gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1280px) { .modal-gallery { grid-template-columns: repeat(4, 1fr); } }
.modal-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a1f17;
  border: none;
  cursor: pointer;
  padding: 0;
}
.modal-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.modal-gallery-item:hover img { transform: scale(1.05); }
.modal-gallery-item.active { outline: 2px solid var(--red); outline-offset: -2px; }
.modal-gallery-item-num {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.1em;
}

/* CTA at bottom */
.modal-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.12);
}
@media (min-width: 768px) { .modal-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.modal-cta-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 1.5rem;
  color: var(--bg);
  margin: 0;
}
@media (min-width: 768px) { .modal-cta-text { font-size: 1.875rem; } }

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--fg);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.6);
  animation: toast-in 0.3s ease;
  max-width: 90vw;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* ========== UTILITIES ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== KEY ANIMATIONS ========== */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 50, 50, 0.55); }
  50%      { box-shadow: 0 0 0 12px rgba(216, 50, 50, 0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes shimmer-line {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Hero entrance — staggered */
.hero-meta  { animation: hero-fade-in 1.2s ease 0.2s both; }
.hero-title { animation: hero-fade-up 1.1s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.hero-bottom{ animation: hero-fade-up 1.1s cubic-bezier(0.16,1,0.3,1) 0.7s both; }
.hero-visual-box { animation: scale-in 1.2s cubic-bezier(0.16,1,0.3,1) 0.5s both; }
.hero-scroll{ animation: hero-fade-in 1.2s ease 1.1s both; }

/* Section reveal: staggered children */
.section .section-label,
.section .display-headline,
.section .proyectos-header,
.section .estudio-grid,
.section .stats-grid,
.section .nosotros-grid,
.section .process-grid,
.section .taller-grid,
.section .filter-bar,
.section .maniquies-grid,
.section .contacto-grid,
.section .maniquies-footer {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.section.in-view .section-label       { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.section.in-view .display-headline    { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.section.in-view .proyectos-header,
.section.in-view .estudio-grid        { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.section.in-view .stats-grid,
.section.in-view .nosotros-grid       { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.section.in-view .process-grid,
.section.in-view .filter-bar          { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.section.in-view .taller-grid,
.section.in-view .maniquies-grid      { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.section.in-view .contacto-grid,
.section.in-view .maniquies-footer    { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }

/* Project row: staggered entrance */
.project-row { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.project-row.visible { opacity: 1; transform: translateY(0); }
.project-row.visible:nth-child(2) { transition-delay: 0.08s; }
.project-row.visible:nth-child(3) { transition-delay: 0.16s; }
.project-row.visible:nth-child(4) { transition-delay: 0.24s; }
.project-row.visible:nth-child(5) { transition-delay: 0.32s; }
.project-row.visible:nth-child(6) { transition-delay: 0.40s; }

/* CTA pulse on primary buttons */
.btn-primary { animation: pulse-red 2.6s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

/* Display headline shimmer underline on hover (subtle) */
.display-headline { position: relative; display: inline-block; }
.display-headline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--red) 0%, transparent 60%, var(--red) 100%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: shimmer-line 3s linear infinite;
}
.section.in-view .display-headline::after { opacity: 0.7; transition-delay: 0.7s; }

/* Card hover lift — mannequin & taller */
.mannequin-card, .taller-item, .modal-gallery-item {
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
}
.mannequin-card:hover, .taller-item:hover, .modal-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.55);
}

/* Image zoom affordance — clickable cursor */
[data-lightbox], .mannequin-card, .taller-item, .modal-gallery-item {
  cursor: zoom-in;
}

/* ========== GLOBAL LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(5, 18, 13, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  touch-action: none;        /* we manage gestures ourselves */
  -ms-touch-action: none;
  overscroll-behavior: contain;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.lightbox-img.no-transition { transition: none; }

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 42, 31, 0.85);
  border: 1px solid var(--border-bright);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.lightbox-close svg { width: 1.25rem; height: 1.25rem; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 42, 31, 0.7);
  border: 1px solid var(--border-bright);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.25s ease;
}
.lightbox-nav:hover { background: var(--red); border-color: var(--red); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
@media (max-width: 768px) {
  .lightbox-nav { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
}

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #fff;
  background: rgba(13, 42, 31, 0.85);
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-bright);
}

.lightbox-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
  white-space: nowrap;
}
.lightbox-hint .sep { color: var(--red); margin: 0 0.5rem; }
@media (max-width: 600px) {
  .lightbox-hint { font-size: 0.55rem; }
}

/* Lightbox entrance animation */
.lightbox-img.entering { animation: scale-in 0.4s cubic-bezier(0.16,1,0.3,1) both; }

/* ========== CLIENTES ========== */
.clientes-header {
  margin-bottom: 3rem;
  text-align: center;
}
.clientes-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--fg-muted-on-light);
  margin-top: 1rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  justify-items: center;
  align-items: center;
}

.cliente-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cliente-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.cliente-card img {
  max-width: 85%;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.6rem;
}

.cliente-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  text-align: center;
  line-height: 1.3;
}

.clientes-footer {
  text-align: center;
  padding-top: 1rem;
}

@media (max-width: 1023px) {
  .clientes-grid { grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }
}
@media (max-width: 768px) {
  .clientes-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .cliente-card { padding: 1.25rem 0.75rem; min-height: 100px; }
  .cliente-card img { max-height: 42px; }
  .cliente-name { font-size: 0.58rem; }
}
@media (max-width: 480px) {
  .clientes-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .cliente-card { padding: 1rem 0.5rem; min-height: 90px; }
  .cliente-card img { max-height: 36px; }
}

/* ========== RESPONSIVE POLISH ========== */
@media (max-width: 1023px) {
  /* Slightly larger tap targets for nav toggle */
  .nav-toggle { padding: 0.75rem; }
  .nav-toggle span { width: 26px; }
  /* Mobile CTA full-width */
  .mobile-cta { width: 100%; text-align: center; padding: 1rem; }
}
@media (max-width: 768px) {
  /* Hero title a touch smaller for small phones */
  .hero-title { font-size: clamp(2.75rem, 12vw, 5rem); margin-bottom: 1.25rem; }
  .hero-bottom { gap: 1.25rem; }
  .hero-desc { font-size: 1rem; }
  .hero-meta .caption-mono { font-size: 0.6rem; }

  /* Sections less padding on mobile */
  .section { padding-top: clamp(3rem, 10vw, 5rem); padding-bottom: clamp(3rem, 10vw, 5rem); }

  /* Display headlines smaller on mobile */
  .display-headline { font-size: clamp(1.65rem, 7vw, 2.25rem); line-height: 1; }
  .nosotros-headline { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Estudio: stack columns with appropriate spacing */
  .estudio-grid { gap: 1.5rem; margin-bottom: 3rem; }
  .estudio-desc { font-size: 1rem; }
  .services-grid { gap: 0.6rem 1rem; margin-top: 1.5rem; }
  .service-item { font-size: 0.8rem; }

  /* Stats: stack vertically */
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.25rem; text-align: left; }
  .stat-value { font-size: 2.5rem; }

  /* Project rows: tighter on mobile */
  .project-name { font-size: 1.4rem; }
  .project-tagline { font-size: 0.8rem; }
  .project-cta { font-size: 0.65rem; }

  /* Proyectos header */
  .proyectos-header { gap: 1rem; margin-bottom: 2rem; }
  .proyectos-subtitle { font-size: 0.9rem; }

  /* Mannequin grid 2 cols on mobile, slightly bigger cards */
  .maniquies-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* Taller grid 1 col on mobile */
  .taller-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .taller-item.big { grid-column: span 1; aspect-ratio: 16/9; }

  /* Nosotros */
  .nosotros-grid { gap: 1.5rem; margin-bottom: 3rem; }
  .nosotros-text { font-size: 1rem; }
  .process-grid { grid-template-columns: 1fr; margin-bottom: 3rem; }
  .process-step { padding: 1.25rem; }
  .process-title { font-size: 1.25rem; }

  /* Contacto */
  .contacto-grid { gap: 1.5rem; }
  .contacto-left .display-headline { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .contacto-subtitle { font-size: 1rem; margin-top: 1rem; }
  .contact-form { padding: 1.25rem; gap: 1rem; }
  .form-row { gap: 1rem; }

  /* Modal */
  .modal-project-name { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .modal-project-tagline { font-size: 0.95rem; }
  .modal-project-banner { padding: 2rem 0; }
  .modal-concept-text { font-size: 1rem; }
  .modal-concept { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 2rem; margin-bottom: 2rem; }
  .modal-features { gap: 1rem; }
  .modal-feature { padding: 1.25rem 1rem; }
  .modal-hero { aspect-ratio: 4/3; margin-bottom: 2rem; }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .modal-cta-text { font-size: 1.25rem; }
  .modal-content-inner { padding-top: 2rem; padding-bottom: 2rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.25rem; }
  .footer-grid { gap: 1.5rem; margin-bottom: 2rem; }
  .footer-brand .logo-img { height: 2.5rem !important; }

  /* Mobile menu links bigger */
  .mobile-link { padding: 1rem 0; font-size: 1.35rem; }

  /* WhatsApp button smaller on mobile */
  .whatsapp-btn { width: 3rem; height: 3rem; }
  .whatsapp-btn .wa-icon { width: 1.5rem; height: 1.5rem; }
  .whatsapp-btn .wa-icon i { font-size: 1.25rem; }

  /* Buttons full-width on mobile for hero */
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { flex: 1; justify-content: center; padding: 0.875rem 1rem; font-size: 0.65rem; }
}
@media (max-width: 480px) {
  :root { --pad-x: 1.25rem; }
  .hero-title { font-size: clamp(1.6rem, 11.5vw, 2.9rem); }
  .hero-meta .caption-mono { font-size: 0.55rem; }
  .hero-desc { font-size: 0.95rem; }
  .project-name { font-size: 1.15rem; }
  .display-headline { font-size: 1.5rem; }
  .modal-gallery { grid-template-columns: 1fr; }
  .maniquies-grid { grid-template-columns: 1fr; }
  .lightbox-hint { font-size: 0.5rem; letter-spacing: 0.1em; }
  .lightbox-hint .sep { margin: 0 0.25rem; }
}

/* Larger desktop polish */
@media (min-width: 1600px) {
  :root { --container: 1600px; }
  .hero-title { font-size: clamp(3.5rem, 3.6vw, 5.5rem); }
}

/* Reduced motion: disable big animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-meta, .hero-title, .hero-bottom, .hero-scroll { animation: none; opacity: 1; transform: none; }
  .section .section-label, .section .display-headline, .section .proyectos-header,
  .section .estudio-grid, .section .stats-grid, .section .nosotros-grid,
  .section .process-grid, .section .taller-grid, .section .filter-bar,
  .section .maniquies-grid, .section .contacto-grid, .section .maniquies-footer,
  .section .clientes-grid, .section .clientes-header {
    opacity: 1; transform: none;
  }
}
