/* ============================================================
   HOMEPAGE — HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: 75vh;
  min-height: 560px;
  overflow: hidden;
  padding-top: 147px;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 490px 1fr;
  gap: 10px;
  padding: 0 var(--gutter);
  align-items: end;
  padding-bottom: 90px;
  opacity: 0;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: all;
}

/* Transición: imágenes (thumb + principal) se revelan de izq → der */
.hero-slide__image img,
.hero-slide__thumb img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0s;
}

.hero-slide.is-active .hero-slide__image img,
.hero-slide.is-active .hero-slide__thumb img {
  clip-path: inset(0 0% 0 0);
  transition: clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Info columna izquierda */
.hero-slide__info {
  padding-bottom: 0;
  z-index: 2;
}

/* ── Estado base: título y categoría ocultos ── */
.hero-slide__title {
  opacity: 0;
  transform: translateX(16px);   /* empieza desplazado a la derecha */
  transition: opacity 0s, transform 0s;
}

.hero-slide__category {
  opacity: 0;
  transform: translateX(-12px);  /* empieza desplazado a la izquierda */
  transition: opacity 0s, transform 0s;
}

/* ── Slide activa: título entra desde la derecha moviéndose a la izquierda ── */
.hero-slide.is-active .hero-slide__title {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.45s ease 0.32s, transform 0.45s ease 0.32s;
}

/* ── Slide activa: categoría entra desde la izquierda moviéndose a la derecha ── */
.hero-slide.is-active .hero-slide__category {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.45s ease 0.38s, transform 0.45s ease 0.38s;
}

/* ── Slide saliendo: título sale hacia la derecha ── */
.hero-slide.is-leaving .hero-slide__title {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── Slide saliendo: categoría sale hacia la izquierda ── */
.hero-slide.is-leaving .hero-slide__category {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-slide__title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-slide__category {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 50px;
}

/* Thumbnail */
.hero-slide__thumb {
  width: 240px;
  height: 190px;
  overflow: hidden;
  position: relative;
}

.hero-slide__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Imagen principal */
.hero-slide__image {
  position: relative;
  height: calc(75vh - 200px);
  overflow: hidden;
}

.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controles hero */
.hero-controls {
  position: absolute;
  bottom: 0px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.hero-counter {
  font-size: 0.75rem;
  font-weight: 300;
  color: #4a4a4a;
  letter-spacing: 0.04em;
}

.hero-arrows {
  display: flex;
  gap: 12px;
}

/* .hero-arrow hereda todo de .site-arrow en style.css */
.hero-arrow {
  padding: 6px 0;
}

/* ============================================================
   SECCIÓN NOSOTROS (HOME)
   ============================================================ */
.home-about {
  padding: 7rem var(--gutter) 9rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-about__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.home-about__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2125rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease);
}

.home-about__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

.home-about__link:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
}

.home-about__link:hover { gap: 14px; }

.home-about__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.home-about__link:hover .home-about__arrow {
  transform: translateX(6px);
}

.home-about__image {
  overflow: hidden;
}

.home-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s, transform 0.6s var(--ease);
}

.home-about__image:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ============================================================
   SECCIÓN PROYECTO DESTACADO
   ============================================================ */
.home-featured {
  padding: 0 var(--gutter) 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
}

.home-featured__header {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding: 48px 0 0 64px;
}

.home-featured__label {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: right;
}

.home-featured__label span { color: var(--color-text); font-weight: 700; }

.home-featured__arrows {
  display: flex;
  gap: 10px;
}

/* .featured-arrow hereda todo de .site-arrow en style.css */

/* Slide del proyecto destacado */
.featured-slide {
  display: none;
}

.featured-slide.is-active {
  display: grid;
  grid-template-columns: 4fr 2fr;
  grid-column: 1 / -1;
  grid-row: 1;
  gap: 0;
  align-items: end;
}

.featured-slide__image {
  position: relative;
  overflow: hidden;
}

.featured-slide__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s, transform 0.6s var(--ease);
}

.featured-slide.is-active .featured-slide__image img {
  animation: featured-img-in 0.9s var(--ease) forwards;
}

.featured-slide__image:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.featured-slide__info {
  background: var(--color-white);
  padding: 32px 36px;
  margin-left: -60px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  max-width: 380px;
}

.featured-slide.is-active .featured-slide__info {
  animation: featured-info-in 0.6s ease 0.4s both;
}

@keyframes featured-img-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

@keyframes featured-info-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.featured-slide__link {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  display: block;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}

.featured-slide__link span {
  font-weight: 600;
}

.featured-slide__link:hover { opacity: 0.6; }

.featured-slide__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 6px;      /* más cerca de la categoría */
  line-height: 1.2;
}

.featured-slide__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-slide__cat {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.featured-slide__area {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ============================================================
   SECCIÓN MAPA
   ============================================================ */
.home-map {
  background: var(--color-bg);
  padding: 0 var(--gutter) var(--space-xl);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  align-items: center;
}

.home-map__left {
  position: relative;
  z-index: 2;
  padding-left: var(--gutter);
  padding-right: 40px;
  margin-right: -60px;
  left: 130px;
  top: 150px;
}

.home-map__left .label {
  margin-bottom: 2.5rem;
  display: block;
}

.home-map__left p {
  font-size: 1.2375rem;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 3rem;
	font-weight: 500;
}

/* Stats */
.home-stats {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.stat-item {
  flex: 0 0 auto;
  padding-right: 2rem;
  border-right: 1px solid var(--color-border);
  margin-right: 2rem;
}

.stat-item:last-child {
  border-right: none;
  margin-right: 0;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 28px;
}

.stat-label {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 0.8;
}

.stat-label strong {
  display: block;
  color: var(--color-text);
  font-weight: 700;
}

/* Mapa SVG */
.map-container {
  position: relative;
  padding-top: 52%;   /* controla el alto: height = 52% del ancho del contenedor */
  overflow: hidden;
}

.map-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;   /* SVG se estira exactamente al contenedor → pines alineados */
  opacity: 0.65;
  /* Zoom centrado en Colombia + Centroamérica.
     Los pines se reposicionan por PHP para coincidir con este zoom. */
  transform: scale(2.4);
  transform-origin: 14% 55%;
}

/* Botones zoom */
.map-zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.map-zoom-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  user-select: none;
}

.map-zoom-btn:hover:not(:disabled) {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.map-zoom-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

:root { --pin-color: var(--color-text); }

.map-pin__dot {
  width: 11px;
  height: 11px;
  background: var(--pin-color);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.map-pin:hover .map-pin__dot {
  transform: scale(1.35);
}

/* Anillo sonar 1 */
.map-pin__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pin-color);
  opacity: 0;
  animation: map-sonar 2.4s ease-out infinite;
}

/* Anillo sonar 2 — desfasado */
.map-pin__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pin-color);
  opacity: 0;
  animation: map-sonar 2.4s ease-out 1.1s infinite;
}

@keyframes map-sonar {
  0%   { transform: scale(1);   opacity: 0.5; }
  80%  { transform: scale(3.2); opacity: 0;   }
  100% { transform: scale(3.2); opacity: 0;   }
}

/* Tooltip */
.map-pin__tooltip {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--color-white);
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  border-radius: 2px;
}

/* Triángulo inferior */
.map-pin__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-white);
}

.map-pin__tooltip strong {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--color-text);
}

.map-pin__tooltip span {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Visible en hover O al hacer click (.is-open) */
.map-pin:hover .map-pin__tooltip,
.map-pin.is-open .map-pin__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Cluster pin ── */
.map-cluster {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.map-cluster__dot {
  width: 22px;
  height: 22px;
  background: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.map-cluster__dot span {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1;
  letter-spacing: 0;
}

.map-cluster:hover .map-cluster__dot {
  transform: scale(1.15);
}

/* Anillo sonar igual que los pins individuales */
.map-cluster__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-text);
  opacity: 0;
  animation: map-sonar 2.4s ease-out infinite;
}

/* Modal del cluster */
.map-cluster__modal {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--color-white);
  min-width: 190px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Triángulo */
.map-cluster__modal::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-white);
}

.map-cluster.is-open .map-cluster__modal {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.map-cluster__modal-inner {
  padding: 6px 0;
}

.map-cluster__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
}

.map-cluster__row:last-child {
  border-bottom: none;
}

.map-cluster__dept-label {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
	padding: 10px 15px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.map-cluster__city {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.map-cluster__count {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ============================================================
   SECCIÓN CATEGORÍAS (ACORDEÓN)
   ============================================================ */
/* ============================================================
   FULLSCREEN TABS CATEGORÍAS
   ============================================================ */
.home-fullscreen-tabs {
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: var(--color-bg);
  padding-bottom: 65px;
}

.hft-inner {
  display: flex;
  height: 100%;
}

/* Cada tab */
.hft-tab {
  position: relative;
  height: 100%;
  flex: 0 0 155px;
  overflow: hidden;
  transition: flex 0.8s var(--ease);
  cursor: pointer;
}

.hft-tab.is-active {
  flex: 1 1 auto;
  cursor: default;
}

/* Ícono + (::before = horizontal, ::after = vertical) */
.hft-tab::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  position: absolute;
  right: 20px;
  top: 26px;
  background-color: var(--color-text);
  clip-path: inset(-1px 0px);
  transition: clip-path 0.35s ease, opacity 0.35s ease;
  z-index: 10;
}
.hft-tab::after {
  content: '';
  display: block;
  width: 1px;
  height: 22px;
  position: absolute;
  right: 31px;
  top: 15px;
  background-color: var(--color-text);
  opacity: 1;
  transition: opacity 0.35s ease;
  z-index: 10;
}
/* Hover en inactiva: el trazo horizontal se retrae → simula – */
.hft-tab:not(.is-active):hover::before {
  clip-path: inset(-1px 6px -1px 8px);
}
/* Activa: solo queda el – (desaparece el trazo vertical) */
.hft-tab.is-active::after {
  opacity: 0;
}

/* Botón cerrar — se superpone sobre el – cuando el tab está activo */
.hft-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  padding: 0;
}

.hft-tab.is-active .hft-close-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Sin tab activo: espacios iguales */
.hft-inner.is-closed .hft-tab {
  flex: 1 1 0;
}

/* Wrapper interno */
.hft-tab__wrapper {
  position: relative;
  height: 100%;
  display: flex;
}

/* Título lateral */
.hft-tab__title {
  display: flex;
  width: 155px;
  min-width: 155px;
  align-items: flex-end;
  justify-content: flex-start;
  border-left: 1px solid var(--color-border);
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
}

/* Línea negra que crece al activar */
.hft-tab__title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 100%;
  background-color: var(--color-text);
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 0.5s ease-out;
}
.hft-tab.is-active .hft-tab__title::after {
  transform: scaleY(1);
}

/* Texto vertical rotado 270° */
.hft-tab__title-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text);
  display: block;
  white-space: nowrap;
  transform: rotate(270deg);
  transform-origin: 0% 5%;
  position: relative;
  left: 34px;
  bottom: 20px;
}

/* Contenido: imagen + texto */
.hft-tab__content {
  display: flex;
  height: 100%;
  margin-left: 155px;
  overflow: hidden;
}

/* Imagen vertical */
.hft-tab__image {
  width: 240px;
  flex-shrink: 0;
  overflow: hidden;
}
.hft-tab__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: inset(0 100% 0 0);
}
.hft-tab.is-entering .hft-tab__image img {
  animation: hft-reveal 0.9s cubic-bezier(0.57, 0.18, 0, 0.92) 0.1s forwards;
}
@keyframes hft-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* Área de texto */
.hft-tab__text {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}
.hft-tab.is-entering .hft-tab__text {
  opacity: 1;
  transform: translateY(0);
}
.hft-tab__text p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.75rem;
  max-width: 400px;
  font-weight: 400;
}

/* Link Ver Proyectos */
.hft-tab__link {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 3px;
  align-self: flex-start;
}
.hft-tab__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.hft-tab__link:hover::after {
  transform: scaleX(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .home-fullscreen-tabs { height: auto; min-height: auto; }
  .hft-inner { flex-direction: column; }
  .hft-tab { flex: 0 0 auto; }
  .hft-tab::before, .hft-tab::after { display: none; }
  .hft-tab__wrapper { flex-direction: column; }
  .hft-tab__title {
    width: 100%;
    min-width: auto;
    height: 72px;
    position: relative;
    border-left: none;
    border-top: 1px solid var(--color-border);
    align-items: center;
    padding: 0 24px;
  }
  .hft-tab__title::after { display: none; }
  .hft-tab__title-text {
    transform: none;
    transform-origin: unset;
    position: static;
    left: auto;
    bottom: auto;
    font-size: 1.5rem;
  }
  .hft-tab__content {
    margin-left: 0;
    flex-direction: column;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s var(--ease);
  }
  .hft-tab.is-active .hft-tab__content { max-height: 600px; }
  .hft-tab__image { width: 100%; height: 260px; }
  .hft-tab__text { padding: 32px 24px; opacity: 1; transform: none; transition: none; }
}


@media (min-width: 1260px) and (max-width: 1500px) {
  .home-map__left { left: 70px; top: 50px; }
  .hft-tab        { flex: 0 0 100px; }
}

@media (min-width: 1500px) {
  .home-map__left { top: 80px; }
}

/* ============================================================
   PANTALLAS CORTAS / MUY HORIZONTALES (landscape laptop, tablet)
   Altura fija para que el layout no se comprima — el usuario
   hace scroll si el viewport es más bajo que el slider.
   ============================================================ */
@media (max-height: 800px) and (min-width: 601px) {
  .hero-slider       { height: 750px; min-height: 750px; }
  .hero-slide__image { height: 500px; }
}

@media (max-width: 768px) {
  .home-about { grid-template-columns: 1fr; gap: 40px; }
  .home-map { grid-template-columns: 1fr; gap: 40px; }
  .home-map__left { left: 0; top: 0; margin-right: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .featured-slide.is-active { grid-template-columns: 1fr; }
  .featured-slide__info { margin-left: 0; margin-bottom: 0; }
  .home-stats { flex-wrap: wrap; }
}

/* ============================================================
   MÓVIL ≤ 600px — padding global 20px + hero single-column
   ============================================================ */
@media (max-width: 600px) {

  /* ── Gutter global 20px ── */
  :root { --gutter: 20px; }

  /* ── Hero slider ──
     El track (.hero-slider__track) tiene height:100% del slider.
     Reducimos el slider a 500px y quitamos padding al header.
  ── */
  .hero-slider {
    height: 500px;
    min-height: 460px;
    padding-top: 96px;       /* header móvil ~96px */
  }

  /* Single column: info arriba, foto abajo */
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 20px 20px 44px; /* 44px de espacio para los controles */
    gap: 12px;
    align-items: start;
  }

  /* Ocultar thumbnail (no hay espacio) */
  .hero-slide__thumb { display: none; }

  /* Título y categoría más compactos */
  .hero-slide__title    { font-size: 1.25rem; margin-bottom: 4px; }
  .hero-slide__category { margin-bottom: 0; }

  /* Foto: más cuadrada y ancha */
  .hero-slide__image {
    height: 280px;
    min-height: auto;
    width: 100%;
  }

  /* Controles: ya usan var(--gutter) → quedan en 20px automáticamente */

  /* ── Secciones: padding lateral + vertical a la mitad ── */
  .home-about   { padding: 3.5rem 20px 4.5rem; gap: 20px; }
  .home-featured { padding-left: 20px; padding-right: 20px; }
  .home-map     { padding-bottom: 3.5rem; gap: 20px; }
  .home-fullscreen-tabs { padding-bottom: 32px; }
  .nos-marcas   { padding-top: 30px; padding-bottom: 30px; }

  /* Stats del mapa en columna */
  .home-stats { gap: 0; }
  .stat-item  { padding-right: 1rem; margin-right: 1rem; }

  /* ── Imágenes del hero: opacity en lugar de clip-path ──
     El clip-path animado en iOS/Safari causa pixelación/blurriness
     en la composición GPU. Se reemplaza por fade simple.
  ── */
  .hero-slide__image img {
    clip-path: none !important;
    opacity: 0;
    transition: opacity 0s;
  }
  .hero-slide.is-active .hero-slide__image img {
    opacity: 1;
    transition: opacity 0.8s ease !important;
  }
  .hero-slide.is-leaving .hero-slide__image img {
    opacity: 0;
    transition: opacity 0.2s ease !important;
  }
}

/* ── Pantallas medianas 1200–1500px: textos grandes –20% ── */
@media (min-width: 1200px) and (max-width: 1500px) {
  .home-about__text h2 { font-size: clamp(1.4rem, 2.8vw, 2.2rem); }
  .stat-number         { font-size: clamp(2rem, 3.2vw, 2.6rem); }
}
