/* ============================================================
   Cuarzo — template website ligero para Comos
   Claro y neutral: fondo blanco cálido, hairlines, un acento
   azul-petróleo sobrio. Mucho aire, fotos protagonistas y
   animaciones sutiles (respetando prefers-reduced-motion).
   Colores configurables vía manifest (variables CSS).
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/spacegrotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
}

:root {
  --ink: #1f2933;              /* primario (theme.primaryColor): botones sólidos, footer, titulares */
  --ink-2: #323f4b;            /* secundario (theme.secondaryColor): degradados de bloques oscuros */
  --accent: #2f6f6a;           /* acento (theme.accentColor): azul-petróleo — enlaces, detalles, monograma */
  --accent-soft: rgba(47, 111, 106, 0.12);

  --bg: #fafaf9;                /* fondo base de toda la página */
  --surface: #ffffff;           /* tarjetas, paneles, buscador */
  --surface-2: #f0f1ef;         /* superficies auxiliares (placeholders de imagen) */
  --line: #e8e7e2;              /* hairlines */
  --text: #1d1f1e;              /* texto principal */
  --muted: #6d726f;             /* texto secundario */
  --wa: #25d366;

  --display: 'Space Grotesk', 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 28, 26, 0.05), 0 6px 20px rgba(23, 28, 26, 0.06);
  --shadow-lg: 0 6px 16px rgba(23, 28, 26, 0.08), 0 24px 56px rgba(23, 28, 26, 0.12);
  --maxw: 1180px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}
h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
}

.icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  vertical-align: -0.16em;
  flex: none;
}

/* ---------------- Animaciones base ----------------
   fadeUp se usa como animación de entrada (cards que llegan por
   red) y como transición de reveal-on-scroll (.reveal). Todo se
   apaga con prefers-reduced-motion al final del archivo. */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Carga ---------------- */

.boot-loading {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.boot-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  flex: none;
}
.brand-logo {
  width: auto;
  height: 40px;
  max-width: 160px;
  object-fit: contain;
  flex: none;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); background: var(--surface-2); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, opacity 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); opacity: 0.94; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 18px;
  color: var(--text);
}

@media (max-width: 900px) {
  .brand-logo { max-width: 96px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.show { display: flex; animation: fadeIn 0.25s ease; }
  .nav-link { padding: 11px 14px; border-radius: 10px; }
  .nav-cta { margin-left: 0; justify-content: center; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 7s var(--ease-out);
}
.hero-bg.show { opacity: 1; transform: scale(1); }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(250, 250, 249, 0.45) 0%, rgba(250, 250, 249, 0.86) 78%, var(--bg) 100%),
    linear-gradient(100deg, rgba(250, 250, 249, 0.94) 0%, rgba(250, 250, 249, 0.72) 55%, rgba(250, 250, 249, 0.45) 100%);
}
.hero-lines {
  position: absolute;
  top: -110px;
  right: -110px;
  width: 460px;
  height: 460px;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 88px 24px 72px;
  max-width: var(--maxw);
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fadeUp 0.6s var(--ease-out) backwards;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 15ch;
  margin-bottom: 16px;
  animation: fadeUp 0.6s var(--ease-out) 0.08s backwards;
}
.hero-sub {
  max-width: 52ch;
  margin: 0 0 30px;
  font-size: 17px;
  color: var(--muted);
  animation: fadeUp 0.6s var(--ease-out) 0.16s backwards;
}

.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  max-width: 880px;
  animation: fadeUp 0.6s var(--ease-out) 0.24s backwards;
}
.search-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
}
.search-tab {
  border: 0;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.search-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.search-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
}
@media (max-width: 820px) {
  .search-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .search-row { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  min-height: 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input, .field select {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  padding: 12px 0;
}
.field select { cursor: pointer; }
.field input::placeholder { color: var(--muted); }

.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  animation: fadeUp 0.6s var(--ease-out) 0.32s backwards;
}
.hero-quicklinks a {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.hero-quicklinks a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hero-neighborhoods { margin-top: 10px; }
.hero-quicklinks-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

/* ---------------- Secciones ---------------- */

.section { padding: 78px 0; }
.section-tight { padding: 34px 0 78px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 0; font-size: clamp(24px, 3.4vw, 34px); }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  transition: gap 0.2s var(--ease-out);
}
.link-more:hover { gap: 11px; }

/* ---------------- Cards de propiedades ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* entrada escalonada: aplica también a lo que llega por red */
.grid > .prop-card { animation: fadeUp 0.55s var(--ease-out) backwards; }
.grid > .prop-card:nth-child(2) { animation-delay: 0.06s; }
.grid > .prop-card:nth-child(3) { animation-delay: 0.12s; }
.grid > .prop-card:nth-child(4) { animation-delay: 0.18s; }
.grid > .prop-card:nth-child(5) { animation-delay: 0.24s; }
.grid > .prop-card:nth-child(6) { animation-delay: 0.3s; }
.grid > .prop-card:nth-child(n + 7) { animation-delay: 0.36s; }

.prop-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.prop-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.prop-card:hover .prop-media img { transform: scale(1.05); }
.prop-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: flex;
  gap: 6px;
}
.badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge-op { background: rgba(31, 41, 51, 0.82); color: #fff; }
.badge-type { background: rgba(255, 255, 255, 0.88); color: var(--text); }

.prop-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 18px 20px;
}
.prop-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prop-price small {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 6px;
}
.prop-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prop-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.prop-facts {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.prop-facts span { display: inline-flex; align-items: center; gap: 6px; }
.prop-facts strong { color: var(--text); font-weight: 700; }

/* ---------------- Explora por tipo ---------------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeUp 0.55s var(--ease-out) backwards;
}
.type-grid > .type-card:nth-child(2) { animation-delay: 0.05s; }
.type-grid > .type-card:nth-child(3) { animation-delay: 0.1s; }
.type-grid > .type-card:nth-child(4) { animation-delay: 0.15s; }
.type-grid > .type-card:nth-child(n + 5) { animation-delay: 0.2s; }
.type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.type-card .icon {
  width: 30px;
  height: 30px;
  padding: 8px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  box-sizing: content-box;
}

/* ---------------- Servicios ---------------- */

.services-row { display: flex; flex-wrap: wrap; gap: 10px; }
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.service-chip .icon { color: var(--accent); }

/* ---------------- Valores ---------------- */

.values { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; gap: 28px; } }
.value-item .icon {
  width: 26px;
  height: 26px;
  padding: 11px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  box-sizing: content-box;
  margin-bottom: 16px;
}
.value-item h3 { font-size: 19px; margin-bottom: 8px; }
.value-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------- CTA banner ---------------- */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 46px 48px;
  border-radius: 24px;
  background: linear-gradient(115deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.cta-banner h2 em { color: #fff; opacity: 0.75; font-style: normal; }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, 0.75); max-width: 54ch; }
@media (max-width: 860px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}

/* ---------------- Botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: 0.93; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Bandas de página / migas ---------------- */

.page-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}
.page-band h1 { font-size: clamp(26px, 3.6vw, 38px); margin: 0; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.crumbs a { color: var(--muted); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--muted); }

/* ---------------- Listado / filtros ---------------- */

.filter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin: 26px 0 8px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1020px) { .filter-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .filter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .filter-grid { grid-template-columns: 1fr; } }

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 16px;
  font-size: 14.5px;
  color: var(--muted);
}
.results-meta strong { color: var(--text); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 20px;
}
.pagination button {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.pagination button:disabled { opacity: 0.4; cursor: default; }

.empty-state {
  padding: 56px 30px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state h2 { font-size: 22px; }
.empty-state .btn { margin-top: 18px; }

/* ---------------- Detalle ---------------- */

.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-top: 6px;
}
.detail-head h1 { margin-bottom: 8px; }
.detail-head .loc {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14.5px;
}
.detail-price { text-align: right; flex: none; }
.detail-price .op {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.detail-price .amount {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.detail-price .amount small {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 7px;
}
@media (max-width: 760px) {
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-price { text-align: left; }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 28px;
  align-items: start;
  padding: 30px 0 0;
}
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; } }

.gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  animation: fadeIn 0.5s ease;
}
.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.carousel-item.active { opacity: 1; pointer-events: auto; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-nav .icon { width: 1.3em; height: 1.3em; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.8);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  margin-top: 24px;
}
.panel h3 { font-size: 21px; margin-bottom: 16px; }

.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.fact-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 110px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fact-chip .icon { color: var(--accent); width: 1.25em; height: 1.25em; margin-bottom: 5px; }
.fact-chip strong { font-size: 17px; font-weight: 700; }
.fact-chip span { font-size: 12.5px; color: var(--muted); }

.description-text { margin: 0; color: var(--text); white-space: pre-line; }

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
@media (max-width: 640px) { .detail-list { grid-template-columns: 1fr; } }
.detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.detail-list li span { color: var(--muted); }
.detail-list li strong { font-weight: 700; text-align: right; }

.aside-sticky {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card .brand-mark { width: 52px; height: 52px; font-size: 18px; margin: 0 auto; }
.contact-card .brand-logo { height: 52px; max-width: 180px; margin: 0 auto; }
.contact-card h3 { font-size: 20px; margin: 2px 0 0; }
.contact-card .sub { margin: -6px 0 6px; color: var(--muted); font-size: 14px; }
.contact-card .tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 6px 0 0;
}
.contact-card .tel:hover { color: var(--accent); }
.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.share-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.share-row a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.mini-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.mini-card:last-child { border-bottom: 0; }
.mini-card img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
  flex: none;
}
.mini-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-card strong {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-card span span { font-size: 13px; color: var(--accent); font-weight: 700; }
.mini-card:hover strong { color: var(--accent); }

/* ---------------- Contacto ---------------- */

.contact-hero {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 0 20px;
}
.contact-hero h2 { font-size: clamp(26px, 3.6vw, 36px); }
.contact-hero p { color: var(--muted); margin: 0; }

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 58px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-about {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 40ch;
}
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.site-footer h6 {
  margin: 4px 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14.5px; color: var(--text); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a { color: var(--accent); font-weight: 600; }

/* ---------------- WhatsApp flotante ---------------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  animation: fadeUp 0.5s var(--ease-out) 0.5s backwards;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------------- Reduced motion ----------------
   Se apagan todas las animaciones y transiciones decorativas.
   (animation/transition a duración mínima; el spinner de carga
   sigue siendo visible como indicador aunque casi estático.) */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
}
