/* ==========================================================================
   Leonarda Inmobiliaria — Design System
   Tokens, reset y componentes compartidos (nav, marquee, footer, reveals).
   Cargar en TODAS las páginas, después de bootstrap-icons.css.
   Requiere las fuentes de Google Fonts enlazadas en el <head> de cada página:
   Cormorant Garamond (400;500;600;700 + italic 400;500;600) y Hanken Grotesk (400;500;600;700)
   ========================================================================== */

:root {
  --ink: #0D1A1C;
  --pet: #16302D;
  --sand: #F3ECDF;
  --cream: #FBF7EF;
  --sea: #127E7C;
  --sea-light: #7FC3BA;
  --coral: #C0653F;
  --muted: #5E6C66;
  --line: #E5DBCA;
  --sand-dim-1: #C9D6D1;
  --sand-dim-2: #AFC2BC;
  --sand-dim-3: #9DB3AD;
  --sand-dim-4: #DCE8E4;
  --copyright: #7E908B;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Hanken Grotesk', sans-serif;
}

/* ---------- reset ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--sand);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--sea);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
}

.pg-breadcrumb-text {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.pg-breadcrumb-text a {
  color: var(--muted);
  text-decoration: none;
}

.pg-breadcrumb-text .sep {
  color: var(--coral);
  margin: 0 4px;
}

.ds-eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 600;
}

.ds-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .ds-container {
    padding: 0 20px;
  }
}

/* ---------- top marquee ---------- */
#site-marquee .ds-marquee {
  background: var(--ink);
  color: var(--sand);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#site-marquee .ds-marquee-track {
  display: inline-block;
  animation: ds-marquee 26s linear infinite;
}

#site-marquee .ds-marquee-track span {
  padding: 0 26px;
}

#site-marquee .ds-marquee-track .dot {
  color: var(--coral);
  padding: 0;
}

@keyframes ds-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- scroll progress ---------- */
#scrollbar-track {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 90;
  background: transparent;
}

#scrollbar {
  height: 100%;
  width: 0;
  background: var(--coral);
}

/* ---------- nav ---------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  transition: background .3s, box-shadow .3s;
  background: rgba(251, 247, 239, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#nav[data-nav-toggle="true"] {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ds-logo {
  text-decoration: none;
  color: var(--ink);
}

.ds-logo-name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.ds-logo-name em {
  font-style: italic;
  color: var(--sea);
}

.ds-logo-tag {
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.ds-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ds-nav-links a.ds-navlink {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.ds-nav-links a.ds-navlink.is-active {
  font-weight: 600;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}

.ds-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sea);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  will-change: transform;
}

.ds-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.ds-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- panel de navegación mobile (fuera del header sticky) ---------- */
.ds-mobile-panel {
  display: none;
}

.ds-nav-overlay {
  display: none;
}

@media (max-width: 860px) {
  .ds-nav-links {
    display: none;
  }

  .ds-nav-toggle {
    display: block;
    position: relative;
    z-index: 97;
  }

  .ds-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 94;
    background: rgba(13, 26, 28, .45);
    opacity: 0;
    transition: opacity .3s;
  }

  .ds-nav-overlay[hidden] {
    display: none;
  }

  .ds-nav-overlay.is-open {
    opacity: 1;
  }

  .ds-mobile-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    width: 78vw;
    max-width: 320px;
    background: var(--cream);
    gap: 26px;
    padding: 48px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
    box-shadow: -20px 0 60px -30px rgba(13, 26, 28, .4);
  }

  .ds-mobile-panel.is-open {
    transform: none;
  }

  .ds-mobile-panel a.ds-navlink {
    font-size: 17px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
  }

  .ds-mobile-panel a.ds-navlink.is-active {
    font-weight: 600;
    border-bottom: 2px solid var(--coral);
    padding-bottom: 2px;
  }

  body.ds-nav-open {
    overflow: hidden;
  }
}

/* ---------- reveal / parallax / magnetic (JS toggles opacity/transform inline) ---------- */
[data-reveal] {
  will-change: opacity, transform;
}

[data-parallax] {
  will-change: transform;
}

[data-magnetic] {
  display: inline-flex;
}

/* ---------- stat / count-to cards ---------- */
.ds-stat-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 30px 32px;
}

.ds-stat-number {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: var(--sand);
}

.ds-stat-number.is-coral {
  color: var(--coral);
}

.ds-stat-label {
  font-size: 14px;
  color: var(--sand-dim-2);
  margin-top: 6px;
}

/* ---------- buttons ---------- */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  will-change: transform;
}

.ds-btn.ds-btn-sea {
  background: var(--sea);
  color: #fff;
}

.ds-btn.ds-btn-coral {
  background: var(--coral);
  color: #fff;
}

.ds-btn.ds-btn-ink {
  background: var(--ink);
  color: var(--sand);
}

.ds-btn.ds-btn-outline {
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(255, 255, 255, .28);
}

.ds-btn.ds-btn-outline-ink {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.ds-btn:disabled {
  opacity: .6;
  cursor: default;
}

/* ---------- form controls ---------- */
.ds-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ds-field label,
.ds-field-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.ds-input,
.ds-select,
.ds-textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  outline: none;
}

.ds-textarea {
  resize: vertical;
  font-weight: 400;
}

.ds-select {
  cursor: pointer;
}

/* ---------- property card ---------- */
.ds-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .3s;
}

.ds-card:hover {
  box-shadow: 0 30px 60px -38px rgba(13, 26, 28, .35);
}

.ds-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--line);
}

.ds-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.ds-card:hover .ds-card-img-wrap img {
  transform: scale(1.08);
}

.ds-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(251, 247, 239, .94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 7px 12px;
  border-radius: 999px;
}

.ds-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ds-card-type {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 700;
}

.ds-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.12;
  margin: 7px 0 4px;
}

.ds-card-loc {
  font-size: 13px;
  color: var(--muted);
}

.ds-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ds-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.ds-card-price {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.ds-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sea);
  white-space: nowrap;
}

.ds-card-amenities {
  list-style: none;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-left: 0;
}

.ds-card-amenities li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ds-card-amenities i {
  color: var(--sea);
  font-size: 11px;
}

/* ---------- footer ---------- */
#site-footer footer.ds-footer {
  background: var(--ink);
  color: var(--sand);
  position: relative;
  overflow: hidden;
}

/* Ilustración de Las Grutas: se recorta por arriba (cielo) en pantallas muy
   anchas para que el pueblo y el mar queden siempre a la vista. */
.ds-footscene {
  position: relative;
  background: var(--sand);
  padding: 34px 0 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.ds-footscene svg {
  display: block;
  width: 100%;
  height: auto;
}

.ds-footscene.is-full {
  max-height: 420px;
}

.ds-footscene.is-mini {
  max-height: 420px;
}

@media (max-width: 700px) {
  .ds-footscene.is-full {
    max-height: 260px;
  }

  .ds-footscene.is-mini {
    max-height: 260px;
  }
}

.ds-footer-links {
  padding: 54px 48px 34px;
}

.ds-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.ds-footer-logo {
  display: block;
  width: 200px;
  height: auto;
}

.ds-footer-tagline {
  font-size: 14px;
  color: var(--sand-dim-3);
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 260px;
}

.ds-footer-col-title {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sea-light);
  margin-bottom: 14px;
}

.ds-footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--sand-dim-1);
}

.ds-footer-col-links a {
  text-decoration: none;
  color: inherit;
}

.ds-footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--copyright);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.ds-footer-mini-bar {
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--copyright);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 960px) {
  .ds-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .ds-footer-grid {
    grid-template-columns: 1fr;
  }

  #nav,
  .ds-footer-links {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---------- dropdown propio (reemplaza <select> nativos, ver js/ds-select.js) ----------
   Base neutra: el look visual (fondo/borde/padding/tipografía) lo pone la
   clase de contexto que ya trae cada trigger (p.ej. .hm-search-field o
   .pg-sidebar-field), no esta clase.
   Ojo: se llama ".ds-dropdown" y no ".ds-select" a propósito, para no chocar
   con la regla genérica ".ds-input, .ds-select, .ds-textarea" de más arriba
   (esa sí pone fondo/borde/radio propios, pensada para inputs sueltos). */
.ds-dropdown {
  position: relative;
}

.ds-select-native {
  display: none;
}

.ds-select-toggle {
  all: unset;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  cursor: pointer;
}

.ds-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-select-toggle::after {
  content: '▾';
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.ds-select-menu {
  display: none;
  list-style: none;
  margin: 0;
  position: fixed;
  z-index: 200;
  width: max-content;
  max-width: 280px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 40px -20px rgba(13, 26, 28, .35);
}

.ds-select-menu.is-open {
  display: block;
}

.ds-select-menu li {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-select-menu li:hover,
.ds-select-menu li.is-active {
  background: rgba(18, 126, 124, .1);
}

.ds-select-menu li[aria-selected="true"] {
  color: var(--sea);
  font-weight: 600;
}

/* ---------- scroll-top button ---------- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sand);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- lightweight preloader (kept from current site, restyled) ---------- */
#ctn-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

#ctn-preloader .preloader-logo {
  animation: ds-spin-y 1.6s linear infinite;
}

@keyframes ds-spin-y {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}