/* Hosting Penitentes — landing v2 */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@0,400;0,700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --font-sans: "Lato", system-ui, sans-serif;
  --font-serif: "Merriweather", Georgia, serif;
  --amber: #f59e0b;
  --amber-hover: rgba(245, 158, 11, 0.8);
  --header-bg: #333333;
  --menu-muted: #a3a3a3;
  --text-body: #6a6a6a;
  --text-heading-muted: #6a6a6a;
  --box-shaded: #ececec;
  --split-text-bg: #f4f4f4;
  --split-title: #555555;
  --split-body: #777777;
  --wa: #25d366;
  --wa-hover: #1ebe5a;
  --page-pad-x: clamp(1rem, 4vw, 2.25rem);
  --content-max: 1280px;
  --dept-catalog-max: 960px;
  /* Ritmo vertical compacto pero legible (evitar cuerpo < 15px salvo notas) */
  --section-y: clamp(1.1rem, 2.6vw, 1.65rem);
  --split-y: clamp(0.75rem, 1.8vw, 1.15rem);
  --hero-min-h: clamp(220px, 38vw, 360px);
  --scroll-anchor-offset: 5.5rem;
  /* Fichas dept: alto máx. de área foto; contain = foto entera (bandas si hace falta) */
  --dept-photo-h: clamp(200px, 32vh, 300px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-anchor-offset);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  line-height: 1.55;
  color: var(--text-body);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Skip —— */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: #111;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 2000;
  border-radius: 4px;
}

.skip-link:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Header (block-header): sticky compacto; al scrollear ocupa menos altura —— */
.block-header {
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.block-header--scrolled {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.block-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem var(--page-pad-x);
  min-height: 3.75rem;
  transition: padding 180ms ease, min-height 180ms ease;
}

.block-header--scrolled .block-header__inner {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  min-height: 2.85rem;
}

.site-brand {
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  align-self: center;
}

.site-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}

.site-brand__link:hover .site-brand__name,
.site-brand__link:hover .site-brand__tagline {
  color: var(--amber-hover);
}

.site-brand__mark {
  display: block;
  height: clamp(2.65rem, 6vw, 3.15rem);
  width: auto;
  flex-shrink: 0;
  align-self: center;
  object-fit: contain;
  transition: height 180ms ease;
  /* Líneas negras del PNG → blanco sobre header oscuro */
  filter: brightness(0) invert(1);
}

.block-header--scrolled .site-brand__mark {
  height: clamp(2rem, 4.5vw, 2.35rem);
}

.site-brand__lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.15;
}

.site-brand__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.8rem, 2.25vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: font-size 180ms ease, color 200ms ease;
  white-space: nowrap;
}

.site-brand__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.68rem, 1.8vw, 0.86rem);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.9);
  transition: font-size 180ms ease, color 200ms ease;
  white-space: nowrap;
}

.block-header--scrolled .site-brand__name {
  font-size: clamp(0.72rem, 2vw, 0.92rem);
}

.block-header--scrolled .site-brand__tagline {
  font-size: clamp(0.62rem, 1.55vw, 0.76rem);
}

/* Anclas: el título de sección queda visible bajo el header sticky */
#top {
  scroll-margin-top: 0;
}

main section[id] {
  scroll-margin-top: var(--scroll-anchor-offset);
}

.block-header__inner > nav {
  flex-shrink: 0;
  margin-left: auto;
}

.jw-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.75rem;
  transition: gap 180ms ease;
}

.block-header--scrolled .jw-menu {
  gap: 0.15rem 0.55rem;
}

.jw-menu-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding: 0.38rem 0.12rem;
  font-size: 0.92rem;
  transition:
    color 200ms ease,
    background 200ms ease,
    font-size 180ms ease,
    padding 180ms ease,
    border-width 180ms ease;
}

.block-header--scrolled .jw-menu-link {
  font-size: 0.78rem;
  padding: 0.18rem 0.08rem;
  border-bottom-width: 1.5px;
}

.jw-menu-link:hover,
.jw-menu-link:focus-visible {
  color: var(--amber);
  background: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.jw-menu__lang {
  display: flex;
  align-items: center;
  margin-left: 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.lang-switch__btn {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  transition: color 180ms ease, background 180ms ease;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  color: var(--amber);
}

.lang-switch__btn[aria-current="true"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--amber);
}

.lang-switch__sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  user-select: none;
}

.lang-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1rem;
  background: #1a3a52;
  color: #e8f0f5;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}

.lang-banner__link {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-banner__link:hover,
.lang-banner__link:focus-visible {
  color: #fff;
}

.lang-banner__dismiss {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  border-radius: 4px;
}

.lang-banner__dismiss:hover,
.lang-banner__dismiss:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .block-header,
  .block-header__inner,
  .site-brand__mark,
  .site-brand__name,
  .site-brand__tagline,
  .jw-menu,
  .jw-menu-link {
    transition: none;
  }
}

@media (max-width: 768px) {
  .block-header__inner {
    justify-content: flex-start;
  }

  .site-brand__lockup {
    max-width: min(11rem, 42vw);
  }

  .site-brand__name,
  .site-brand__tagline {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .block-header__inner > nav {
    margin-left: 0;
  }

  .jw-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 100%;
    background: var(--header-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    min-width: 200px;
  }

  .jw-menu.is-open {
    display: flex;
    justify-content: flex-start;
  }

  .jw-menu__lang {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-left: 0;
    padding-top: 0.65rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    justify-content: center;
    width: 100%;
  }
}

/* —— Hero: misma foto + texto encima (jw-strip--image-content-color-light) —— */
.strip-hero {
  position: relative;
  min-height: var(--hero-min-h);
  background-color: #1a1a2e;
  background-image: url("images/hero-cordillera.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.85rem, 2.2vw, 1.35rem) var(--page-pad-x);
}

.strip-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.strip-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(var(--content-max), calc(100% - 2 * var(--page-pad-x)));
  color: #fff;
}

/* Titular de marca (hero): serif cursiva como el tagline del logo */
.h-hero {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  color: #fff;
}

.strip-hero__inner p {
  margin: 0 auto 0.6rem;
  max-width: min(72ch, 100%);
  font-size: clamp(0.88rem, 1.35vw, 0.96rem);
  line-height: 1.45;
  color: #fff;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.95rem;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--amber);
  color: #111;
}

.btn-primary:hover {
  background: #dd8e09;
  color: #111;
}

.btn-wa {
  background: var(--wa);
  color: #fff !important;
}

.btn-wa:hover {
  background: var(--wa-hover);
  color: #fff !important;
}

/* CTA por departamento: secundario respecto al FAB (menos verde sólido) */
.btn-wa-secondary {
  background: #fff;
  color: #128c7e !important;
  border: 2px solid var(--wa);
  box-shadow: none;
}

.btn-wa-secondary:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #075e54 !important;
  border-color: var(--wa-hover);
}

/* —— Esencia + Historia: grilla 2×2 con filas iguales (no aspect-ratio por columna) —— */
.split-damero-section {
  padding: clamp(0.45rem, 1.2vw, 0.7rem) var(--page-pad-x);
}

.split-damero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.55rem, 1.5vw, 0.85rem);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .split-damero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    /*
     * Células 4:3 (más altas que las fotos 1.55–1.7:1):
     * cover rellena por altura → recorta solo los costados, nunca arriba/abajo.
     * Limitamos el ancho para que el bloque (que es 4:3) entre en el viewport.
     */
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: min(var(--content-max), calc((100vh - 80px) * 4 / 3));
    height: auto;
    min-height: 320px;
    gap: clamp(0.7rem, 1.4vw, 1rem);
    align-items: stretch;
    justify-items: stretch;
  }
}

.split-damero .split-text {
  background: var(--split-text-bg);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.split-damero .split-media {
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: none;
  background: #000;
  align-self: stretch;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 899px) {
  .split-damero .split-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Celdas 4:3, fotos 1.55–1.7:1 → cover rellena por altura → recorta solo los costados */
.split-damero .split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 899px) {
  .split-damero .split-media img {
    height: 100%;
  }
}

/* Titulares de sección: Merriweather regular (sin cursiva) */
.h-amber,
.h-shaded,
.h-historias,
.h-legal,
.dept-block h3,
.dept-modal__title {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
}

.h-shaded {
  margin: 0 0 0.35rem;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.22;
  color: var(--split-title);
  text-align: center;
  max-width: 40rem;
}

.split-damero .h-shaded {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  text-align: center;
  width: 100%;
  margin-bottom: 0.6rem;
}

.split-text p {
  margin: 0;
  color: var(--split-body);
  text-align: center;
  font-size: clamp(0.9rem, 1.4vw, 0.96rem);
  line-height: 1.5;
  max-width: 48ch;
}

.split-damero .split-text p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.55;
  max-width: 36ch;
  text-align: center;
}

/* —— Títulos ámbar (Actividades, Servicios, Contacto, Departamentos) —— */
.section-pad {
  padding: var(--section-y) var(--page-pad-x);
  max-width: min(var(--content-max), calc(100% - 2 * var(--page-pad-x)));
  margin: 0 auto;
}

.section-pad--muted {
  background: #fafafa;
}

.h-amber {
  margin: 0 0 0.55rem;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  color: var(--amber);
}

/* Historias: centrado, gris, strong */
.section-historias {
  background: var(--box-shaded);
  padding: var(--section-y) var(--page-pad-x);
  text-align: center;
}

.h-historias {
  margin: 0 auto 0.5rem;
  max-width: 40rem;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  line-height: 1.28;
  color: #6a6a6a;
}

.section-historias__inner {
  max-width: min(var(--content-max), calc(100% - 2 * var(--page-pad-x)));
  margin: 0 auto;
}

.section-historias__lead {
  margin: 0 auto 1.1rem;
  max-width: 52ch;
  font-size: clamp(0.9rem, 1.4vw, 0.96rem);
  line-height: 1.48;
  color: var(--text-body);
}

.historias-banner {
  margin: 0 auto;
  width: 100%;
  max-width: min(960px, 100%);
  border-radius: 0;
  overflow: hidden;
}

.historias-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Actividades: tarjetas con imagen + carrusel móvil */
.activity-carousel {
  margin-top: 0.25rem;
}

.activity-carousel__viewport {
  overflow: hidden;
}

.activity-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.activity-card {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.activity-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.activity-card__body {
  padding: 0.75rem 0.85rem;
}

.activity-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  font-style: normal;
  color: #444;
  line-height: 1.3;
}

.activity-card__body p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(0.9rem, 1.35vw, 0.94rem);
  line-height: 1.45;
}

.activity-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.activity-carousel__btn {
  font-family: inherit;
  font-size: 1.35rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.activity-carousel__btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.activity-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.activity-carousel__dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.activity-carousel__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.activity-carousel__dots button.is-active,
.activity-carousel__dots button[aria-selected="true"] {
  background: var(--amber);
}

@media (min-width: 768px) {
  .activity-carousel__viewport {
    overflow: visible;
  }

  .activity-carousel__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    transform: none !important;
    transition: none;
  }

  .activity-card {
    flex: none;
  }

  .activity-carousel__controls {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-carousel__track {
    transition: none;
  }
}

/* Servicios: tarjetas en fila (texto) */
.card-strip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .card-strip {
    flex-direction: row;
    align-items: stretch;
  }

  .h-card {
    flex: 1;
    min-width: 0;
  }
}

.h-card {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.h-card p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(0.9rem, 1.35vw, 0.94rem);
  line-height: 1.45;
}

.h-card p strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: normal;
  color: #444;
  font-size: 0.96rem;
}

/* Departamentos */
.dept-section {
  background: #fff;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  justify-content: flex-start;
}

.filter-row button {
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
}

.filter-row button.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.dept-catalog .dept-listing {
  max-width: var(--dept-catalog-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.dept-listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .dept-listing {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.6rem;
  }
}

.dept-block {
  scroll-margin-top: var(--scroll-anchor-offset);
  padding: 0.65rem clamp(0.6rem, 1.5vw, 0.85rem) 0.7rem;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.dept-block h3 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #eee;
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  line-height: 1.28;
  color: #333;
}

.dept-block h3 .dept-title__name,
.dept-modal__title .dept-title__name {
  font-weight: 700;
  font-style: normal;
}

.dept-layout {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
}

.dept-card-carousel {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
  height: var(--dept-photo-h);
  min-height: 160px;
  padding: 0;
  cursor: pointer;
}

.dept-card-carousel:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.dept-card-carousel__frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 100%;
}

.dept-card-carousel.is-single .dept-card-carousel__btn {
  display: none;
}

.dept-card-carousel__viewport {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0 0.15rem;
}

.dept-card-carousel__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.dept-card-carousel__track.is-instant,
.dept-carousel__track.is-instant {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .dept-card-carousel__track,
  .dept-carousel__track {
    transition: none;
  }
}

.dept-card-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.dept-card-carousel__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
}

.dept-card-carousel__btn {
  width: 2rem;
  height: 2rem;
  margin: 0 0.2rem;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #333;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: background 0.18s, color 0.18s;
}

.dept-card-carousel__btn:hover {
  background: var(--amber);
  color: #111;
}

.dept-card-carousel__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.dept-open-gallery {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  background: none;
  border: none;
  padding: 0.15rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
  align-self: flex-start;
}

.dept-open-gallery:hover {
  color: #d97706;
}

/* —— Modal galería departamento —— */
.dept-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dept-modal[hidden] {
  display: none;
}

.dept-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.dept-modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  background: #111;
  border-radius: 10px;
  padding: 2.5rem 1rem 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dept-modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dept-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dept-modal__title {
  margin: 0;
  padding: 0 2rem 0 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #fff;
}

.dept-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.25rem;
  align-items: center;
  min-height: 0;
  flex: 1;
}

.dept-carousel.is-single {
  grid-template-columns: 1fr;
}

.dept-carousel.is-single .dept-carousel__btn {
  display: none;
}

.dept-carousel__viewport {
  width: 100%;
  min-width: 0;
  min-height: min(60vh, 520px);
  max-height: min(65vh, 560px);
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
}

.dept-carousel__track {
  display: flex;
  height: 100%;
  min-height: min(60vh, 520px);
  max-height: min(65vh, 560px);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.dept-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.dept-carousel__slide img {
  max-width: 100%;
  max-height: min(65vh, 560px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.dept-carousel__btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.dept-carousel__btn:hover {
  background: rgba(245, 158, 11, 0.5);
  color: #111;
}

.dept-carousel__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.dept-carousel__counter {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

@media (max-width: 520px) {
  .dept-carousel__viewport {
    min-height: 38vh;
    max-height: 48vh;
  }

  .dept-carousel__track {
    min-height: 38vh;
    max-height: 48vh;
  }

  .dept-carousel__slide img {
    max-height: 46vh;
  }
}

.dept-details {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dept-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.38;
  color: var(--text-body);
}

.dept-features li {
  position: relative;
  padding-left: 1.05rem;
  margin-bottom: 0.12rem;
}

.dept-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.dept-note {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  line-height: 1.38;
}

.dept-actions {
  margin-top: auto;
  padding-top: 0.65rem;
  flex-shrink: 0;
}

.dept-actions .btn {
  padding: 0.36rem 0.75rem;
  font-size: 0.82rem;
}

.dept-photo-placeholder {
  margin: 0;
  min-height: var(--dept-photo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-body);
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 6px;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

.contact-map {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  min-height: 200px;
  background: #e8e8e8;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

@media (min-width: 768px) {
  .contact-map iframe {
    height: min(260px, 38vh);
    min-height: 220px;
  }
}

.contact-block p {
  margin: 0 0 0.45rem;
  font-size: clamp(0.9rem, 1.35vw, 0.94rem);
  line-height: 1.45;
}

.contact-block strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 0.1rem;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1rem;
}

.contact-cta-row .footer-social {
  margin-top: 0;
}

.contact-cta-row .trust-google-link {
  margin: 0;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  line-height: 1.25;
  text-align: center;
}

.footer-social {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: var(--amber);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid var(--amber);
  transition: background 0.18s, color 0.18s;
}

.footer-social a svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.footer-social a:hover {
  background: var(--amber);
  color: #111;
}

.site-footer {
  padding: 1.35rem var(--page-pad-x) 1.5rem;
  background: var(--box-shaded);
  font-size: 0.86rem;
  color: var(--text-body);
}

.site-footer__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem 2rem;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: left;
}

.site-footer__brand {
  flex-shrink: 0;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-footer__logo {
  display: block;
  height: clamp(4rem, 11vw, 5.25rem);
  width: auto;
  max-width: 5.5rem;
  object-fit: contain;
}

.site-footer__copy {
  margin: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .site-footer__copy {
    flex: none;
  }
}

.site-footer__legal {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.site-footer__legal a {
  color: var(--text-body);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__legal a:hover {
  color: #333;
}

.trust-section {
  background: #fff;
}

.trust-legal-grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 768px) {
  .trust-legal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.trust-legal-grid__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.trust-col__balance .trust-policy,
.trust-col__balance > p {
  margin: 0 0 0.65rem;
  max-width: none;
  font-size: clamp(0.9rem, 1.35vw, 0.94rem);
  line-height: 1.45;
  color: var(--text-body);
}

.trust-col__balance .trust-policy {
  font-size: 1.02rem;
}

.trust-col__balance > p:last-child {
  margin-bottom: 0;
}

.trust-legal-grid__col--reservar .trust-col__grow {
  min-height: 0;
}

.trust-legal-grid__col--reservar .trust-col__footer {
  width: 100%;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .trust-legal-grid__col {
    min-height: 100%;
  }

  .trust-col__balance {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    gap: 0;
  }

  .trust-col__balance .trust-policy,
  .trust-col__balance > p,
  .trust-col__balance .trust-disclaimer {
    margin-bottom: 0;
    line-height: 1.58;
  }

  .trust-col__balance .trust-policy {
    line-height: 1.52;
  }

  #condiciones .trust-col__balance > p + p {
    margin-top: 0;
  }

  .trust-legal-grid__col--reservar .trust-col__footer {
    padding-top: 1.1rem;
  }

  .trust-legal-grid__col--reservar .trust-col__footer .trust-wa-cta {
    margin-bottom: 0.4rem;
  }
}

.trust-wa-cta {
  margin: 0 0 0.45rem;
}

.trust-wa-cta .btn-wa {
  display: inline-block;
}

.trust-disclaimer {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(0.72rem, 1.05vw, 0.8rem);
  line-height: 1.42;
  color: #8a8a8a;
}

.trust-google-intro {
  margin: 0 0 0.75rem;
  max-width: 36ch;
  font-size: clamp(0.9rem, 1.35vw, 0.94rem);
  line-height: 1.48;
  color: var(--text-body);
}

.trust-google-cta {
  margin: 0 0 0.5rem;
}

.trust-google-summary {
  margin: 0 0 0.75rem;
}

.trust-google-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  font-size: 1rem;
}

.trust-google-badge__score {
  font-size: 1.15rem;
  color: #333;
}

.trust-google-badge__count {
  color: var(--text-body);
  font-size: 0.92rem;
}

.trust-stars {
  display: inline-flex;
  gap: 0.1rem;
  color: #d1d5db;
  letter-spacing: 0.02em;
}

.trust-stars__star.is-on {
  color: #f59e0b;
}

.trust-quote--google footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.trust-quote__stars {
  display: inline-flex;
}

.trust-reviews-empty {
  margin: 0;
  max-width: 42rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.trust-reviews-empty code {
  font-size: 0.88em;
}

.trust-google {
  margin: 0;
}

.trust-legal-grid__col .trust-testimonials {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 100%;
}

.trust-quote {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border-left: 4px solid var(--amber);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.trust-quote p {
  margin: 0 0 0.5rem;
  font-style: italic;
}

.trust-quote footer {
  font-size: 0.88rem;
  color: var(--text-body);
}

.btn-outline {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--amber);
  color: #333;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}

.btn-outline:hover {
  background: var(--amber);
  color: #111;
}

.legal-row {
  scroll-margin-top: var(--scroll-anchor-offset);
}

.legal-row__body {
  max-width: 52ch;
}

.legal-row__body p {
  margin: 0 0 0.65rem;
  font-size: clamp(0.9rem, 1.35vw, 0.94rem);
  line-height: 1.48;
  color: var(--text-body);
}

.legal-row__body p:last-child {
  margin-bottom: 0;
}

.legal-grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.legal-grid__col {
  scroll-margin-top: 3.75rem;
}

.legal-grid__col p {
  max-width: none;
}

.h-legal {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.wa-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wa);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.wa-fab:hover {
  background: var(--wa-hover);
  color: #fff !important;
}

@media (max-width: 768px) {
  .wa-fab span:last-child {
    display: none;
  }

  .wa-fab {
    border-radius: 50%;
    padding: 0.85rem;
  }
}
