/* ============================================================
   CHD CONSTRUCCIONES - HOME
   Solo se carga desde index.php, después de chd-base.css (tokens,
   header, selector de tema, footer, chatbot, contacto y el sistema
   de apariciones). Aquí va únicamente lo propio de la Home.

   - Telón de apertura solo en la primera visita de la sesión
     (html.intro-seen lo omite).
   - Parallax del hero con CSS scroll-driven.
   - Servicios: imagen fija que cambia por bloque en escritorio;
     foto propia por bloque en tablet y móvil.
   ============================================================ */

.page-home .home { background: var(--h-bg); transition: background-color 0.3s; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.ch-hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  color: var(--h-on-photo);
  background: #0E1B14;
  overflow: hidden;
  isolation: isolate;
}
.ch-hero__sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 48px;
  pointer-events: none;
}
.ch-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.ch-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.ch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 27, 20, 0.5) 0%, rgba(14, 27, 20, 0) 20%),
    linear-gradient(0deg, rgba(14, 27, 20, 0.82) 0%, rgba(14, 27, 20, 0.34) 40%, rgba(14, 27, 20, 0) 66%),
    radial-gradient(120% 90% at 0% 100%, rgba(14, 27, 20, 0.45) 0%, rgba(14, 27, 20, 0) 60%);
}
.ch-hero__inner {
  width: 100%;
  padding-top: 96px;
  padding-bottom: clamp(72px, 9vw, 128px);
}
.ch-hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 17ch;
  text-wrap: balance;
}
/* Primera línea del h1: la frase que busca la gente */
.ch-hero__eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  color: rgba(250, 250, 248, 0.86);
}
.ch-hero__lead {
  margin-top: 24px;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(250, 250, 248, 0.86);
  text-wrap: pretty;
}
.ch-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.ch-hero__actions .ch-link,
.ch-hero__actions .ch-link:hover { color: var(--h-on-photo); }

/* ══════════════════════════════════════════
   NOSOTROS: declaración + cifras + servicios
══════════════════════════════════════════ */
.ch-about { padding-block: var(--h-space-t) var(--h-space-b); }

.ch-statement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 40px;
}
.ch-statement .ch-h2 {
  grid-column: 1 / 10;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  letter-spacing: -0.04em;
}
.ch-statement .ch-lead { grid-column: 6 / 13; }

.ch-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 32px;
  border-top: 1px solid var(--h-line);
}
.ch-figure { display: flex; flex-direction: column; gap: 10px; }
.ch-figure dt {
  order: 2;
  font-size: 15px;
  color: var(--h-muted);
}
.ch-figure dd {
  order: 1;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--h-heading);
}

.ch-services {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
  margin-top: clamp(96px, 12vw, 160px);
}
.ch-services__figure {
  grid-column: 1 / 7;
  position: sticky;
  top: 112px;
  height: min(calc(100vh - 224px), 700px);
  height: min(calc(100dvh - 224px), 700px);
  margin: 0;
  border-radius: var(--h-r-media);
  overflow: hidden;
  background: var(--h-tint);
}
.ch-services__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--h-ease-out), transform 1.2s var(--h-ease-out);
}
.ch-services__figure img.is-active { opacity: 1; transform: none; }
.ch-services__list {
  grid-column: 8 / 13;
  list-style: none;
}
/* Cada bloque ocupa buena parte de la pantalla para que la imagen
   quede fija mientras se leen los tres. */
.ch-service {
  min-height: 62vh;
  min-height: 62dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}
.ch-service + .ch-service { border-top: 1px solid var(--h-line); }

/* Foto propia de cada bloque: solo en tablet y móvil, donde no hay
   imagen fija. Oculta en escritorio (y al ser lazy no se descarga). */
.ch-service__media { display: none; }
.ch-service h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--h-heading);
  margin-bottom: 12px;
}
.ch-service p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--h-text);
  max-width: 52ch;
}
.ch-service .ch-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 15px; }
.ch-service .ch-link i { font-size: 12px; }

/* ══════════════════════════════════════════
   PROYECTOS (galería por categorías)
══════════════════════════════════════════ */
.ch-projects { padding-bottom: var(--h-space-b); }
.ch-projects__head { margin-bottom: clamp(40px, 5vw, 64px); }
.ch-projects__head .ch-lead { margin-top: 20px; }

.gallery-cat-grid {
  max-width: var(--h-wrap-wide);
  margin: 0 auto;
  padding-inline: var(--h-gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(270px, 25vw, 360px));
  gap: 24px 16px;
}
.gcat-ext { grid-column: 1 / 8;  grid-row: 1 / 3; }
.gcat-coc { grid-column: 8 / 13; grid-row: 1 / 2; }
.gcat-ban { grid-column: 8 / 11; grid-row: 2 / 3; }
.gcat-pue { grid-column: 11 / 13; grid-row: 2 / 3; }
.gcat-mur { grid-column: 1 / 6;  grid-row: 3 / 4; }
.gcat-otr { grid-column: 6 / 13; grid-row: 3 / 4; }

.gcat-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--h-heading);
  font-family: var(--h-font);
  text-align: left;
  cursor: pointer;
}
.gcat-media {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  border-radius: var(--h-r-media);
  overflow: hidden;
  background: var(--h-tint);
}
.gcat-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--h-ease-out);
}
.gcat-item:hover .gcat-media img { transform: scale(1.03); }

.gcat-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.gcat-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.gcat-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--h-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gcat-meta i {
  font-size: 12px;
  color: var(--h-heading);
  transition: transform 0.3s var(--h-ease-out);
}
.gcat-item:hover .gcat-meta i { transform: translateX(4px); }
.gcat-item:focus-visible { outline: none; }
.gcat-item:focus-visible .gcat-media { outline: 2px solid var(--h-accent); outline-offset: 3px; }

/* ── Modal de categoría ── */
.gcat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(8, 12, 10, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 48px 16px;
}
.gcat-modal.open { display: flex; }

.gcat-modal-box {
  width: 100%;
  max-width: 1120px;
  background: var(--h-bg);
  border: 1px solid var(--h-line);
  border-radius: var(--h-r-media);
  overflow: hidden;
  overflow: clip;
  animation: modalIn 0.45s var(--h-ease-out) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gcat-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: var(--h-bg);
  border-bottom: 1px solid var(--h-line);
}
.gcat-modal-count {
  margin-top: 4px;
  font-size: 14px;
  color: var(--h-muted);
  font-variant-numeric: tabular-nums;
}
.gcat-modal-header h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--h-heading);
}
.gcat-modal-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--h-line);
  border-radius: var(--h-r-control);
  background: var(--h-surface);
  color: var(--h-heading);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gcat-modal-close:hover { background: var(--h-btn-bg); border-color: var(--h-btn-bg); color: var(--h-btn-fg); }

.gcat-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 32px 32px;
}
.gcat-modal-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--h-r-control);
  aspect-ratio: 4 / 3;
  background: var(--h-tint);
  cursor: zoom-in;
}
.gcat-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--h-ease-out);
}
.gcat-modal-thumb:hover img { transform: scale(1.04); }

/* ── Visor a pantalla completa (siempre oscuro: la foto manda) ── */
.gil {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(10, 16, 12, 0.95);
  align-items: center;
  justify-content: center;
}
.gil.open { display: flex; }
#gilImg {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--h-r-control);
  transition: opacity 0.18s;
}
.gil-close,
.gil-prev,
.gil-next {
  position: fixed;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 250, 248, 0.2);
  border-radius: var(--h-r-control);
  background: rgba(250, 250, 248, 0.06);
  color: var(--h-on-photo);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gil-close { top: 20px; right: 20px; }
.gil-prev, .gil-next { top: 50%; transform: translateY(-50%); }
.gil-prev { left: 20px; }
.gil-next { right: 20px; }
.gil-close:hover,
.gil-prev:hover,
.gil-next:hover { background: var(--h-on-photo); border-color: var(--h-on-photo); color: #0E1B14; }
.gil-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(250, 250, 248, 0.72);
}

/* ══════════════════════════════════════════
   CLIENTES (solo logos)
══════════════════════════════════════════ */
.ch-clients h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--h-muted);
  padding-top: 32px;
  border-top: 1px solid var(--h-line);
}
.ch-clients__logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 32px 48px;
  margin-top: 40px;
}
.ch-clients__logos li { display: flex; align-items: center; justify-content: flex-start; }
.ch-clients__logos img {
  max-height: 76px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: var(--h-logo-filter);
  opacity: 0.8;
  mix-blend-mode: var(--h-logo-blend);
  transition: opacity 0.3s;
}
.ch-clients__logos li:hover img { opacity: 1; }

/* ══════════════════════════════════════════
   IMÁGENES QUE SE DESCUBREN COMO UN TELÓN (componentes de la Home)
══════════════════════════════════════════ */
.js .page-home [data-reveal="media"] .gcat-media::after,
.js .page-home .ch-services__figure[data-reveal="media"]::after,
.js .page-home .ch-service__media[data-reveal="media"]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--h-bg);
  transform-origin: top;
  transition: transform 1.1s var(--h-ease-curtain);
  transition-delay: calc(var(--i, 0) * 90ms);
  pointer-events: none;
}
.js .page-home [data-reveal="media"].is-visible .gcat-media::after,
.js .page-home .ch-services__figure[data-reveal="media"].is-visible::after,
.js .page-home .ch-service__media[data-reveal="media"].is-visible::after { transform: scaleY(0); }

.js .page-home .ch-service__media[data-reveal="media"] img {
  transform: scale(1.12);
  transition: transform 1.4s var(--h-ease-out);
}
.js .page-home .ch-service__media[data-reveal="media"].is-visible img { transform: none; }

.js .page-home [data-reveal="media"] .gcat-media img {
  transform: scale(1.12);
  transition: transform 1.4s var(--h-ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .page-home [data-reveal="media"].is-visible .gcat-media img { transform: none; }
.js .page-home [data-reveal="media"].is-visible:hover .gcat-media img { transform: scale(1.03); transition-delay: 0s; }

.js .page-home [data-reveal="media"] .gcat-caption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--h-ease-out), transform 0.6s var(--h-ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 450ms);
}
.js .page-home [data-reveal="media"].is-visible .gcat-caption { opacity: 1; transform: none; }

/* ── Servicios: el bloque que se lee queda resaltado (solo escritorio) ── */
@media (min-width: 1025px) {
  .js .page-home .ch-service { opacity: 0.35; transition: opacity 0.5s var(--h-ease-out); }
  .js .page-home .ch-service.is-active { opacity: 1; }
}

/* ══════════════════════════════════════════
   TELÓN DE APERTURA
   Motivo: presentar la marca y descubrir la obra del hero.
   Solo en la primera visita de la sesión y nunca bloquea clics.
══════════════════════════════════════════ */
.ch-curtain { display: none; }
.js:not(.intro-seen) .ch-curtain {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  animation: curtainDone 0s linear 2.1s forwards;
}
.ch-curtain__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--h-bg);
  animation: curtainLeft 0.95s var(--h-ease-curtain) 1s forwards;
}
.ch-curtain__panel--left  { left: 0; }
.ch-curtain__panel--right { right: 0; animation-name: curtainRight; }
.ch-curtain__brand {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  animation: brandOut 0.35s ease-in 0.8s forwards;
}
.ch-curtain__brand img {
  width: min(220px, 52vw);
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: brandIn 0.6s var(--h-ease-out) 0.1s forwards;
}
.ch-curtain__logo--white { display: var(--h-show-logo-white); }
.ch-curtain__logo--dark  { display: var(--h-show-logo-dark); }
.ch-curtain__line {
  position: relative;
  width: 120px;
  height: 1px;
  margin-top: -32px;
  background: var(--h-line);
  overflow: hidden;
}
.ch-curtain__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--h-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineDraw 0.65s var(--h-ease-out) 0.2s forwards;
}
@keyframes curtainLeft  { to { transform: translateX(-100%); } }
@keyframes curtainRight { to { transform: translateX(100%); } }
@keyframes brandIn      { to { opacity: 1; transform: none; } }
@keyframes brandOut     { to { opacity: 0; transform: scale(0.98); } }
@keyframes lineDraw     { to { transform: scaleX(1); } }
@keyframes curtainDone  { to { visibility: hidden; } }

/* ── Entrada del hero (tras el telón, o de inmediato si ya se vio) ── */
.js .page-home .ch-hero__img {
  animation: heroSettle 1.8s var(--h-ease-out) var(--h-intro) both;
}
.js .page-home .ch-hero h1 .ch-wi {
  animation: wordUp 1s var(--h-ease-out) calc(var(--h-intro) + 0.2s + var(--w, 0) * 80ms) both;
}
.js .page-home .ch-hero__eyebrow {
  animation: fadeUp 0.8s var(--h-ease-out) calc(var(--h-intro) + 0.1s) both;
}
.js .page-home .ch-hero__lead {
  animation: fadeUp 0.8s var(--h-ease-out) calc(var(--h-intro) + 0.55s) both;
}
.js .page-home .ch-hero__actions {
  animation: fadeUp 0.8s var(--h-ease-out) calc(var(--h-intro) + 0.7s) both;
}
.js .page-home .contenedor-header {
  animation: fadeIn 0.8s var(--h-ease-out) calc(var(--h-intro) + 0.5s) both;
}
.js .page-home .chatbot-button {
  animation: fadeUp 0.8s var(--h-ease-out) calc(var(--h-intro) + 1s) both;
}
@keyframes heroSettle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes wordUp     { from { transform: translateY(110%); } to { transform: none; } }

/* ── Parallax del hero al hacer scroll (CSS scroll-driven, sin JS) ── */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .ch-hero__media {
      animation: heroDrift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
    .ch-hero__inner {
      animation: heroContentOut linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 65vh;
    }
  }
}
@keyframes heroDrift      { to { transform: translateY(22%); } }
@keyframes heroContentOut { to { opacity: 0; transform: translateY(-48px); } }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ch-statement .ch-h2 { grid-column: 1 / -1; }
  .ch-statement .ch-lead { grid-column: 3 / -1; }

  .ch-services { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ch-services__figure { display: none; }
  .ch-services__list { grid-column: auto; }
  .ch-service { min-height: 0; padding-block: 48px; }
  .ch-service:first-child { padding-top: 0; }
  .ch-service:last-child { padding-bottom: 0; }
  .ch-service__media {
    display: block;
    position: relative;
    margin: 0 0 28px;
    aspect-ratio: 16 / 9;
    border-radius: var(--h-r-media);
    overflow: hidden;
    background: var(--h-tint);
  }
  .ch-service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .gallery-cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(4, 300px);
  }
  .gcat-ext { grid-column: 1 / 7; grid-row: 1 / 2; }
  .gcat-coc { grid-column: 1 / 4; grid-row: 2 / 3; }
  .gcat-ban { grid-column: 4 / 7; grid-row: 2 / 3; }
  .gcat-pue { grid-column: 1 / 3; grid-row: 3 / 4; }
  .gcat-mur { grid-column: 3 / 7; grid-row: 3 / 4; }
  .gcat-otr { grid-column: 1 / 7; grid-row: 4 / 5; }

  .gcat-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 24px 28px; }
  .gcat-modal-header { padding: 20px 24px; }
}

@media (max-width: 768px) {
  .ch-hero { min-height: 88vh; min-height: 88dvh; }
  .ch-hero__inner { padding-bottom: 72px; }

  .ch-statement { grid-template-columns: minmax(0, 1fr); }
  .ch-statement .ch-h2,
  .ch-statement .ch-lead { grid-column: auto; }

  .ch-figures { gap: 16px; }
  .ch-service__media { aspect-ratio: 4 / 3; margin-bottom: 24px; }
  .ch-service { padding-block: 40px; }
  .ch-figure dt { font-size: 13px; }

  /* Galería móvil: ritmo 1-2-2-1 (destacada, dos pares, cierre) */
  .gallery-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 28px 12px;
  }
  .gcat-coc, .gcat-ban, .gcat-pue, .gcat-mur { grid-column: auto; grid-row: auto; }
  .gcat-ext, .gcat-otr { grid-column: 1 / -1; grid-row: auto; }
  .gcat-item { gap: 10px; }
  .gcat-media { flex: none; aspect-ratio: 3 / 4; }
  .gcat-ext .gcat-media { aspect-ratio: 4 / 3; }
  .gcat-otr .gcat-media { aspect-ratio: 16 / 10; }
  .gcat-caption { flex-direction: column; align-items: flex-start; gap: 2px; }
  .gcat-ext .gcat-caption,
  .gcat-otr .gcat-caption { flex-direction: row; align-items: baseline; }
  .gcat-name { font-size: 16px; line-height: 1.3; }
  .gcat-meta { font-size: 13px; }

  /* Ventana de fotos a pantalla completa con encabezado fijo */
  .gcat-modal { padding: 0; align-items: flex-start; }
  .gcat-modal-box { max-width: none; min-height: 100%; border: 0; border-radius: 0; }
  .gcat-modal-header { padding: 14px 16px; }
  .gcat-modal-count { font-size: 13px; margin-top: 2px; }
  .gcat-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px 12px 32px; }
  .gcat-modal-thumb { aspect-ratio: 1 / 1; }

  /* Visor: más espacio para la foto, controles abajo al alcance del pulgar */
  #gilImg { max-width: 94vw; max-height: 74vh; }
  .gil-close { top: 12px; right: 12px; }
  .gil-prev, .gil-next { top: auto; bottom: 20px; transform: none; }
  .gil-prev { left: 16px; }
  .gil-next { right: 16px; }
  .gil-counter { bottom: 32px; }

  .ch-clients__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 560px) {
  .ch-hero__actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .js .ch-curtain { display: none !important; }
  .js .page-home [data-reveal="media"] .gcat-media::after,
  .js .page-home .ch-services__figure[data-reveal="media"]::after,
  .js .page-home .ch-service__media[data-reveal="media"]::after { display: none; }
}
