/* Finca Club Lorenzo — hoja de estilos (5-nov-2026).
   Sistema visual actual: una sola familia (Inter 400/600), títulos en caja de oración con
   tracking cerrado, fondos cálidos neutros, verde de la marca como único acento, esquinas
   grandes, botones píldora y cristal (blur) sobre la foto. Sin serifas, sin versalitas
   espaciadas, sin flechas decorativas ni sellos. La apertura (al final) no se toca. */

@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap
}

:root {
  --bg: #faf9f6;
  --cream: #faf9f6;
  --surface: #ffffff;
  --sand: #f1efe8;
  --sand-2: #e7e4db;
  --ink: #171a18;
  --body: #555c57;
  --muted: #858c87;
  --line: #e4e2db;
  --green: #1f4a3a;
  --green-dark: #163829;
  --green-soft: #e4efe7;
  --green-text: #2f6a52;
  --wa: #25d366;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px #1a1f1a0a, 0 2px 8px -2px #1a1f1a14;
  --shadow-md: 0 1px 3px #1a1f1a0f, 0 18px 40px -16px #1a1f1a33;
  --shadow-lg: 0 24px 60px -20px #1a1f1a4d;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1)
}

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}
[id] {
  scroll-margin-top: 84px
}
body {
  font: 400 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden
}
img, svg, canvas {
  display: block;
  max-width: 100%
}
img {
  height: auto
}
button, input, select, textarea {
  font: inherit;
  color: inherit
}
button {
  background: none;
  border: 0;
  cursor: pointer
}
a {
  color: inherit;
  text-decoration: none
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px
}
::selection {
  background: var(--green);
  color: #fff
}
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink)
}
h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  letter-spacing: -.035em;
  line-height: 1.02
}
h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.06
}
h3 {
  font-size: clamp(22px, 2vw, 27px)
}
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--green-text)
}
p {
  color: var(--body)
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600
}
.skip-link:focus {
  top: 16px
}
.reveal {
  opacity: 1
}
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease)
}
html.js-reveal .reveal.visible {
  opacity: 1;
  transform: none
}

/* ---------- Piezas comunes ---------- */
/* La etiqueta que abre cada sección: pequeña, en verde y en caja de oración. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-text);
  margin-bottom: 18px
}
.eyebrow.light {
  color: #ffffffbf
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s
}
.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm)
}
.btn:active {
  transform: translateY(0)
}
.btn.small {
  height: 42px;
  padding: 0 18px;
  font-size: 14px
}
.btn.cream {
  background: #fff;
  color: var(--ink)
}
.btn.cream:hover {
  background: #f1efe8
}
.btn.outline {
  background: #ffffff1f;
  color: #fff;
  border-color: #ffffff59;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px)
}
.btn.outline:hover {
  background: #ffffff36;
  border-color: #ffffff8c
}
.btn.secondary {
  background: var(--sand);
  color: var(--ink)
}
.btn.secondary:hover {
  background: var(--sand-2)
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line)
}
.btn.ghost:hover {
  background: var(--sand);
  border-color: var(--sand)
}
/* Enlace de texto con una flecha dibujada en CSS (sin caracteres decorativos). */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 6px
}
.text-link::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ease)
}
.text-link:hover::after {
  transform: translateX(3px) rotate(45deg)
}

/* ---------- Cabecera ---------- */
/* Una cabecera genérica es una fila quieta (kit para compartir); la del sitio, #header,
   va fija y transparente sobre la foto y toma el fondo claro al bajar o con el menú abierto. */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 var(--gutter)
}
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  color: #fff;
  transition: background .35s, color .35s, height .35s, box-shadow .35s
}
#header.scrolled, body:has(#mobile-nav:not([hidden])) #header {
  height: 68px;
  background: #faf9f6e8;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--line)
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto
}
.brand-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain
}
.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--pill);
  background: #ffffff1c;
  border: 1px solid #ffffff2b;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .35s, border-color .35s
}
.desktop-nav a {
  padding: 9px 16px;
  border-radius: var(--pill);
  font-size: 14px;
  transition: background .2s
}
.desktop-nav a:hover {
  background: #ffffff2b
}
#header.scrolled .desktop-nav {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none
}
#header.scrolled .desktop-nav a:hover {
  background: var(--sand)
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px
}
/* El botón de idioma enseña el otro idioma (EN en español, ES en inglés). */
.lang-toggle {
  height: 40px;
  min-width: 50px;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid #ffffff40;
  background: #ffffff1c;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s, border-color .2s
}
.lang-toggle:hover {
  background: #ffffff36
}
#header.scrolled .lang-toggle, body:has(#mobile-nav:not([hidden])) .lang-toggle {
  background: transparent;
  border-color: var(--line)
}
#header.scrolled .lang-toggle:hover {
  background: var(--sand)
}
.header-actions .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  background: #fff;
  color: var(--ink)
}
.header-actions .btn:hover {
  background: #f1efe8
}
#header.scrolled .header-actions .btn, body:has(#mobile-nav:not([hidden])) .header-actions .btn {
  background: var(--green);
  color: #fff
}
#header.scrolled .header-actions .btn:hover {
  background: var(--green-dark)
}
.menu-button {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ffffff40;
  background: #ffffff1c;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex: 0 0 auto
}
#header.scrolled .menu-button, body:has(#mobile-nav:not([hidden])) .menu-button {
  background: transparent;
  border-color: var(--line)
}
.menu-button span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease)
}
.menu-button span:first-child {
  top: 15px
}
.menu-button span:last-child {
  top: 23px
}
.menu-button[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg)
}
.menu-button[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: rotate(-45deg)
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--bg);
  padding: 100px var(--gutter) 32px;
  display: flex;
  flex-direction: column
}
.mobile-nav[hidden] {
  display: none
}
.mobile-nav a {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.025em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line)
}
.mobile-nav a:last-child {
  margin-top: auto;
  border: 0;
  height: 56px;
  border-radius: var(--pill);
  background: var(--green);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

/* ---------- Hero ---------- */
/* Ocupa la pantalla completa (la cabecera va encima): el último cuadro de la apertura y la
   foto de la fachada son la misma imagen. El texto va abajo a la izquierda. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px var(--gutter) clamp(104px, 13vh, 150px);
  color: #fff;
  overflow: hidden
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%
}
/* El lienzo de la apertura cubre la misma caja que la foto y, terminada la apertura, se queda
   con el último cuadro como imagen de la página. Sin apertura no existe. */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: none
}
html[data-intro="activa"] .hero-canvas, html[data-intro="terminada"] .hero-canvas {
  display: block
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0e1a1459 0%, #0e1a1400 28%, #0e1a1400 48%, #0e1a14b3 100%)
}
.hero-copy {
  max-width: 780px
}
.hero-copy .eyebrow {
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: var(--pill);
  background: #ffffff1f;
  border: 1px solid #ffffff33;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 400;
  margin-bottom: 26px
}
.hero-copy .eyebrow .punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fe0ad;
  box-shadow: 0 0 0 4px #8fe0ad33
}
.hero h1 {
  color: #fff
}
.hero-description {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: #ffffffd9;
  max-width: 560px;
  margin: 22px 0 32px
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #ffffff2e
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}
.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 11px;
  border-radius: var(--pill);
  background: #ffffff1f;
  border: 1px solid #ffffff2e;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  white-space: nowrap
}
.hero-facts svg {
  width: 16px;
  height: 16px
}
.photo-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 13px;
  border-radius: var(--pill);
  background: #ffffff1f;
  border: 1px solid #ffffff40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s
}
.photo-count:hover {
  background: #ffffff36
}
.grid-icon svg {
  width: 17px;
  height: 17px
}

/* ---------- Planea tu visita: la tarjeta que monta el borde del hero ---------- */
.visit-wrap {
  position: relative;
  z-index: 5;
  margin: -58px auto 0;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container)
}
.visit-bar {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 12px 28px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid #ffffff
}
.visit-label p {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.2
}
.visit-label .tiny {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px
}
.visit-bar label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  border-left: 1px solid var(--line);
  transition: background .2s;
  cursor: pointer
}
.visit-bar label:hover, .visit-bar label:focus-within {
  background: var(--sand)
}
.visit-bar label > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted)
}
.visit-bar select, .visit-bar input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none
}
.visit-bar select {
  padding-right: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858c87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px
}
.visit-bar input::-webkit-calendar-picker-indicator {
  opacity: .55
}
.visit-bar .btn {
  height: 56px;
  padding: 0 28px
}

/* ---------- Secciones ---------- */
.section {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 9vw, 128px) var(--gutter)
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px
}
.section-heading h2 {
  max-width: 14ch
}

/* La finca */
.finca-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy images" "facts images" "note images" "amenities amenities";
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 28px;
  align-items: start
}
.finca-heading {
  grid-area: copy
}
.finca-heading h2 {
  max-width: 13ch
}
.finca-copy {
  margin-top: 26px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start
}
.finca-copy p {
  font-size: 17px;
  line-height: 1.65
}
.finca-copy .text-link {
  margin-top: 6px
}
.stay-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px
}
.stay-facts > div {
  padding: 18px 16px;
  border-radius: var(--r-md);
  background: var(--sand)
}
.stay-facts strong {
  display: block;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink)
}
.stay-facts span {
  display: block;
  font-size: 13px;
  color: var(--body);
  margin-top: 8px
}
.source-note {
  grid-area: note;
  font-size: 13px;
  color: var(--muted)
}
.source-note a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line)
}
.finca-images {
  grid-area: images;
  display: grid;
  gap: 14px
}
.finca-images figure {
  margin: 0
}
.finca-images img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover
}
.house-photo img {
  aspect-ratio: 4 / 3
}
.detail-photo img {
  aspect-ratio: 16 / 9
}
.finca-images figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px
}
.amenities {
  grid-area: amenities;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px
}
.amenities > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line)
}
.amenities span {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center
}
.amenities svg {
  width: 21px;
  height: 21px
}
.amenities p {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3
}

/* Experiencias */
.experience-section {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 9vw, 128px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center
}
.experience-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--sand)
}
.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}
.image-note {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: #0e1a14b3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px
}
.experience-content h2 {
  max-width: 12ch
}
.experience-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--sand);
  margin: 28px 0 24px
}
.experience-tabs button {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--pill);
  font-size: 14px;
  color: var(--body);
  transition: background .25s, color .25s, box-shadow .25s
}
.experience-tabs button:hover {
  color: var(--ink)
}
.experience-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm)
}
#experience-panel {
  border-radius: 8px
}
#experience-panel h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 12px
}
#experience-panel p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px
}
.experience-content > .btn {
  margin-top: 26px
}
.experience-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted)
}
.experience-index i {
  width: 40px;
  height: 1px;
  background: var(--sand-2)
}

/* Galería */
.gallery-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}
.gallery-filters button {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--body);
  transition: background .2s, color .2s, border-color .2s
}
.gallery-filters button:hover {
  border-color: var(--ink);
  color: var(--ink)
}
.gallery-filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 12px
}
.gallery-photo {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sand);
  text-align: left;
  transform: translateZ(0)
}
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease)
}
.gallery-photo:hover img, .gallery-photo:focus-visible img {
  transform: scale(1.04)
}
.gallery-photo > span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: #0e1a14b3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .3s var(--ease)
}
.gallery-photo:hover > span, .gallery-photo:focus-visible > span {
  opacity: 1;
  transform: none
}
.gallery-wide {
  grid-column: span 2
}
.gallery-tall {
  grid-row: span 2
}
.gallery-grid.filtered .gallery-wide, .gallery-grid.filtered .gallery-tall {
  grid-column: auto;
  grid-row: auto
}
.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px
}
.gallery-caption {
  font-size: 13px;
  color: var(--muted);
  max-width: 560px
}

/* La noche: una tarjeta grande con la foto y el texto abajo */
.night-banner {
  position: relative;
  isolation: isolate;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  margin: 0 auto;
  min-height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(32px, 5vw, 64px);
  color: #fff
}
.night-banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover
}
.night-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0e1a1400 30%, #0e1a14bf 100%)
}
.night-copy h2 {
  color: #fff;
  max-width: 14ch;
  margin-bottom: 28px
}

/* Ubicación */
.location-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center
}
.location-section h2 {
  max-width: 13ch
}
.location-description {
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
  margin: 22px 0 26px
}
.address {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 22px
}
.location-card {
  position: relative;
  isolation: isolate;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-md);
  background: var(--sand)
}
.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease)
}
.location-card:hover img {
  transform: scale(1.03)
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  white-space: nowrap
}
.map-pin > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center
}
.map-pin svg {
  width: 20px;
  height: 20px
}
.map-pin p {
  font-size: 14px;
  line-height: 1.25;
  color: var(--muted)
}
.map-pin strong {
  display: block;
  font-weight: 600;
  color: var(--ink)
}
.map-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: #ffffffe6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600
}

/* Preguntas */
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start
}
.faq-section > div:first-child {
  position: sticky;
  top: 100px
}
.host-contact {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 380px
}
.host-contact > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted)
}
.host-contact strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em
}
.host-contact > a:not(.btn) {
  font-size: 16px;
  color: var(--green-text);
  font-weight: 600
}
.host-contact .btn {
  margin-top: 12px;
  height: 44px;
  padding: 0 20px;
  font-size: 14px
}
.faqs details {
  border-bottom: 1px solid var(--line)
}
.faqs details:first-child {
  border-top: 1px solid var(--line)
}
.faqs summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  cursor: pointer
}
.faqs summary::-webkit-details-marker {
  display: none
}
.faqs summary span:last-child {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s var(--ease), background .2s, color .2s
}
.faqs details[open] summary span:last-child {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff
}
.faqs details p {
  padding: 0 60px 24px 0;
  font-size: 15.5px;
  line-height: 1.65
}

/* Cierre: una tarjeta verde con la invitación */
.closing {
  position: relative;
  overflow: hidden;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  margin: 0 auto clamp(80px, 9vw, 128px);
  padding: clamp(60px, 8vw, 112px) clamp(28px, 6vw, 96px);
  border-radius: var(--r-xl);
  background: var(--green);
  color: #fff;
  text-align: center
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 15% 0%, #2f6a52 0, transparent 60%), radial-gradient(50% 70% at 95% 100%, #112b20 0, transparent 60%)
}
.closing > * {
  position: relative
}
.closing .eyebrow {
  color: #a9d8bd
}
.closing h2 {
  color: #fff;
  max-width: 16ch;
  margin: 0 auto 36px
}
.closing-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap
}

/* ---------- Pie ---------- */
footer {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 32px
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line)
}
.footer-main > p {
  font-size: 15px;
  color: var(--body)
}
.socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}
.socials a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  font-size: 14px;
  transition: background .2s
}
.socials a:hover {
  background: var(--sand)
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted)
}
.footer-bottom div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap
}
.footer-bottom a, .footer-bottom button {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s
}
.footer-bottom a:hover, .footer-bottom button:hover {
  color: var(--ink)
}

/* ---------- WhatsApp flotante ---------- */
.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 14px;
  border-radius: var(--pill);
  background: var(--wa);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px -8px #25d36699, var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s
}
.floating-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px #25d366b3, var(--shadow-sm)
}
.floating-wa[hidden] {
  display: none
}
.floating-wa svg {
  width: 26px;
  height: 26px
}

/* ---------- Diálogos ---------- */
dialog {
  width: min(560px, calc(100% - 32px));
  margin: auto;
  padding: 40px;
  border: 0;
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg)
}
dialog::backdrop {
  background: #0e1a1480;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px)
}
dialog h2 {
  font-size: 32px;
  margin-bottom: 12px
}
dialog > p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s
}
.dialog-close:hover {
  background: var(--sand-2)
}
dialog form {
  display: flex;
  flex-direction: column;
  gap: 16px
}
dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink)
}
dialog label small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted)
}
dialog input, dialog select, dialog textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s
}
dialog select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858c87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px
}
dialog textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55
}
dialog input:focus, dialog select:focus, dialog textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #1f4a3a1f;
  background: #fff
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5
}
.form-error {
  font-size: 13px;
  font-weight: 600;
  color: #b4322e
}
.form-error:empty {
  display: none
}
dialog form .btn {
  margin-top: 4px
}
#consult-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start
}
#consult-result[hidden] {
  display: none
}
#consult-result textarea {
  min-height: 180px;
  font-size: 14px
}
#consult-result .form-row {
  width: 100%
}
#consult-result .form-row .btn {
  width: 100%
}
.share-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px
}
.share-options .btn {
  width: 100%
}
.share-options .text-link {
  margin-top: 8px
}

/* Galería a pantalla completa */
.lightbox {
  width: min(1200px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible
}
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 120px);
  border-radius: var(--r-md);
  object-fit: contain;
  box-shadow: var(--shadow-lg)
}
.lightbox figcaption {
  font-size: 14px;
  color: #ffffffd9;
  text-align: center;
  padding: 0 60px
}
.lightbox .dialog-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff26;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: background .2s
}
.lightbox .dialog-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: #ffffff40
}
.lightbox .dialog-close {
  right: 12px;
  top: 12px;
  z-index: 2;
  background: #0e1a1480
}
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%)
}
.lightbox-prev {
  left: 12px
}
.lightbox-next {
  right: 12px
}

/* ---------- Aviso ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease)
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  .finca-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "images" "facts" "note" "amenities"
  }
  .finca-images {
    grid-template-columns: 1fr 1fr
  }
  .detail-photo img {
    aspect-ratio: 4 / 3
  }
  .stay-facts {
    max-width: 640px
  }
  .experience-section, .location-section, .faq-section {
    grid-template-columns: 1fr
  }
  .faq-section > div:first-child {
    position: static
  }
  .experience-image {
    aspect-ratio: 16 / 10
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px
  }
  .visit-bar {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 16px
  }
  .visit-label {
    grid-column: 1 / -1;
    padding: 4px 8px 8px
  }
  .visit-bar label {
    border-left: 0;
    background: var(--sand)
  }
  .visit-bar .btn {
    grid-column: 1 / -1
  }
}

/* ---------- Cabecera compacta (tabletas y teléfonos): sin la píldora de navegación, con menú ---------- */
@media (max-width: 1000px) {
  #header {
    display: flex;
    justify-content: space-between
  }
  .desktop-nav {
    display: none
  }
  .menu-button {
    display: block
  }
}

/* ---------- Teléfonos ---------- */
@media (max-width: 760px) {
  #header {
    height: 72px
  }
  .brand {
    font-size: 15px
  }
  .header-actions {
    gap: 8px
  }
  .header-actions .btn {
    padding: 0 14px;
    font-size: 13px
  }
  .hero-facts {
    gap: 6px
  }
  .hero-facts span {
    height: 34px;
    padding: 0 11px 0 9px;
    gap: 6px;
    font-size: 12.5px
  }
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 100px;
    padding-bottom: 116px
  }
  .hero h1 {
    max-width: none
  }
  .hero-description {
    margin: 18px 0 26px
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center
  }
  .hero-foot {
    margin-top: 30px;
    padding-top: 18px
  }
  .photo-count {
    display: none
  }
  .visit-wrap {
    margin-top: -64px
  }
  .visit-bar {
    grid-template-columns: 1fr;
    gap: 8px
  }
  .finca-images {
    grid-template-columns: 1fr
  }
  .stay-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }
  .amenities > div {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 12px
  }
  .amenities span {
    flex-basis: auto;
    width: 38px;
    height: 38px
  }
  .amenities p {
    font-size: 14px
  }
  .experience-tabs {
    display: flex
  }
  .experience-tabs button {
    flex: 1;
    padding: 0 8px
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 8px
  }
  .gallery-photo > span {
    display: none
  }
  .night-banner {
    min-height: 480px
  }
  .faqs summary {
    font-size: 16px;
    padding: 18px 0
  }
  .faqs details p {
    padding-right: 0
  }
  .closing h2 {
    margin-bottom: 28px
  }
  .closing-actions .btn {
    width: 100%
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start
  }
  .floating-wa {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%
  }
  .floating-wa span {
    display: none
  }
  dialog {
    padding: 32px 22px 26px
  }
  dialog h2 {
    font-size: 28px
  }
  .form-row {
    grid-template-columns: 1fr
  }
  .lightbox figcaption {
    padding: 0 8px
  }
}
@media (max-width: 480px) {
  .header-actions .btn {
    display: none
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }
  html.js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }
  .gallery-photo img, .location-card img, .btn, .floating-wa {
    transition: none
  }
}

/* --- Apertura: el descenso desde el cielo hasta la fachada, cuadro a cuadro (apertura.js),
   con la mecánica de la apertura de Urban Flash (ADR 0007). La capa es solo el cargador
   (el cielo, el logo y el avance): mientras corre la toma es transparente, porque los cuadros
   se pintan en el lienzo del hero (.hero-canvas), y al terminar se quita de golpe: el último
   cuadro ya es la foto de la página. La capa existe solo cuando el script la activa. ---- */
html[data-intro="activa"] {
  overflow: hidden
}

/* En inglés, el cuerpo espera a que idiomas.js aplique el diccionario: así no se ve el español un instante. */
html[data-idioma="en"]:not([data-traducido]) body {
  visibility: hidden
}
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: #5b93b4;
  color: #fbfaf3
}
/* El primer cuadro, con la misma caja que el canvas (apertura.js le da el alto). */
.intro-poster img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%
}
html[data-intro="activa"] .intro {
  display: block
}
.intro[data-fase="reproduciendo"] {
  background: transparent
}
.intro[data-fase="reproduciendo"] .intro-poster {
  display: none
}
/* El cargador: el primer cuadro (el cielo) con el logo y una barra con el avance real. */
.intro-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  text-align: center;
  transform: translate(-50%,-54%);
  transition: opacity .5s ease-out, transform .9s ease-out
}
.intro-brand:before {
  content: '';
  position: absolute;
  inset: -45% -70%;
  z-index: -1;
  background: radial-gradient(closest-side, #0b26364d, transparent)
}
.intro-brand img {
  width: 240px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px #0b263666)
}
.intro-brand p {
  font-size: 12px;
  letter-spacing: 3.5px;
  color: #fbfaf3;
  margin-top: 18px;
  text-shadow: 0 1px 14px #0b263699
}
.intro-line {
  display: block;
  width: 110px;
  height: 1px;
  margin: 20px auto 0;
  background: #fbfaf355;
  overflow: hidden
}
.intro-line i {
  display: block;
  height: 100%;
  background: #e6c777;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .25s
}
.intro[data-fase="reproduciendo"] .intro-brand {
  opacity: 0;
  transform: translate(-50%,-54%) scale(1.08);
  pointer-events: none
}
.skip-intro {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 1px;
  color: #fbfaf3;
  padding: 12px 20px;
  border: 1px solid #fbfaf355;
  border-radius: 3px;
  background: #0b263633;
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s
}
.skip-intro:hover {
  background: #0b263666;
  border-color: #fbfaf3aa
}
.skip-intro > span:last-child {
  margin-left: 20px
}
/* Mientras corre, la cabecera y el hero esperan escondidos. Al terminar entran por orden:
   la sombra sobre la foto, el texto escalonado, los bordes, la barra de visita y al final
   la cabecera, que baja. Sin apertura (visitas siguientes, ?intro=0) todo está desde el inicio. */
html[data-intro="activa"] header,
html[data-intro="activa"] .hero-shade,
html[data-intro="activa"] .hero-copy > *,
html[data-intro="activa"] .hero-foot,
html[data-intro="activa"] .visit-wrap,
html[data-intro="activa"] .floating-wa {
  opacity: 0
}
html[data-intro="terminada"] .hero-shade {
  animation: fundir 1.2s ease-out .1s both
}
html[data-intro="terminada"] .hero-copy > * {
  animation: aparecer 1s cubic-bezier(.16,.6,.3,1) .55s both
}
html[data-intro="terminada"] .hero-copy > :nth-child(2) {
  animation-delay: .7s
}
html[data-intro="terminada"] .hero-copy > :nth-child(3) {
  animation-delay: .85s
}
html[data-intro="terminada"] .hero-copy > :nth-child(4) {
  animation-delay: 1s
}
html[data-intro="terminada"] .hero-foot {
  animation: fundir 1s ease-out 1.2s both
}
html[data-intro="terminada"] .visit-wrap {
  animation: aparecer 1s cubic-bezier(.16,.6,.3,1) 1.3s both
}
html[data-intro="terminada"] header {
  animation: bajar 1s cubic-bezier(.16,.6,.3,1) 1.4s both
}
html[data-intro="terminada"] .floating-wa {
  animation: fundir .8s ease-out 2s both
}
@keyframes fundir {
  from {
    opacity: 0
  }
}
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(18px)
  }
}
@keyframes bajar {
  from {
    opacity: 0;
    transform: translateY(-100%)
  }
}
