/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #f6f1e6;   /* warm cream */
  --bg-2:       #ede2cd;   /* sand */
  --paper:      #fffdf8;
  --ink:        #241f18;
  --ink-soft:   #3a3226;
  --ink-mute:   #746a58;
  --moss:       #47593a;   /* deep moss green */
  --moss-2:     #6c7f52;   /* lighter moss */
  --moss-tint:  #e7ecdd;
  --terracotta: #c1602f;   /* primary accent */
  --terracotta-2: #a24d24;
  --terracotta-tint: #f3e0d2;
  --line:       rgba(36,31,24,0.12);
  --shadow-color: 36,31,24;

  --serif: 'Newsreader', serif;
  --sans: 'Inter', sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 18px;
  --radius-sm: 10px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
html.no-scroll { overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
}
em { font-style: italic; color: var(--terracotta); }
::selection { background: var(--terracotta); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
  color: var(--terracotta); font-weight: 600; margin-bottom: .7rem;
}

[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }


/* =============================================================
   5. Buttons & components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(var(--shadow-color), 0.08), 0 1px 3px rgba(var(--shadow-color), 0.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn-sm { padding: .65rem 1.3rem; font-size: .88rem; }
.btn-primary { background: var(--terracotta); color: var(--paper); }
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(193,96,47,0.28), 0 10px 22px rgba(var(--shadow-color),0.14);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost { border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--paper); border-color: var(--terracotta); transform: translateY(-3px); }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

.placeholder-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #e4d8c2, #e4d8c2 14px, #ddcfb4 14px, #ddcfb4 28px);
  border: 1px dashed rgba(36,31,24,.28);
  border-radius: var(--radius);
  color: var(--ink-mute);
  font-size: .82rem;
  min-height: 200px;
}
.placeholder-box--hero { min-height: 100%; border-radius: 0; border: none; }
.placeholder-box--card { min-height: 100%; border-radius: var(--radius) var(--radius) 0 0; border-width: 0 0 1px 0; }
.placeholder-box--testimonial { min-height: 260px; border-radius: var(--radius); }
.testimonial-img {
  width: 100%; min-height: 260px; max-height: 320px;
  object-fit: cover; border-radius: var(--radius);
}
.placeholder-box--map { min-height: 220px; margin-bottom: 1.5rem; }
.contact-map {
  height: 260px;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem;
  border: 1px solid var(--line); line-height: 0;
  background: var(--bg-2);
}
.contact-map iframe { display: block; }
.contact-map .leaflet-container { font-family: var(--sans); background: var(--bg-2); }
.contact-map .leaflet-popup-content-wrapper { border-radius: 10px; }
.contact-map .leaflet-popup-content { font-size: .85rem; font-weight: 600; color: var(--ink); margin: .6rem .9rem; }

.map-pin {
  width: 26px; height: 26px;
}
.map-pin span {
  display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  background: var(--terracotta); border: 2px solid var(--paper);
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(var(--shadow-color),.35);
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(246,241,230,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.15rem; gap: 1.5rem; }
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--ink);
}
.nav-logo-img { height: 38px; width: 38px; object-fit: contain; flex-shrink: 0; }
.footer .nav-logo-img { height: 44px; width: 44px; }
.nav-links { display: none; gap: 2rem; }
.nav-link { position: relative; padding: .25rem 0; font-size: .92rem; font-weight: 500; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-inner .btn-primary { display: none; }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; margin-left: auto;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[data-open] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.6rem; }
.nav-mobile .btn-primary { margin-top: 1rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 6rem;
  padding-bottom: clamp(4rem, 10vw, 7rem);
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36,31,24,.15) 0%, rgba(36,31,24,.05) 35%, rgba(36,31,24,.55) 100%);
}
.hero-grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { position: relative; z-index: 1; text-align: center; color: var(--paper); }
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  max-width: 16ch;
  margin-inline: auto;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-sub {
  max-width: 46ch;
  margin: 1.2rem auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,253,248,.9);
}

.search-card {
  position: relative; z-index: 2;
  margin: clamp(2rem, 6vw, 3.5rem) var(--gutter) 0;
  background: var(--paper);
  border-radius: 22px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 30px 70px rgba(var(--shadow-color),.22), 0 8px 24px rgba(var(--shadow-color),.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .9rem 1rem;
}
.search-field { display: flex; flex-direction: column; padding-block: 0; min-width: 0; }
.search-field label, .search-field > span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: .15rem; }
.search-field input {
  border: 0; background: transparent; font: inherit; color: var(--ink); font-size: .92rem;
  font-family: var(--sans); width: 100%; min-width: 0;
}
.search-field input:focus-visible { outline: none; }
.search-field--toggle { min-width: 0; }
.search-divider { display: none; }
.search-submit { grid-column: 1 / -1; width: 100%; }

.toggle-group {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; width: fit-content;
}
.toggle-btn {
  padding: .3rem .85rem; font-size: .85rem; font-weight: 600;
  color: var(--ink-mute); transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.toggle-btn.is-active { background: var(--terracotta); color: var(--paper); }

/* =============================================================
   8. Sections generic
   ============================================================= */
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-alt { background: var(--bg-2); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .7rem; max-width: 18ch; }
.section-lead { color: var(--ink-mute); max-width: 56ch; margin-bottom: 2.5rem; font-size: 1.05rem; }

/* =============================================================
   9. Manifesto
   ============================================================= */
.manifesto { padding-block: clamp(3rem, 7vw, 5rem); }
.manifesto-grid { display: grid; gap: 1.5rem; align-items: start; }
.manifesto-num {
  font-family: var(--serif); font-style: italic; font-size: clamp(3.5rem, 9vw, 6rem);
  color: var(--terracotta); line-height: 1;
}
.manifesto-text h2 { margin-bottom: 1rem; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.manifesto-text p { color: var(--ink-soft); max-width: 56ch; font-size: 1.05rem; }

/* =============================================================
   9b. Video de Coratei
   ============================================================= */
.coratei-video-section { background: var(--bg-2); padding-block: clamp(3rem, 8vw, 5.5rem); }
.coratei-video-grid { display: grid; gap: 2.5rem; align-items: center; }
.coratei-video-media { display: flex; justify-content: center; }
.coratei-video {
  width: 100%; max-width: 300px; aspect-ratio: 9 / 16;
  border-radius: var(--radius); object-fit: cover;
  box-shadow: 0 30px 70px rgba(var(--shadow-color),.25), 0 8px 24px rgba(var(--shadow-color),.14);
  background: var(--ink);
}
.coratei-video-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 1.1rem; max-width: 18ch; }
.coratei-video-text p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.1rem; max-width: 56ch; }
.coratei-video-text .btn { margin-top: .3rem; }

/* =============================================================
   10. Carrusel de propiedades
   ============================================================= */
.props-carousel { position: relative; margin-top: 1.5rem; }
.props-carousel-track { position: relative; min-height: 460px; }
.props-carousel-slide {
  position: absolute; inset: 0;
  display: flex; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease-soft);
}
.props-carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.props-carousel-slide .prop-card { width: 100%; max-width: 420px; }
.props-carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.6rem; }
.props-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  transition: background .3s, width .3s;
}
.props-carousel-dots button.is-active { background: var(--terracotta); width: 22px; border-radius: 999px; }

.prop-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.prop-card.has-tilt:hover { transition-duration: .15s; }
.prop-card.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx,50%) var(--my,50%), rgba(193,96,47,.28), transparent 62%);
  opacity: 0; transition: opacity .35s; mix-blend-mode: multiply;
}
.prop-card.has-halo:hover::before { opacity: 1; }
.prop-card:hover {
  box-shadow: 0 50px 90px -25px rgba(var(--shadow-color),.28), 0 0 0 1px var(--line);
}
.prop-card .placeholder-box { min-height: 200px; transition: transform .8s var(--ease-soft); }
.prop-card:hover .placeholder-box { transform: scale(1.06); }
.prop-card .prop-img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform .8s var(--ease-soft);
}
.prop-card:hover .prop-img { transform: scale(1.06); }
.prop-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  background: var(--paper); color: var(--moss); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .35rem .7rem; border-radius: 999px;
}
.prop-body { padding: 1.3rem 1.4rem 1.5rem; }
.prop-body h4 {
  font-size: 1.25rem; margin-bottom: .2rem; font-family: var(--serif); font-weight: 500;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease-out);
}
.prop-card:hover .prop-body h4 { background-size: 100% 1px; }
.prop-loc { color: var(--ink-mute); font-size: .88rem; margin-bottom: .6rem; }
.prop-meta { display: flex; gap: .4rem; font-size: .82rem; color: var(--ink-mute); margin-bottom: .8rem; }
.prop-price { font-size: .92rem; color: var(--ink-soft); }
.prop-price strong { color: var(--terracotta); font-size: 1.1rem; }

.props-subhead { margin-top: 3rem; max-width: 68ch; }
.props-subhead--cabanas { margin-top: 4rem; }
.props-subhead h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .6rem; }
.props-subhead p { color: var(--ink-soft); font-size: .98rem; margin-bottom: .6rem; }
.props-price { font-size: .95rem; color: var(--ink-soft); }
.props-price strong { color: var(--terracotta); font-size: 1.05rem; }

.props-cta {
  margin-top: 3rem;
  background: var(--moss); color: var(--bg);
  border-radius: var(--radius);
  padding: 2.2rem; text-align: center;
}
.props-cta h3 { color: var(--paper); margin-bottom: .5rem; }
.props-cta p { color: rgba(246,241,230,.85); margin-bottom: 1.2rem; max-width: 50ch; margin-inline: auto; }

/* =============================================================
   11. Ventajas
   ============================================================= */
.advantages-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem 2rem;
  margin-top: 2.5rem;
}
.advantage-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--moss-tint); color: var(--moss);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.advantage h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.advantage p { color: var(--ink-mute); font-size: .95rem; max-width: 34ch; }

/* =============================================================
   12. Stats strip
   ============================================================= */
.stats { background: var(--ink); color: var(--bg); padding-block: clamp(3rem, 6vw, 4.5rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
  text-align: center;
}
.stat-num, .stat-num-text {
  font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--terracotta-2); background: linear-gradient(180deg, #e08a54, var(--terracotta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-suffix { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--terracotta); }
.stat p { margin-top: .3rem; color: rgba(246,241,230,.75); font-size: .9rem; }

/* =============================================================
   13. Testimonios
   ============================================================= */
.testimonial-wrap { margin-top: 1rem; }
.testimonial-carousel { position: relative; min-height: 320px; }
.testimonial {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  padding-inline: var(--gutter);
  max-width: 1200px; margin-inline: auto;
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
.testimonial.is-active { opacity: 1; pointer-events: auto; transform: none; position: relative; }
.testimonial-card-img {
  width: 100%; max-width: 420px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(var(--shadow-color),.22), 0 8px 24px rgba(var(--shadow-color),.12);
}
.testimonial-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.testimonial-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  transition: background .3s, width .3s;
}
.testimonial-dots button.is-active { background: var(--terracotta); width: 22px; border-radius: 999px; }

/* =============================================================
   14. Contact / form
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-form-wrap { position: relative; }
.cta-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.field { position: relative; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.3rem 1rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: inherit; font: inherit; font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 90px; }
.field label {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: .95rem;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 1.1rem; transform: none; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.field select {
  padding-top: 2.05rem;
  padding-bottom: .5rem;
  line-height: 1.2;
}
.field input[type="date"],
.field input[type="number"] {
  padding-top: 1.3rem;
  padding-bottom: .5rem;
}
.field input[type="date"] + label,
.field input[type="number"] + label {
  top: .5rem; transform: none;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.field-label-static {
  position: absolute; left: 1rem; top: .5rem;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute);
  pointer-events: none;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.field input[type="date"] { min-width: 0; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

.field--toggle {
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.field--toggle > span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.field--toggle .toggle-group { width: fit-content; }

.cta-submit { position: relative; align-self: flex-start; margin-top: .3rem; }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 1.5px solid rgba(255,255,255,0.35); border-top-color: var(--paper);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path {
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .55s var(--ease-out);
}

.cta-success {
  position: absolute; left: 0; right: 0; top: 40%;
  opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease-out) .1s, transform .9s var(--ease-soft) .1s;
  transform: translateY(10px);
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cta-success h3 { font-size: 1.6rem; margin-bottom: .5rem; color: var(--moss); }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; gap: .1rem; font-size: .95rem; }
.contact-list strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.contact-list a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--terracotta-2); }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { padding-block: 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: .9rem; }
.footer-social { display: flex; gap: 1rem; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--ink-mute); border: 1px solid var(--line);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-soft);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { color: var(--terracotta); border-color: var(--terracotta); transform: translateY(-3px); }
.footer-legal { display: flex; gap: .6rem; font-size: .82rem; color: var(--ink-mute); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--terracotta); }
.footer-copy { color: var(--ink-mute); font-size: .82rem; }

/* =============================================================
   16. Reduced motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   17. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .manifesto-grid { grid-template-columns: 180px 1fr; gap: 3rem; }
  .coratei-video-grid { grid-template-columns: 300px 1fr; gap: 3.5rem; }
  .contact-grid { grid-template-columns: 1.2fr .8fr; }
  .testimonial-card-img { max-width: 460px; }
  .testimonial-carousel { min-height: 480px; }

  .search-card {
    display: flex; flex-wrap: nowrap; align-items: center;
    border-radius: 999px;
    padding: .6rem .6rem .6rem 2rem;
    gap: .5rem;
  }
  .search-field { flex: 1 1 120px; min-width: 100px; }
  .search-field--toggle { flex: 0 0 auto; }
  .search-divider { display: block; width: 1px; height: 34px; background: var(--line); flex-shrink: 0; }
  .search-submit { grid-column: unset; width: auto; flex-shrink: 0; margin-left: auto; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-inner .btn-primary { display: inline-flex; }
  .nav-burger { display: none; }

  .advantages-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .hero-title { max-width: 18ch; }
  .stats-grid { gap: 2rem; }
}

/* =============================================================
   18. Property detail / Tips / Terms pages
   ============================================================= */
.prop-hero {
  position: relative;
  min-height: 50vh;
  display: flex; align-items: flex-end;
  overflow: clip;
}
.prop-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; z-index: 0;
  transition: opacity 1s var(--ease-soft);
}
.prop-hero-img.is-active { opacity: 1; z-index: 1; }
.prop-hero-img--labeled { object-position: center 12%; }
.prop-hero-img { cursor: zoom-in; pointer-events: auto; }
.prop-hero-track, .prop-hero-overlay, .prop-hero-inner { cursor: zoom-in; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(36,31,24,.35); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1;
  transition: background .3s var(--ease-out);
}
.carousel-arrow:hover { background: rgba(36,31,24,.6); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots--hero {
  position: absolute; left: 50%; bottom: 1.3rem; transform: translateX(-50%);
  z-index: 2; display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; max-width: 80%;
}
.carousel-dots--hero button {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,253,248,.5);
  transition: background .3s, width .3s;
}
.carousel-dots--hero button.is-active { background: var(--paper); width: 20px; border-radius: 999px; }

.carousel-zoom-hint {
  position: absolute; top: 5.5rem; right: 1rem; z-index: 2;
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem .5rem .7rem; border-radius: 999px;
  background: rgba(36,31,24,.4); color: var(--paper);
  font-size: .82rem; font-weight: 600;
  transition: background .3s var(--ease-out), transform .3s var(--ease-soft);
}
.carousel-zoom-hint svg { width: 16px; height: 16px; flex-shrink: 0; }
.carousel-zoom-hint:hover { background: rgba(36,31,24,.65); transform: translateY(-2px); }
@media (max-width: 539px) {
  .carousel-zoom-hint span, .carousel-zoom-hint { font-size: .76rem; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(18,15,10,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: min(92vw, 1200px); max-height: 86vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,253,248,.12); color: var(--paper);
  font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.lightbox-close:hover { background: rgba(255,253,248,.24); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,253,248,.12); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; line-height: 1;
  transition: background .3s;
}
.lightbox-arrow:hover { background: rgba(255,253,248,.24); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  color: rgba(255,253,248,.75); font-size: .82rem; letter-spacing: .04em;
}
@media (max-width: 720px) {
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}
.prop-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,24,.35) 0%, rgba(36,31,24,.1) 45%, rgba(36,31,24,.8) 100%);
}
.prop-hero-inner { position: relative; z-index: 1; padding-block: 6.5rem 2.5rem; color: var(--paper); }
.prop-hero-badge {
  display: inline-block; background: var(--terracotta); color: var(--paper);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: .9rem;
}
.prop-hero h1 { color: var(--paper); font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .5rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); max-width: 20ch; }
.prop-hero p { color: rgba(255,253,248,.9); font-size: 1rem; }

.prop-hero--plain { min-height: auto; background: var(--ink); align-items: flex-start; }
.prop-hero--plain .prop-hero-inner { padding-block: 7rem 3rem; }
.prop-hero--plain p { max-width: 60ch; }

.prop-detail-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.prop-detail-main p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.1rem; max-width: 65ch; }
.amenities-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.5rem; padding: 0;
}
.amenities-list li {
  background: var(--moss-tint); color: var(--moss); font-size: .85rem; font-weight: 600;
  padding: .5rem 1rem; border-radius: 999px;
}

.prop-detail-video { margin-top: 2.2rem; }
.prop-detail-video h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.prop-video {
  width: 100%; max-width: 320px; aspect-ratio: 9 / 16;
  border-radius: var(--radius); object-fit: cover;
  box-shadow: 0 30px 70px rgba(var(--shadow-color),.25), 0 8px 24px rgba(var(--shadow-color),.14);
  background: var(--ink);
}

.prop-availability { margin-top: 2.2rem; }
.prop-availability h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.avail-calendar { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.avail-month { min-width: 230px; flex: 1 1 230px; }
.avail-month-title { font-weight: 600; font-size: .95rem; margin-bottom: .6rem; text-transform: capitalize; }
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.avail-grid--head { margin-bottom: 4px; }
.avail-grid--head span { font-size: .72rem; font-weight: 700; color: var(--ink-mute); text-align: center; }
.avail-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; border-radius: 6px; color: var(--ink-soft);
}
.avail-day--empty { visibility: hidden; }
.avail-day--free { background: var(--moss-tint); color: var(--moss); font-weight: 600; }
.avail-day--busy { background: var(--terracotta-tint); color: var(--terracotta-2); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.avail-day--past { color: var(--ink-mute); opacity: .35; }
.avail-legend { display: flex; gap: 1.2rem; margin-top: 1rem; font-size: .82rem; color: var(--ink-mute); }
.avail-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.avail-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.avail-dot--free { background: var(--moss); }
.avail-dot--busy { background: var(--terracotta-2); }
.avail-loading { color: var(--ink-mute); font-size: .9rem; }

.prop-detail-card {
  background: var(--paper); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: 0 30px 60px -25px rgba(var(--shadow-color),.25);
}
.prop-detail-cap { font-weight: 600; margin-bottom: .3rem; }
.prop-detail-price { color: var(--terracotta); font-size: 1.2rem; font-weight: 700; margin-bottom: 1.2rem; }
.prop-detail-card .btn { width: 100%; margin-bottom: 1rem; justify-content: center; }
.prop-detail-back { display: inline-block; font-size: .85rem; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.prop-detail-back:hover { color: var(--terracotta); }

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; margin-top: 1rem; }

.reserva-steps { display: flex; flex-direction: column; gap: 1.6rem; margin: 2rem 0; max-width: 72ch; }
.reserva-step { display: flex; gap: 1.2rem; }
.reserva-step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--terracotta); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--serif);
}
.reserva-step h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.reserva-step p { color: var(--ink-soft); font-size: .98rem; }
.reserva-note { font-size: .88rem; color: var(--ink-mute); margin-top: .5rem; }

.tips-content, .terms-content { max-width: 72ch; }
.tips-content > p, .terms-content > p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.2rem; }
.tips-content h2, .terms-content h2 { margin-top: 2.2rem; margin-bottom: .8rem; font-size: 1.4rem; }
.tips-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
.tips-list li { padding-left: 1.8rem; position: relative; color: var(--ink-soft); font-size: .98rem; }
.tips-list--dont li::before { content: "✕"; position: absolute; left: 0; color: #b3392a; font-weight: 700; }
.tips-list--do li::before { content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 700; }

.credits-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.credits-list li {
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: .92rem; line-height: 1.6;
}
.credits-list a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 720px) {
  .prop-hero-inner { padding-block: 7rem 3rem; }
}

@media (min-width: 960px) {
  .prop-detail-grid { grid-template-columns: 1.6fr .9fr; }
  .prop-detail-card { position: sticky; top: 100px; }
}

/* =============================================================
   19. Chat de soporte (asistente)
   ============================================================= */
.chat-widget { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 300; }

.chat-bubble {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--terracotta); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(193,96,47,.35), 0 4px 14px rgba(0,0,0,.15);
  transition: transform .35s var(--ease-soft), background .3s;
  position: relative;
}
.chat-bubble:hover { transform: scale(1.06); background: var(--terracotta-2); }
.chat-bubble svg { width: 24px; height: 24px; position: absolute; transition: opacity .25s, transform .25s; }
.chat-bubble-icon-close { opacity: 0; transform: scale(.5) rotate(-45deg); }
.chat-bubble-icon-chat { opacity: 1; transform: none; }
.chat-widget.is-open .chat-bubble-icon-chat { opacity: 0; transform: scale(.5) rotate(45deg); }
.chat-widget.is-open .chat-bubble-icon-close { opacity: 1; transform: none; }

.chat-panel {
  position: fixed; right: 1.2rem; bottom: 5.4rem; z-index: 300;
  width: min(360px, calc(100vw - 2.4rem));
  max-height: min(70vh, 560px);
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 34px 80px rgba(0,0,0,.32);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.96);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-soft);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.chat-panel-header {
  background: var(--moss); color: var(--paper);
  padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: .9rem; flex-shrink: 0;
}
.chat-panel-actions { display: flex; align-items: center; gap: .7rem; }
.chat-panel-whatsapp { color: var(--paper); opacity: .85; display: flex; }
.chat-panel-whatsapp svg { width: 19px; height: 19px; }
.chat-panel-whatsapp:hover { opacity: 1; }
.chat-panel-close { color: var(--paper); font-size: 1.4rem; line-height: 1; opacity: .85; }
.chat-panel-close:hover { opacity: 1; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .6rem;
  font-size: .87rem; min-height: 220px;
}
.chat-msg {
  max-width: 86%; padding: .6rem .85rem; border-radius: 14px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg--bot { background: var(--bg-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg--bot a { color: var(--terracotta); font-weight: 600; text-decoration: underline; }
.chat-price { font-weight: 700; color: var(--terracotta-2); background: var(--terracotta-tint); padding: .05rem .35rem; border-radius: 5px; }
.chat-msg--user { background: var(--terracotta); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg--error { background: var(--terracotta-tint); color: #7a3418; align-self: flex-start; border-bottom-left-radius: 4px; }

.chat-msg--typing { display: flex; gap: .3rem; align-items: center; padding-block: .8rem; }
.chat-msg--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute);
  animation: chatTyping 1.2s infinite ease-in-out;
}
.chat-msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-input-row { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); flex-shrink: 0; }
.chat-input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1.1rem; font: inherit; font-size: .87rem; background: var(--bg);
}
.chat-input:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.chat-send {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--terracotta); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.chat-send:hover { background: var(--terracotta-2); transform: scale(1.05); }
.chat-send svg { width: 16px; height: 16px; }
.chat-send:disabled { opacity: .5; pointer-events: none; }

@media (max-width: 539px) {
  .chat-panel { right: .7rem; bottom: 5rem; width: calc(100vw - 1.4rem); }
  .chat-widget { right: .8rem; bottom: .8rem; }
}
