/* INSTINTO · Estilos del sitio */
/* ━━━━━━━━━━ BASE ━━━━━━━━━━ */
:root {
  --in-dark: #1E1E1E;
  --in-light: #F5F5F5;
  --in-nav-h: 52px;
  --in-nav-gap: 16px;
  /* Curva de movimiento tipo Framer: arranca decidida y frena muy suave */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Aparición suave al entrar en pantalla */
/* Entra desde un difuminado: transparente, desenfocado y 32px más abajo */
.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(32px);
  transition: opacity 1400ms var(--ease), filter 1400ms var(--ease), transform 1400ms var(--ease);
  will-change: opacity, filter, transform;
}
.reveal.is-in { opacity: 1; filter: blur(0); transform: none; }
.reveal--d1 { transition-delay: 150ms; }
.reveal--d2 { transition-delay: 300ms; }

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--in-dark);
  background: #0C0C0C;
}

img { display: block; max-width: 100%; }

/* ━━━━━━━━━━ HERO ━━━━━━━━━━ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #FFFFFF;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 70%;
  animation: in-breathe 40s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__title {
  position: absolute;
  top: calc(50% - 220px);
  left: 16px;
  right: 16px;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--in-dark);
}

/* ━━━━━━━━━━ NIEBLA EN MOVIMIENTO ━━━━━━━━━━ */
.fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 80%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 80%, transparent 96%);
}

.fog__layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background-image: url("../niebla.webp");
  background-repeat: repeat-x;
  will-change: transform;
}

.fog__layer--back {
  width: calc(100% + 1024px);
  background-size: 1024px 512px;
  background-position: 0 32%;
  opacity: 0.7;
  animation: in-drift-back 38s linear infinite;
}

.fog__layer--front {
  width: calc(100% + 1536px);
  background-size: 1536px 768px;
  background-position: 0 64%;
  opacity: 0.6;
  filter: blur(3px);
  animation: in-drift-front 24s linear infinite;
}

@keyframes in-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes in-drift-back { from { transform: translateX(-1024px); } to { transform: translateX(0); } }
@keyframes in-drift-front { from { transform: translateX(-1536px); } to { transform: translateX(0); } }

/* ━━━━━━━━━━ BOTTOM NAVIGATION (celular). La versión de escritorio está al final ━━━━━━━━━━ */
.in-nav { display: none; }

@media (max-width: 767px) {
  body {
    padding-bottom: calc(var(--in-nav-h) + var(--in-nav-gap) * 2 + env(safe-area-inset-bottom));
  }

  .in-nav {
    position: fixed;
    left: var(--in-nav-gap);
    right: var(--in-nav-gap);
    bottom: calc(var(--in-nav-gap) + env(safe-area-inset-bottom));
    padding: 4px 16px;
    border-radius: 32px;
    background: rgba(30, 30, 30, 0.43);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    transition: background-color 700ms var(--ease);
  }

  /* Sobre secciones claras la barra se oscurece para mantener el contraste */
  .in-nav.is-on-light { background: rgba(30, 30, 30, 0.88); }

  .in-nav__item {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--in-light);
    opacity: 0.72;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 600ms var(--ease);
  }

  .in-nav__icon {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 600ms var(--ease);
  }

  .in-nav__text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .in-nav__label {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    letter-spacing: 0;
    color: var(--in-light);
    text-align: center;
    white-space: nowrap;
  }

  .in-nav__line {
    display: block;
    height: 1px;
    background: var(--in-light);
    transform: scaleX(0);
    opacity: 0;
    transform-origin: center;
    transition: transform 700ms var(--ease), opacity 700ms var(--ease);
  }

  @media (hover: hover) {
    .in-nav__item:hover { opacity: 1; }
    .in-nav__item:hover .in-nav__icon { transform: translateY(-1px); }
    .in-nav__item:hover .in-nav__line { transform: scaleX(0.4); opacity: 0.5; }
    .in-nav__core:hover svg { transform: scale(1.08); }
  }

  .in-nav__item[aria-current="page"] { opacity: 1; }
  .in-nav__item[aria-current="page"] .in-nav__line { transform: scaleX(1); opacity: 1; }

  .in-nav__item:focus-visible {
    outline: 1px solid var(--in-light);
    outline-offset: 2px;
    border-radius: 8px;
  }

  .in-nav__core {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .in-nav__core svg {
    width: 32px;
    height: 32px;
    display: block;
    transition: transform 600ms var(--ease);
  }

  .in-nav__core:active svg { transform: scale(0.94); }

  .in-nav__core:focus-visible {
    outline: 1px solid var(--in-light);
    outline-offset: 3px;
    border-radius: 50%;
  }
}

/* Transición suave del hero a la sección oscura */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(12, 12, 12, 0), #0C0C0C);
  pointer-events: none;
}

/* ━━━━━━━━━━ EXPLORAR ━━━━━━━━━━ */
.explorar {
  background: #0C0C0C;
  color: var(--in-light);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.explorar__head {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explorar__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--in-light);
}

.explorar__lead {
  margin: 0;
  max-width: 328px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--in-light);
}

.explorar__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cards {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  padding: 0 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cards::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 calc(100% - 76px);
  max-width: 298px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--in-dark);
  color: var(--in-light);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.card__media {
  aspect-ratio: 298 / 327;
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}

.card__info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
}

.card__arrow {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 600ms var(--ease);
}

.card__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0;
}

@media (hover: hover) {
  .card:hover .card__img { transform: scale(1.04); }
  .card:hover .card__arrow { transform: translateX(4px); }
}

.card:active .card__img { transform: scale(1.02); }
.card:focus-visible { outline: 1px solid var(--in-light); outline-offset: 3px; }
.card:focus-visible .card__arrow { transform: translateX(4px); }

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.dots__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--in-light);
  opacity: 0.4;
  transition: width 700ms var(--ease), opacity 700ms var(--ease);
}

.dots__dot.is-active { width: 18px; opacity: 1; }

/* ━━━━━━━━━━ PROYECTOS ━━━━━━━━━━ */
.proyectos {
  background: var(--in-light);
  color: var(--in-dark);
  padding: 80px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.proyectos__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--in-dark);
}

.proyectos__lead {
  margin: 16px 0 0;
  max-width: 328px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--in-dark);
}

.proyectos__body { display: flex; flex-direction: column; gap: 40px; }
.proyectos__list { display: flex; flex-direction: column; gap: 32px; }

.card--wide { flex: none; max-width: none; }
.card--wide .card__media { aspect-ratio: 358 / 327; }
.card--wide:focus-visible { outline-color: var(--in-dark); }

.btn {
  height: 50px;
  border-radius: 24px;
  background: var(--in-dark);
  color: var(--in-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 600ms var(--ease), transform 600ms var(--ease);
}

.btn svg { width: 14px; height: 14px; display: block; transition: transform 600ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 1px solid var(--in-dark); outline-offset: 3px; }

@media (hover: hover) {
  .btn:hover { background-color: #000000; }
  .btn:hover svg { transform: translateX(4px); }
}

/* ━━━━━━━━━━ SERVICIOS ━━━━━━━━━━ */
.servicios {
  background: var(--in-dark);
  color: var(--in-light);
  padding: 80px 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.servicios__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--in-light);
}

.servicios__lead {
  margin: 16px 0 0;
  max-width: 328px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--in-light);
}

.acc { display: flex; flex-direction: column; gap: 16px; }
/* En celular las columnas no existen: los ítems quedan en una sola lista */
.acc__col { display: contents; }

.acc__item {
  border-radius: 8px;
  background: var(--in-light);
  color: var(--in-dark);
  overflow: hidden;
}

.acc__head {
  appearance: none;
  border: 0;
  margin: 0;
  width: 100%;
  min-height: 64px;
  padding: 16px 32px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 900ms var(--ease);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--in-dark);
}

.acc__icon { width: 32px; height: 32px; flex: none; display: block; transition: transform 900ms var(--ease), opacity 600ms var(--ease); }
.acc__v { transform-origin: 16px 16px; transform-box: view-box; transition: transform 900ms var(--ease); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 1000ms var(--ease);
}

.acc__inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

.acc__body { padding: 16px 32px; }

.acc__hook, .acc__text {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--in-dark);
}

.acc__hook { font-weight: 600; margin-bottom: 21px; }
.acc__text { font-weight: 400; }

.acc__cta {
  min-height: 56px;
  padding: 16px 32px;
  border-top: 1px solid var(--in-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--in-dark);
  -webkit-tap-highlight-color: transparent;
}

.acc__cta svg { width: 24px; height: 24px; flex: none; transition: transform 600ms var(--ease); }

.acc__item.is-open .acc__head { border-bottom-color: var(--in-dark); }
.acc__item.is-open .acc__icon { transform: rotate(180deg); }
.acc__item.is-open .acc__v { transform: scaleY(0); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__item.is-open .acc__inner { opacity: 1; transition: opacity 800ms var(--ease) 150ms; }

.acc__head:focus-visible, .acc__cta:focus-visible { outline: 1px solid var(--in-dark); outline-offset: -4px; }

@media (hover: hover) {
  .acc__cta:hover svg { transform: translateX(3px); }
  .acc__head:hover .acc__icon { opacity: 0.7; }
}

/* ━━━━━━━━━━ PROCESO ━━━━━━━━━━ */
.proceso {
  background: var(--in-light);
  color: var(--in-dark);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.proceso__head { padding: 0 16px; }

.proceso__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0;
}

.proceso__lead {
  margin: 16px 0 0;
  max-width: 328px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
}

.ptrack {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  padding: 4px 16px 24px;
  margin: -4px 0 -24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ptrack::-webkit-scrollbar { display: none; }

.pcard {
  flex: 0 0 calc(100% - 62px);
  max-width: 328px;
  min-height: 269px;
  scroll-snap-align: start;
  padding: 40px 24px 32px;
  border-radius: 8px;
  background: var(--in-light);
  box-shadow: 0 8px 24px rgba(30, 30, 30, 0.08), 0 1px 3px rgba(30, 30, 30, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pcard svg { width: 48px; height: 48px; flex: none; }

.pcard__title {
  margin: 32px 0 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: 0;
}

.pcard__text {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
}

.steps { padding: 0 16px; }
.steps__row { position: relative; display: flex; justify-content: space-between; align-items: center; }
.steps__line { position: absolute; left: 16px; right: 16px; top: 50%; height: 1px; background: var(--in-dark); }

.steps__dot {
  position: relative;
  appearance: none;
  margin: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--in-dark);
  background: var(--in-light);
  color: var(--in-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 700ms var(--ease), color 700ms var(--ease), transform 700ms var(--ease);
}

/* Área táctil de 44px sin cambiar el tamaño visual */
.steps__dot::before { content: ""; position: absolute; inset: -6px; }

.steps__check { width: 16px; height: 16px; display: none; }
.steps__dot.is-done .steps__check { display: block; }
.steps__dot.is-done .steps__num { display: none; }
.steps__dot.is-active { background: var(--in-dark); color: var(--in-light); }
.steps__dot:focus-visible { outline: 1px solid var(--in-dark); outline-offset: 3px; }

@media (hover: hover) {
  .steps__dot:hover { transform: scale(1.08); }
}

/* ━━━━━━━━━━ LOGOS DE CLIENTES ━━━━━━━━━━ */
.logos {
  background: #FFFFFF;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.logos__label {
  margin: 0;
  padding: 0 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(30, 30, 30, 0.6);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding-right: 48px;
  animation: in-marquee 70s linear infinite;
}

.marquee__track img {
  height: 32px;
  width: auto;
  max-width: none;
  flex: none;
  display: block;
}

@keyframes in-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* ━━━━━━━━━━ CONTACTO + FOOTER ━━━━━━━━━━ */
.contacto {
  position: relative;
  overflow: hidden;
  background: #0C0C0C;
  color: var(--in-light);
  padding: 80px 16px 16px;
  display: flex;
  flex-direction: column;
}

.contacto__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.72);
}

/* Funde la foto hacia el negro para que los datos se lean siempre */
.contacto__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 12, 12, 0.2) 0%, rgba(12, 12, 12, 0) 35%, rgba(12, 12, 12, 0.4) 65%, #0C0C0C 95%);
}

.contacto .fog { z-index: 0; }
.contacto__content { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }

.contacto__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0;
}

.contacto__lead {
  margin: 16px 0 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0;
}

.contacto__lead strong { font-weight: 700; }

.clist { margin: 80px 0 0; padding: 0; list-style: none; }

.clist__row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.clist__label {
  display: block;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clist__value {
  position: relative;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0;
  color: var(--in-light);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Subrayado que crece al pasar el mouse */
.clist__value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--in-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}

.clist__social { display: flex; gap: 8px; }

.clist__icon {
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.clist__icon img { width: 24px; height: 24px; display: block; transition: transform 600ms var(--ease); }

.clist__value:focus-visible, .clist__icon:focus-visible { outline: 1px solid var(--in-light); outline-offset: 4px; }

@media (hover: hover) {
  .clist__value:hover::after { transform: scaleX(1); }
  .clist__icon:hover img { transform: scale(1.12); }
}

.footer {
  padding-top: 80px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0;
  color: rgba(245, 245, 245, 0.7);
}

.footer p { margin: 0; }

/* ━━━━━━━━━━ SUBPÁGINAS: listado de proyectos ━━━━━━━━━━ */
button.btn { width: 100%; border: 0; cursor: pointer; }
.btn[hidden] { display: none; }
.proyectos--page { padding-top: 80px; }

/* ━━━━━━━━━━ SUBPÁGINAS: proyecto individual (tipo Behance) ━━━━━━━━━━ */
.proyecto {
  background: var(--in-light);
  color: var(--in-dark);
  padding: 80px 0 0;
}
.proyecto__head {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proyecto__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -12px 0 0 -4px;
  padding: 0 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: rgba(30, 30, 30, 0.6);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 600ms var(--ease);
}
.proyecto__back svg { width: 14px; height: 14px; display: block; transition: transform 600ms var(--ease); }
.proyecto__back:focus-visible { outline: 1px solid var(--in-dark); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) {
  .proyecto__back:hover { color: var(--in-dark); }
  .proyecto__back:hover svg { transform: translateX(-4px); }
}
.proyecto__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0;
}
.proyecto__details {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
}
/* Imágenes a todo el ancho, pegadas una debajo de la otra */
.gallery { margin-top: 40px; display: flex; flex-direction: column; }
.gallery__img { display: block; width: 100%; height: auto; min-height: 240px; background: #E6E6E6; }
.gallery__img.is-loaded { min-height: 0; background: none; }
.proyecto__next { padding: 40px 16px 80px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }

/* Páginas de rubro (Explorar) */
.proyecto__lead {
  margin: 0;
  max-width: 328px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: rgba(30, 30, 30, 0.8);
}
.proyecto__more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: rgba(30, 30, 30, 0.6);
  text-decoration: none;
  transition: color 600ms var(--ease);
}
.proyecto__more svg { width: 14px; height: 14px; display: block; transition: transform 600ms var(--ease); }
.proyecto__more:focus-visible { outline: 1px solid var(--in-dark); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) {
  .proyecto__more:hover { color: var(--in-dark); }
  .proyecto__more:hover svg { transform: translateX(4px); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ESCRITORIO (768 px en adelante)
   Fondo a todo el ancho, contenido en una columna de 800 px centrada.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (min-width: 768px) {
  :root {
    --wrap: 800px;
    --gutter: max(32px, calc((100% - var(--wrap)) / 2));
  }

  /* ── Navegación arriba ── */
  .in-nav {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--wrap), calc(100% - 64px));
    height: 48px;
    padding: 0 24px;
    border-radius: 24px;
    background: rgba(30, 30, 30, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    z-index: 1000;
    box-shadow: inset 0 0 0 1px rgba(245, 245, 245, 0.08);
    transition: background-color 700ms var(--ease);
  }
  .in-nav.is-on-light { background: rgba(30, 30, 30, 0.88); }

  .in-nav__item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    text-decoration: none;
    color: var(--in-light);
    opacity: 0.8;
    transition: opacity 600ms var(--ease);
  }
  .in-nav__icon { width: 14px; height: 14px; display: block; transition: transform 600ms var(--ease); }
  .in-nav__text { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
  .in-nav__label {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: var(--in-light);
    white-space: nowrap;
  }
  .in-nav__line {
    display: block;
    height: 1px;
    background: var(--in-light);
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left;
    transition: transform 700ms var(--ease), opacity 700ms var(--ease);
  }
  .in-nav__item[aria-current="page"] { opacity: 1; }
  .in-nav__item[aria-current="page"] .in-nav__line { transform: scaleX(1); opacity: 1; }
  .in-nav__item:focus-visible { outline: 1px solid var(--in-light); outline-offset: 4px; border-radius: 6px; }

  .in-nav__core { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .in-nav__core svg { width: 32px; height: 32px; display: block; transition: transform 600ms var(--ease); }
  .in-nav__core:focus-visible { outline: 1px solid var(--in-light); outline-offset: 2px; border-radius: 50%; }

  @media (hover: hover) {
    .in-nav__item:hover { opacity: 1; }
    .in-nav__item:hover .in-nav__line { transform: scaleX(1); opacity: 0.5; }
    .in-nav__item[aria-current="page"]:hover .in-nav__line { opacity: 1; }
    .in-nav__core:hover svg { transform: scale(1.08) rotate(-8deg); }
  }

  /* ── Tipografía de secciones ── */
  .explorar__title, .proyectos__title, .servicios__title, .proceso__title, .contacto__title, .proyecto__title {
    font-size: 48px;
  }
  .explorar__lead, .proyectos__lead, .servicios__lead, .proceso__lead {
    max-width: none;
    margin-top: 24px;
    font-size: 20px;
  }

  /* ── Hero ── */
  .hero { background: #0C0C0C; }
  .hero__title {
    top: 38%;
    left: var(--gutter);
    right: var(--gutter);
    font-size: 72px;
    color: var(--in-light);
  }
  .hero::after { height: 120px; }
  /* La foto de escritorio ya trae su niebla: la animada va más suave para no lavar la imagen */
  .hero .fog__layer--back { opacity: 0.3; }
  .hero .fog__layer--front { opacity: 0.25; }

  /* ── Explorar ── */
  .explorar { padding: 120px 0; gap: 80px; }
  .explorar__head { padding: 0 var(--gutter); gap: 0; }
  .cards {
    margin: 0 var(--gutter);
    padding: 0;
    scroll-padding-left: 0;
    cursor: grab;
  }
  .cards.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .cards.is-dragging .card { pointer-events: none; }
  .card { flex: 0 0 298px; }
  .dots__dot { cursor: pointer; }

  /* ── Proyectos ── */
  .proyectos { padding: 120px var(--gutter); gap: 80px; }
  .proyectos__body { align-items: center; gap: 80px; }
  .proyectos__list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .card--wide .card__media { aspect-ratio: 392 / 327; }

  .btn, button.btn {
    width: auto;
    align-self: center;
    padding: 0 36px;
    height: 48px;
    font-weight: 600;
  }

  /* ── Servicios ── */
  .servicios { padding: 120px var(--gutter); gap: 80px; }
  /* Dos columnas independientes: al abrir un servicio, la otra columna no se mueve */
  .acc { flex-direction: row; align-items: flex-start; gap: 16px; }
  .acc__col { display: flex; flex-direction: column; gap: 32px; flex: 1 1 0; min-width: 0; }
  .acc__head { font-size: 16px; }

  /* ── Proceso ── */
  .proceso { padding: 120px var(--gutter); gap: 80px; }
  .proceso__head { padding: 0; }
  .ptrack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 16px;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .pcard {
    max-width: none;
    min-height: 282px;
    padding: 40px 32px;
    box-shadow: 0 4px 6px rgba(30, 30, 30, 0.10), 0 1px 3px rgba(30, 30, 30, 0.10);
  }
  .pcard__text { font-size: 20px; }
  .steps { display: none; }

  /* ── Logos ── */
  .logos { padding: 80px 0; gap: 40px; }
  .logos__label { padding: 0 var(--gutter); font-size: 20px; }
  .marquee { margin: 0 var(--gutter); }

  /* ── Contacto + footer ── */
  .contacto { padding: 120px var(--gutter) 24px; }
  .contacto__bg { object-position: center top; filter: none; }
  .contacto__title { font-size: 48px; }
  .clist__label { font-size: 16px; }
  .footer {
    padding-top: 80px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 6px;
    font-size: 14px;
    text-align: center;
  }
  .footer p + p::before { content: "/ "; }

  /* ── Subpáginas ── */
  .proyectos--page { padding-top: 208px; }
  .proyecto { padding: 208px var(--gutter) 0; }
  .proyecto__head { padding: 0; }
  .gallery { margin-top: 80px; }
  .proyecto__next { padding: 80px 0 120px; align-items: center; gap: 24px; }
  .proyecto__lead { max-width: 680px; font-size: 20px; }
}

/* Números de página del listado (aparecen solo con más de 12 proyectos) */
.paginas { display: flex; justify-content: center; align-items: center; gap: 8px; }
.paginas[hidden] { display: none; }
.paginas__item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(30, 30, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--in-dark);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 600ms var(--ease), color 600ms var(--ease), border-color 600ms var(--ease);
}
.paginas__item svg { width: 14px; height: 14px; }
.paginas__item--arrow { border-color: transparent; }
.paginas__item[aria-current="page"] { background: var(--in-dark); border-color: var(--in-dark); color: var(--in-light); }
.paginas__item:focus-visible { outline: 1px solid var(--in-dark); outline-offset: 3px; }
@media (hover: hover) {
  .paginas__item:not([aria-current="page"]):hover { border-color: var(--in-dark); }
}

/* ━━━━━━━━━━ Cards con volumen: inclinación 3D sutil y brillo (proyectos y proceso) ━━━━━━━━━━
   Compu: siguen al mouse. Celular: se inclinan apenas con el scroll y al tocarlas,
   y una luz suave las recorre al pasar por el centro de la pantalla. */
.card--wide, .pcard { position: relative; --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --glow: 0; }
.card--wide::after, .pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%);
  opacity: var(--glow);
  transition: opacity 700ms var(--ease);
}
/* En las cards claras de Proceso la luz es blanca pura, para que se note sobre el gris claro */
.pcard::after { z-index: 0; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%); }
/* La luz queda detrás del ícono y el texto: ilumina la card sin lavar la lectura */
.pcard > * { position: relative; z-index: 1; }

.card--wide.is-tilt, .pcard.is-tilt {
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity 1400ms var(--ease), filter 1400ms var(--ease), transform 300ms var(--ease), box-shadow 700ms var(--ease);
}
.card--wide.is-tilt-out, .pcard.is-tilt-out {
  transition: opacity 1400ms var(--ease), filter 1400ms var(--ease), transform 900ms var(--ease), box-shadow 900ms var(--ease);
}
/* Celular: sigue al scroll, sin retraso */
.card--wide.is-live, .pcard.is-live {
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity 1400ms var(--ease), filter 1400ms var(--ease), transform 160ms linear;
}
.card--wide.is-live::after, .pcard.is-live::after { transition: opacity 160ms linear; }

@media (hover: hover) and (pointer: fine) {
  .card--wide.is-tilt { box-shadow: 0 24px 48px rgba(30, 30, 30, 0.16); }
  .pcard.is-tilt { box-shadow: 0 16px 40px rgba(30, 30, 30, 0.14), 0 2px 6px rgba(30, 30, 30, 0.10); }
  .card--wide.is-tilt.is-tilt-out { box-shadow: 0 0 0 rgba(30, 30, 30, 0); }
  .pcard.is-tilt.is-tilt-out { box-shadow: 0 4px 6px rgba(30, 30, 30, 0.10), 0 1px 3px rgba(30, 30, 30, 0.10); }
}

@media (prefers-reduced-motion: reduce) {
  /* Con "reducir movimiento" activado: sin desplazamiento ni blur, solo un fundido suave */
  .reveal { filter: none; transform: none; transition: opacity 900ms ease; }
  .reveal.is-in { opacity: 1; }
  .hero__photo { animation: none; }
  .card__img, .card__arrow, .dots__dot, .btn, .btn svg, .acc__head, .acc__v, .acc__panel, .acc__inner, .acc__cta svg, .steps__dot, .clist__value::after, .clist__icon img { transition: none; }
  .in-nav__item, .in-nav__icon, .in-nav__line, .in-nav__core svg { transition: none; }
}