@media (max-width: 600px) {
  .nav .wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 4px 2px;
    position: relative;
  }
  .nav .hamburger {
    display: flex;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    z-index: 30;
  }
  .nav .menu-mobile {
    display: none;
  }
  .nav.open .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.open .menu-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    gap: 0;
    background: rgba(8, 12, 16, 0.98);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
    padding: 24px 0 24px 0;
    align-items: stretch;
    z-index: 20;
  }
  .nav .menu-mobile .link,
  .nav .menu-mobile .btn.micro {
    display: block;
    width: 100%;
    margin: 6px 0;
    background: none;
    border-radius: 0;
    text-align: left;
    padding: 0.7em 1.5em;
    font-size: 1.1em;
  }
  .nav .brand {
    display: none;
  }
  .nav.open .brand {
    display: block;
    margin: 0 auto 8px auto;
    background: #101820;
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    width: fit-content;
  }
}
/* ======= HAMBURGER NAV MOBILE ======= */
.nav .hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 20;
}
.nav .hamburger span,
.nav .hamburger span:before,
.nav .hamburger span:after {
  display: block;
  position: absolute;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}
.nav .hamburger span {
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
}
.nav .hamburger span:before {
  content: "";
  top: -9px;
  left: 0;
}
.nav .hamburger span:after {
  content: "";
  top: 9px;
  left: 0;
}
.nav.open .hamburger span {
  background: transparent;
}
.nav.open .hamburger span:before {
  top: 0;
  transform: rotate(45deg);
}
.nav.open .hamburger span:after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 600px) {
  .nav .wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 4px 2px;
  }
  .nav .hamburger {
    display: flex;
  }
  .nav .link {
    display: none;
  }
  .nav.open .link {
    display: block;
    width: 100%;
    margin: 6px 0;
    background: rgba(8, 12, 16, 0.98);
    border-radius: 8px;
    text-align: left;
    padding: 0.7em 1em;
  }
  .nav.open .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}
/* ====================== RESPONSIVE: TABLET Y MOBILE ====================== */
@media (max-width: 900px) {
  .container {
    padding-inline: 12px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .proj-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .track {
    grid-auto-columns: 92%;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .t-grid {
    grid-template-columns: 1fr;
  }
  .ig {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sticky-frame {
    height: 60vh;
  }
  .sticky-frame .sticky {
    height: 60vh;
  }
  .sticky .caption {
    font-size: var(--s0);
    left: 16px;
    bottom: 16px;
    max-width: 90vw;
  }
  .hero .copy {
    padding: 32px 0 var(--gap2);
  }
  .hero h1 {
    font-size: var(--s2);
  }
  .btn {
    padding: 0.7em 1em;
    font-size: 1rem;
  }
  .nav .wrap {
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 4px;
  }
  .nav a.link {
    font-size: 0.92rem;
    padding: 0.4em 0.7em;
  }
  .brand {
    font-size: 1rem;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 6px;
  }
  .hero .copy {
    padding: 18px 0 var(--gap);
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .btn {
    font-size: 0.98rem;
    padding: 0.6em 0.8em;
  }
  .proj-head h2 {
    font-size: 1.1rem !important;
  }
  .sticky .caption {
    font-size: 1rem;
    left: 8px;
    bottom: 8px;
    max-width: 98vw;
  }
  .ig {
    grid-template-columns: 1fr;
  }
  .form .grid {
    grid-template-columns: 1fr;
  }
  .t-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .nav .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 2px;
  }
  .nav a.link {
    font-size: 0.9rem;
    padding: 0.3em 0.5em;
  }
  .brand {
    font-size: 0.95rem;
    gap: 4px;
  }
}
/* ====================== TOKENS (EDITABLES) ====================== */
.edfx {
  --bg: #0b1318; /* Fondo base */
  --ink: #f1faf8; /* Texto principal (ALTO contraste) */
  --muted: #a8c1c4; /* Texto secundario */
  --accent: #46d36a; /* Verde Edifica */
  --cta: #ff7a57; /* Botón primario */
  --cta-2: #9ed8d2; /* Acento secundario */
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 12px;
  --container: clamp(980px, 96vw, 1280px);
  --s-1: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --s0: clamp(1.05rem, 1rem + 0.6vw, 1.25rem);
  --s1: clamp(1.35rem, 1.2rem + 1vw, 1.7rem);
  --s2: clamp(1.8rem, 1.6rem + 2vw, 2.4rem);
  --s3: clamp(2.5rem, 2.2rem + 3vw, 3.6rem);
  --s4: clamp(3rem, 2.6rem + 4.6vw, 5.2rem);
  --gap: clamp(16px, 1.6vw, 28px);
  --gap2: calc(var(--gap) * 2);
  --gap3: calc(var(--gap) * 3);
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
.edfx * {
  box-sizing: border-box;
}
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}
h1,
h2,
h3 {
  color: var(--ink);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
} /* CONTRASTE VISUAL */
p.muted,
.muted {
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.2em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cta), #e35b3a);
  color: white;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  transition: 0.2s transform, 0.2s filter;
}
.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}
.btn.outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn.micro {
  font-size: 0.9rem;
  padding: 0.45em 0.8em;
}
.tag {
  display: inline-flex;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(158, 216, 210, 0.16);
  color: var(--cta-2);
  border: 1px solid rgba(158, 216, 210, 0.28);
}
.edge {
  margin-inline: clamp(-24px, -3vw, -40px);
} /* imágenes edge-to-edge en mobile */

/* ====================== NAV ====================== */
.nav {
  position: sticky;
  top: 8px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav .wrap {
  pointer-events: auto;
  background: rgba(8, 12, 16, 0.8);
  backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.45em 0.8em;
  border-radius: 999px;
}
.brand svg {
  width: 22px;
  height: 22px;
}
.nav a.link {
  padding: 0.5em 0.85em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.1);
}

/* ====================== HERO FULL-BLEED ====================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
}
.hero .media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* VIDEO: reemplazá el src abajo – usa tu 4K si querés */
.hero video,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero .veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 800px at 80% -10%,
      rgba(70, 211, 106, 0.22),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(12, 20, 25, 0.1),
      rgba(12, 20, 25, 0.45) 35%,
      rgba(12, 20, 25, 0.8) 70%,
      rgba(12, 20, 25, 0.92)
    );
}
.hero .copy {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 10vh, 120px) 0 var(--gap3);
}
.hero h1 {
  font-size: var(--s4);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero p {
  font-size: var(--s0);
  max-width: 60ch;
}
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  opacity: 0.95;
  animation: float 2.2s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ====================== SECCIONES ====================== */
section.block {
  padding-block: var(--gap3);
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 2.2vw, 28px);
}
.media-card {
  padding: 0;
  overflow: hidden;
}
.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ====================== PROYECTOS SLIDER ====================== */
.proj-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: var(--gap);
}
.slider {
  position: relative;
}
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar {
  display: none;
}
.slide {
  scroll-snap-align: start;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  transform-style: preserve-3d;
}
.slide .img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.slide .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.slide .badge {
  position: absolute;
  left: 12px;
  top: 12px;
}
.slide .body {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 0.45em 0.7em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}
.slider .arrows {
  position: absolute;
  inset: auto 8px -18px auto;
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
}
.hint {
  position: absolute;
  inset: auto 0 -6px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ====================== FULL-BLEED PARALLAX / STICKY ====================== */
.sticky-gallery {
  margin: 0;
  padding: 0;
}
.sticky-frame {
  position: relative;
  height: 120svh;
}
.sticky-frame .sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.sticky img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.sticky .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}
.sticky .caption {
  position: absolute;
  left: clamp(16px, 4vw, 60px);
  bottom: clamp(16px, 4vw, 60px);
  font-size: var(--s1);
  max-width: 60ch;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

/* ====================== STATS ====================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.stat strong {
  font-size: var(--s2);
  display: block;
}

/* ====================== SOCIAL GRID ====================== */
.social {
  background: #0e171d;
}
.ig {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: var(--gap);
}
.ig a {
  display: block;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.ig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.3s;
}
.ig a:hover img {
  transform: scale(1.06);
}
.badge-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 0.35em 0.6em;
  font-size: 0.85rem;
}

/* ====================== TESTIMONIOS / FAQ / CONTACTO ====================== */
.t-grid {
  display: grid;
  gap: var(--gap);
}
.tcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.tauthor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.tauthor img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
details.faq > summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
details.faq[open] {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}
.form {
  display: grid;
  gap: 12px;
}
.form .grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.form input::placeholder,
.form textarea::placeholder {
  color: #8aa3a6;
}

/* ====================== REVEAL ====================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ====================== DESKTOP ====================== */
@media (min-width: 900px) {
  .cards {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .track {
    grid-auto-columns: 44%;
  }
  .ig {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .t-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ==== FIX: evitar superposición de #showreel sobre #social ==== */
/* baja el stacking de la galería sticky */
.sticky-gallery,
.sticky-gallery .sticky {
  position: relative;
  z-index: 0;
}

/* eleva el stacking del bloque social */
#social {
  position: relative;
  z-index: 2;
}
