:root {
  --ivory: #f8f4ec;
  --sand: #efe8db;
  --paper: #fffdf9;
  --ink: #2c2c2a;
  --gray: #58595b;
  --muted: #6d6d68;
  --terra: #c24a17;
  --terra-dark: #a53d10;
  --forest: #1f5c34;
  --line: rgba(44, 44, 42, 0.14);
  --err: #b3261e;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 60px -24px rgba(20, 28, 24, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.eyebrow--dark { color: var(--terra); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: 0.01em;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary[disabled] { opacity: 0.7; cursor: progress; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; padding-bottom: 56px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 560px 300px at max(16px, calc(50% - 590px)) 0, rgba(12, 20, 16, 0.5) 0%, rgba(12, 20, 16, 0.22) 55%, transparent 100%),
    linear-gradient(180deg, rgba(18, 26, 22, 0.55) 0%, rgba(18, 26, 22, 0.28) 35%, rgba(18, 26, 22, 0.72) 100%);
}
.hero__top { padding-top: 22px; }
.brand img { width: 128px; height: auto; }
.hero__grid { display: grid; gap: 36px; padding-top: 48px; }
.hero__copy h1 { font-size: clamp(44px, 9vw, 80px); line-height: 0.96; margin: 16px 0 20px; text-wrap: balance; }
.lead { font-size: clamp(17px, 2.4vw, 20px); max-width: 34em; color: rgba(255, 255, 255, 0.92); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 30px; font-size: 14px; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts .ic { width: 20px; height: 20px; opacity: 0.9; }

/* Tarjeta del formulario */
.card {
  background: var(--paper); color: var(--ink);
  border-radius: 20px; padding: 26px 22px 24px; box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}
.card h2 { font-size: 32px; }
.card__sub { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }

.field { margin-bottom: 12px; min-width: 0; }
.row { display: grid; gap: 0 12px; }
label, .field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--gray); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 88px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a3a29b; }
input:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 92, 52, 0.18); }
input[aria-invalid="true"] { border-color: var(--err); }
input[type="date"] { appearance: none; -webkit-appearance: none; min-width: 0; }

.err { color: var(--err); font-size: 13px; margin-top: 5px; min-height: 0; }
.err:empty { display: none; }
.err--form { margin: 0 0 12px; font-size: 14px; }
.nights { font-size: 13px; font-weight: 600; color: var(--forest); margin: -4px 0 14px; min-height: 0; }
.nights:empty { display: none; }

.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper input { width: 70px; text-align: center; padding-inline: 4px; -moz-appearance: textfield; appearance: textfield; font-weight: 700; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  font-size: 24px; line-height: 1; display: grid; place-items: center; transition: border-color 0.15s, background-color 0.15s;
}
.stepper__btn:hover { border-color: var(--forest); background: #f1f6f2; }
.stepper__hint { font-size: 13px; color: var(--muted); }

.comment { margin: 2px 0 16px; }
.comment summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--forest); list-style: none; padding: 6px 0; }
.comment summary::-webkit-details-marker { display: none; }
.comment summary::before { content: "+"; display: inline-block; width: 18px; font-size: 18px; }
.comment[open] summary::before { content: "−"; }
.comment summary span { color: var(--muted); font-weight: 500; }
.comment textarea { margin-top: 8px; }

.ts:empty { display: none; }
.ts iframe { margin: 18px 0 6px; max-width: 100%; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--gray); margin: 4px 0 6px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--forest); }
.check a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card .btn--primary { width: 100%; margin-top: 10px; }

.done { text-align: center; padding: 18px 4px 10px; }
.done:focus { outline: none; }
.done__ic { width: 56px; height: 56px; margin: 0 auto 14px; fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin-bottom: 12px; }
.done p { color: var(--gray); }

/* Secciones */
.sec { padding: 84px 0; }
.sec--sand { background: var(--sand); }
.sec__head { max-width: 640px; margin-bottom: 40px; }
.sec__head h2 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 14px; text-wrap: balance; }
.sec__head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }

.trio { display: grid; gap: 28px; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.tile:nth-child(3) img { aspect-ratio: 4 / 5; }
.tile__txt { padding: 16px 2px 0; }
.tile h3 { font-size: 28px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 15px; }

.stay { display: grid; gap: 20px; margin-bottom: 44px; }
.stay__card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stay__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stay__body { padding: 24px; }
.stay__card--plain { display: flex; align-items: center; background: transparent; border-style: dashed; }
.stay__cap { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); }
.stay h3 { font-size: 32px; margin: 8px 0 14px; }
.stay li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray); margin-bottom: 10px; font-size: 15px; }
.stay li .ic { color: var(--forest); margin-top: 1px; }
.stay__note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.amen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.amen li { background: var(--ivory); padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.sec--sand .amen li { background: var(--sand); }
.amen .ic { width: 32px; height: 32px; color: var(--forest); stroke-width: 1.3; }
.amen small { font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Galería */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; color: var(--gray); transition: all 0.15s; }
.chip:hover { border-color: var(--forest); }
.chip.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }
.gallery { column-count: 2; column-gap: 10px; }
.shot { display: block; width: 100%; padding: 0; margin: 0 0 10px; border: 0; background: var(--sand); border-radius: 10px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.shot img { width: 100%; transition: transform 0.5s ease, opacity 0.3s; }
.shot:hover img { transform: scale(1.04); }
.shot[hidden] { display: none; }

/* Ubicación */
.loc { display: grid; gap: 32px; align-items: stretch; }
.loc h2 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 20px; }
.loc__list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--gray); }
.loc__list li:last-child { border-bottom: 1px solid var(--line); }
.loc__list strong { color: var(--ink); }
.loc__map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--paper); border: 1px solid var(--line); }
.loc__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(0.85); }

/* Preguntas */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 4px; font-family: var(--serif); font-size: 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 24px; font-weight: 400; color: var(--terra); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p, .faq details > ul { padding: 0 4px 22px; color: var(--gray); max-width: 60ch; }
.faq li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.faq li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }

/* Cierre y footer */
.closing { background: var(--forest); color: #fff; text-align: center; padding: 76px 0; }
.closing h2 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 12px; text-wrap: balance; }
.closing p { margin-bottom: 28px; color: rgba(255, 255, 255, 0.85); }
.closing .btn--primary { background: #fff; color: var(--forest); }
.closing .btn--primary:hover { background: var(--sand); }

.foot { background: var(--ivory); padding: 56px 0 28px; font-size: 15px; color: var(--gray); }
.foot__grid { display: grid; gap: 28px; }
.foot__brand img { width: 150px; }
.foot__h { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: var(--terra); }
.foot__copy { width: min(1180px, 100% - 32px); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Formulario acoplado al borde (solo escritorio) */
.card-slot { min-width: 0; }
.rail, .card__close { display: none; }

.foot__bottom { width: min(1180px, 100% - 32px); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot__bottom .foot__copy { width: auto; margin: 0; padding: 0; border: 0; }
.credit { flex: none; display: block; line-height: 0; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.credit img { width: 40px; height: auto; border-radius: 8px; }
.credit:hover { opacity: 1; transform: translateY(-1px); }

/* Barra fija móvil */
.sticky {
  position: fixed; inset: auto 0 0 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 244, 236, 0.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.sticky.is-on { transform: none; }
.sticky .btn { width: 100%; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(14, 18, 16, 0.94); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: 16px 0; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; text-align: center; min-width: 0; }
.lb__fig img { max-height: 80vh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 6px; }
.lb__fig figcaption { color: rgba(255, 255, 255, 0.8); font-size: 14px; margin-top: 12px; padding: 0 8px; }
.lb__close, .lb__nav { background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; width: 56px; height: 56px; opacity: 0.85; }
.lb__close:hover, .lb__nav:hover { opacity: 1; }
.lb__close { position: absolute; top: 8px; right: 8px; font-size: 44px; z-index: 2; }

/* Tablet y escritorio */
@media (min-width: 640px) {
  .row { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .stay { grid-template-columns: 1.1fr 0.9fr; }
  .amen { grid-template-columns: repeat(3, 1fr); }
  .gallery { column-count: 3; column-gap: 14px; }
  .shot { margin-bottom: 14px; }
  .foot__grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .rail {
    display: flex; align-items: center; position: fixed; right: 0; top: 50%; z-index: 60;
    padding: 24px 13px; border: 0; border-radius: 12px 0 0 12px; background: var(--terra); color: #fff;
    writing-mode: vertical-rl; font-size: 13px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
    box-shadow: -6px 10px 28px -10px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; transform: translate(100%, -50%);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.7s, background-color 0.2s, padding 0.2s;
  }
  .rail.is-on {
    opacity: 1; visibility: visible; transform: translate(0, -50%);
    transition: opacity 0.6s ease 0.2s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, visibility 0s, background-color 0.2s, padding 0.2s;
  }
  .rail:hover { background: var(--terra-dark); padding-right: 19px; }
  .backdrop {
    position: fixed; inset: 0; z-index: 1; background: rgba(14, 18, 16, 0.5);
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  }
  .dock-open .backdrop { opacity: 1; visibility: visible; transition: opacity 0.5s ease, visibility 0s; }
  .dock .card {
    position: fixed; top: 50%; right: 0; z-index: 2; width: min(460px, 94vw);
    max-height: calc(100svh - 32px); overflow-y: auto; border-radius: 20px 0 0 20px;
    transform: translate(calc(100% + 40px), -50%);
  }
  .dock-ready .card { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .dock-open .card { transform: translate(0, -50%); }
  .dock-open .card__close {
    display: grid; place-items: center; position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
    border: 0; border-radius: 50%; background: transparent; color: var(--gray); font-size: 28px; line-height: 1;
  }
  .dock-open .card__close:hover { background: var(--sand); }
  .hero { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 40px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; flex: 0 0 auto; padding-top: 6px; margin-block: auto; }
  .hero__cta { display: none; }
  .hero__copy { align-self: start; padding-top: 56px; }
  .brand img { width: 150px; }
  .card { padding: 24px 28px 22px; }
  .hero__top { padding-top: 14px; }
  .brand img { width: 176px; }
  .loc { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .amen { grid-template-columns: repeat(5, 1fr); }
  .sticky { display: none; }
}
@media (max-width: 959px) {
  .hero__grid { padding-top: 36px; }
  .hero__copy { padding-bottom: 4px; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Páginas internas (política, gracias) */
.doc__top { padding: 18px 0; border-bottom: 1px solid var(--line); }
.doc__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc__bar img { width: 96px; }
.doc__back { font-size: 14px; font-weight: 600; color: var(--forest); text-underline-offset: 3px; }
.doc { padding-top: 56px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin: 10px 0 8px; }
.doc__date { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 28px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--gray); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; }
.doc li { margin-bottom: 4px; }
.doc a { color: var(--forest); text-underline-offset: 3px; }
.thanks { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 32px 20px; max-width: 560px; margin: 0 auto; }
.thanks img:first-child { width: 150px; margin-bottom: 8px; }
.thanks h1 { font-size: clamp(36px, 7vw, 52px); }
.thanks p { color: var(--gray); }
.thanks .btn { margin-top: 12px; }
