/* =========================================================
   POSADA · estilos
   Para cambiar la identidad alcanza con tocar los colores y tipografías de :root.
   Pensado para leerse cómodo: letra base de 18px, botones grandes y buen contraste.
   ========================================================= */

:root {
  /* Colores */
  --paper: #f6f1e7;          /* fondo general, papel cálido */
  --paper-2: #efe6d6;        /* fondo de secciones alternas */
  --card: #fffdf8;           /* tarjetas y formularios */
  --ink: #2b2621;            /* texto principal */
  --ink-soft: #5c5349;       /* texto secundario */
  --line: #dccfbb;           /* bordes y separadores */
  --forest: #2f4b3c;         /* color de marca (verde bosque) */
  --forest-deep: #22382c;
  --copper: #9d5430;         /* acento (cobre) */
  --copper-soft: #f0dfcf;
  --gold: #b88a4a;           /* filetes y detalles */
  --busy: #e4dccf;           /* días ocupados en el calendario */

  /* Tipografías */
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Medidas */
  --wrap: 1180px;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(43 38 33 / 6%), 0 8px 28px rgb(43 38 33 / 8%);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 112.5%; /* 18px */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--copper); font-weight: 400; }
p { margin: 0 0 1em; }
small { font-size: .8em; color: var(--ink-soft); font-weight: 400; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 820px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  font: 700 1rem/1.2 var(--font-text);
  border: 2px solid transparent; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-deep); color: #fff; }
.btn--accent { background: var(--copper); color: #fff; }
.btn--accent:hover { background: #844424; color: #fff; }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--lg { min-height: 56px; font-size: 1.05rem; padding-inline: 1.6em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font: 700 .78rem/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section__head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section__head p:last-child { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.section__head--light h2 { color: #fff; }
.section__head--light h2 em { color: #e8c39a; }
.section__head--light .eyebrow { color: #e8c39a; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: min(120px, 25vw); height: 1px; background: var(--line); }
.ornament svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Arcos: el marco característico del sitio (recuerda a las ventanas de una casona) */
.arch { margin: 0; border-radius: 999px 999px 0 0; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--framed { outline: 1px solid var(--gold); outline-offset: 10px; }

/* ---------- Franja superior ---------- */
.topbar { background: var(--forest-deep); color: #e9e2d4; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .5em; }
.topbar__contact { gap: 1.5em !important; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(246 241 231 / 94%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgb(43 38 33 / 6%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__emblem {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--forest); color: var(--forest);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold);
}
.brand__emblem svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.brand__emblem--light { border-color: #e8c39a; color: #e8c39a; box-shadow: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 500 1.45rem/1.1 var(--font-title); }
.brand__sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
.nav a:not(.btn):hover { color: var(--copper); background: var(--paper-2); }
.nav__cta { margin-left: 10px; }

.menu-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  font: 700 1rem var(--font-text); color: var(--forest);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer;
}

/* ---------- Inicio ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 0; position: relative; }
.hero::before {
  /* luz suave detrás del texto */
  content: ""; position: absolute; inset: 0 0 30% 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 15% 30%, #fbf7ef, transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 400; margin-bottom: .45em; }
.hero h1 em { display: block; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero__rating { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.hero__rating strong { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 20px; height: 20px; fill: currentColor; }

.hero__media { position: relative; padding: 14px; }
.hero__photo { aspect-ratio: 4 / 5; max-height: 640px; margin-left: auto; box-shadow: var(--shadow); }

.seal {
  position: absolute; left: -18px; bottom: 9%;
  width: clamp(110px, 12vw, 140px); height: auto;
  background: var(--paper); border-radius: 50%;
  box-shadow: var(--shadow);
}
.seal text { font: 700 9.6px var(--font-text); letter-spacing: .21em; fill: var(--forest); }
.seal__ring { fill: none; stroke: var(--gold); stroke-width: 1; }
.seal__leaf { fill: none; stroke: var(--copper); stroke-width: 1.3; }

/* Búsqueda rápida */
.quick {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.quick__field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }

input, select, textarea {
  width: 100%; min-height: 52px; padding: .6em .8em;
  font: 400 1.05rem var(--font-text); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgb(47 75 60 / 18%); }
input.is-invalid, textarea.is-invalid { border-color: #b3261e; }

/* ---------- La casa ---------- */
.about { padding-top: clamp(80px, 11vw, 140px); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; padding-bottom: 60px; }
.about__main { aspect-ratio: 3 / 4; width: 82%; box-shadow: var(--shadow); }
.about__small {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; margin: 0;
  border-radius: 50%; overflow: hidden; border: 8px solid var(--paper); box-shadow: var(--shadow);
}
.about__small img { width: 100%; height: 100%; object-fit: cover; }
.about__text h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.about__text > p { color: var(--ink-soft); font-size: 1.05rem; }
.signature { font: italic 400 1.5rem var(--font-title); color: var(--forest) !important; margin-top: 1.4em; }
.signature span { font: 400 .9rem var(--font-text); color: var(--ink-soft); font-style: normal; }

.facts { list-style: none; padding: 28px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts strong { display: block; font: 500 2rem/1.1 var(--font-title); color: var(--forest); }
.facts span { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- Habitaciones ---------- */
.rooms__list { display: grid; gap: clamp(48px, 7vw, 88px); }
.room { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.room:nth-child(even) .room__media { order: 2; }

.room__media { position: relative; }
.room__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
/* Etiqueta de precio con forma de sello */
.room__price {
  position: absolute; top: 18px; right: 18px; transform: rotate(3deg);
  padding: 12px 16px; text-align: center; line-height: 1.15;
  background: var(--card); color: var(--ink);
  border-radius: 6px; box-shadow: var(--shadow);
  outline: 1px dashed var(--gold); outline-offset: -6px;
}
.room:nth-child(even) .room__price { right: auto; left: 18px; transform: rotate(-3deg); }
.room__price small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.room__price strong { display: block; font: 600 1.35rem var(--font-title); color: var(--copper); }

.room__index { font: italic 400 1rem var(--font-title); color: var(--gold); margin-bottom: .3em; }
.room h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.room__desc { color: var(--ink-soft); font-size: 1.05rem; }
.room__meta { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.room__meta li { display: flex; align-items: center; gap: 8px; }
.room__meta .icon { color: var(--copper); }
.room__amenities { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.room__amenities li { padding: 4px 12px; font-size: .88rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Servicios ---------- */
.services { background: var(--forest); color: #e9e2d4; position: relative; }
.services::before {
  /* filete doble, como el borde de una etiqueta antigua */
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgb(232 195 154 / 30%); border-radius: 4px;
}
.services__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgb(232 195 154 / 20%); border: 1px solid rgb(232 195 154 / 20%); border-radius: var(--radius); overflow: hidden; }
.services__grid li { background: var(--forest); padding: 30px 26px; }
.services__grid .icon { width: 38px; height: 38px; color: #e8c39a; stroke-width: 1.3; margin-bottom: 14px; }
.services__grid h3 { font-size: 1.25rem; color: #fff; margin-bottom: .35em; }
.services__grid p { font-size: .95rem; margin: 0; color: #d7cfbf; }

/* ---------- Galería ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.g { padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g:hover img { transform: scale(1.04); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgb(20 18 15 / 88%); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 80vh; border-radius: 6px; }
.lightbox__caption { color: #eee; margin: 14px 16px 0; text-align: center; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 56px; height: 56px;
  color: #fff; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; cursor: pointer;
}
.lightbox__btn:hover { background: rgb(255 255 255 / 24%); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 18px; top: 50%; translate: 0 -50%; }

/* ---------- Reservas ---------- */
.booking { background: var(--paper-2); }
.booking__grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.booking__steps { display: grid; gap: 22px; min-width: 0; }

.step { margin: 0; padding: clamp(20px, 3vw, 30px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font: 500 1.4rem var(--font-title); }
.step legend + * { clear: both; }
.step__num {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  font: 700 1rem var(--font-text); color: #fff; background: var(--forest); border-radius: 50%;
}
.step__hint { color: var(--ink-soft); margin-bottom: 16px; }
.step__hint.is-warning { color: #8a3a12; font-weight: 600; }

/* Selector de habitación */
.room-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pick {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 10px; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: #fff;
  border: 2px solid var(--line); border-radius: 10px;
  transition: border-color .2s, background-color .2s;
}
.pick:hover { border-color: var(--gold); }
.pick[aria-checked="true"] { border-color: var(--forest); background: #f3f6f2; box-shadow: inset 0 0 0 1px var(--forest); }
.pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.pick__name { display: block; font-weight: 700; line-height: 1.25; }
.pick__info { display: block; font-size: .85rem; color: var(--ink-soft); }
.pick__status { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.pick__status--ok { background: #e3eee5; color: #24553a; }
.pick__status--no { background: #f6e3da; color: #8a3a12; }
.pick.is-unavailable { opacity: .75; }

/* Calendario */
.calendar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; position: relative; }
.cal__nav { position: absolute; top: -4px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--forest); background: #fff; border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer; z-index: 1; }
.cal__nav:hover:not([disabled]) { border-color: var(--forest); }
.cal__nav[disabled] { opacity: .35; cursor: default; }
.cal__nav--prev { left: 0; }
.cal__nav--next { right: 0; }
.cal__month h4 { margin: 4px 0 14px; text-align: center; font: 500 1.2rem/36px var(--font-title); }
.cal__month h4::first-letter { text-transform: uppercase; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; padding-bottom: 6px; }
.day {
  position: relative; aspect-ratio: 1; min-height: 40px; padding: 0;
  font: 600 1rem var(--font-text); color: var(--ink);
  background: #fff; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.day:hover:not([aria-disabled="true"]) { border-color: var(--forest); }
.day.is-high::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }
.day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.day[aria-disabled="true"] { cursor: not-allowed; color: #b0a595; background: transparent; }
.day.is-busy { background: var(--busy); color: #9a8e7d; text-decoration: line-through; }
.day.is-range { background: #dbe5dc; color: var(--forest-deep); border-radius: 0; }
.day.is-preview { background: #ebf0ea; }
.day.is-start, .day.is-end { background: var(--forest); color: #fff; }
.day.is-start { border-radius: 8px 0 0 8px; }
.day.is-end { border-radius: 0 8px 8px 0; }
.day.is-start.is-end, .day.is-start:not(.has-end) { border-radius: 8px; }
.day.is-start::after, .day.is-end::after { background: #fff; }
.day--empty { visibility: hidden; }

.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend__sw { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); position: relative; }
.legend__sw--free { background: #fff; }
.legend__sw--busy { background: var(--busy); }
.legend__sw--sel { background: var(--forest); border-color: var(--forest); }
.legend__sw--high { border: 0; }
.legend__sw--high::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--gold); }

/* Huéspedes */
.guests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stepper { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; }
.stepper__label { font-weight: 700; }
.stepper__btn { width: 44px; height: 44px; font: 600 1.4rem/1 var(--font-text); color: var(--forest); background: var(--paper); border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer; }
.stepper__btn:hover:not([disabled]) { border-color: var(--forest); }
.stepper__btn[disabled] { opacity: .4; cursor: not-allowed; }
.stepper__value { min-width: 1.6em; text-align: center; font-size: 1.25rem; font-weight: 700; }

/* Datos */
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field--full { grid-column: 1 / -1; }

/* Resumen tipo ticket: bordes troquelados arriba y abajo */
.ticket { position: sticky; top: calc(var(--header-h) + 20px); filter: drop-shadow(0 8px 24px rgb(43 38 33 / 10%)); }
.ticket__body, .ticket__foot { background: var(--card); padding: 26px 26px 20px; }
.ticket__body { border-radius: 14px 14px 0 0; }
.ticket__foot {
  border-radius: 0 0 14px 14px; padding-top: 22px;
  /* línea punteada con "muescas" a los lados, como un talón */
  background:
    radial-gradient(circle at 0 0, transparent 12px, var(--card) 12.5px) top left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 0, transparent 12px, var(--card) 12.5px) top right / 51% 100% no-repeat;
  position: relative;
}
.ticket__foot::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 2px dashed var(--line); }
.ticket h3 { font-size: 1.5rem; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ticket__rows { margin: 0; display: grid; gap: 10px; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 16px; }
.ticket__rows dt { color: var(--ink-soft); }
.ticket__rows dd { margin: 0; font-weight: 700; text-align: right; }
.ticket__rows dd small { display: block; font-weight: 400; }
.ticket__rows .is-empty { color: #a0958a; font-weight: 400; font-style: italic; }
.ticket__total { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ticket__total:empty { display: none; }
.ticket__line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-soft); }
.ticket__sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.ticket__sum span { font-weight: 700; }
.ticket__sum strong { font: 600 1.7rem var(--font-title); color: var(--forest); }
.ticket__error { color: #8a3a12; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.ticket__error:empty { display: none; }
.ticket__note { font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ---------- Opiniones: notas del libro de visitas ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.note {
  margin: 0; padding: 34px 30px 26px;
  background: #fffcf4 repeating-linear-gradient(transparent 0 33px, #ece2cf 33px 34px);
  background-position: 0 22px;
  border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  position: relative;
}
.note:nth-child(1) { transform: rotate(-1deg); }
.note:nth-child(3) { transform: rotate(1deg); }
.note::before {
  /* cinta que "pega" la nota */
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px;
  background: rgb(184 138 74 / 28%); transform: rotate(-2deg);
}
.note blockquote { margin: 0 0 18px; font: italic 400 1.15rem/34px var(--font-title); }
.note figcaption strong { display: block; color: var(--forest); }
.note figcaption span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Ubicación ---------- */
.location { background: var(--paper-2); }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.location__text h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.location__address { display: flex; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.location__address .icon { color: var(--copper); margin-top: 3px; }
.distances { list-style: none; padding: 0; margin: 0 0 22px; }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.distances strong { color: var(--forest); }
.location__map { aspect-ratio: 4 / 5; max-height: 560px; background: var(--busy); border: 8px solid var(--card); box-shadow: var(--shadow); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Preguntas ---------- */
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; font-size: 1.4rem; font-weight: 400; color: var(--copper); border: 1.5px solid var(--copper-soft); border-radius: 50%; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- Pie ---------- */
.footer { background: var(--forest-deep); color: #d7cfbf; padding: 64px 0 0; }
.footer a { color: #f0e6d6; text-decoration: none; display: inline-flex; align-items: center; gap: .55em; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__name { font: 500 1.6rem var(--font-title); color: #fff; margin: 14px 0 .3em; }
.footer__title { font: 700 .8rem var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: #e8c39a; margin-bottom: 1em; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; border-top: 1px solid rgb(232 195 154 / 20%); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: underline; }

/* ---------- WhatsApp flotante ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 16px;
  font-weight: 700; color: #fff; text-decoration: none;
  background: #25744a; border-radius: 999px; box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}
.float-wa:hover { background: #1d5e3b; color: #fff; }
.float-wa .icon { width: 26px; height: 26px; }

/* ---------- Ventana de demostración ---------- */
.modal { width: min(560px, calc(100vw - 32px)); padding: 30px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / 30%); }
.modal::backdrop { background: rgb(20 18 15 / 60%); }
.modal h2 { font-size: 1.8rem; }
.modal__msg { white-space: pre-wrap; font: .95rem/1.55 var(--font-text); background: #e7f2e6; border-radius: 10px 10px 10px 2px; padding: 16px 18px; margin: 0 0 20px; max-height: 45vh; overflow: auto; }
.modal__actions { display: flex; justify-content: flex-end; }

.notice { padding: 16px; background: var(--copper-soft); border-radius: 8px; }

/* ---------- Aparición suave al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 10px 8px; font-size: .9rem; }
  .booking__grid { grid-template-columns: 1fr 340px; }
  .room-picker { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgb(43 38 33 / 10%);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: 16px 0 0; }

  .hero__grid, .about__grid, .location__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; margin: 0 auto; width: 100%; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick__field:nth-child(3) { grid-column: 1 / -1; }
  .quick .btn { grid-column: 1 / -1; }

  .about__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .room, .room:nth-child(even) { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__media { order: 0; }

  .booking__grid { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .note { transform: none !important; }
  .location__map { aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Celulares ---------- */
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .topbar__hours { display: none !important; }
  .topbar__inner { justify-content: center; }
  .brand__emblem { width: 40px; height: 40px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .6rem; letter-spacing: .12em; white-space: nowrap; }
  .seal { left: -6px; width: 100px; }
  .quick { grid-template-columns: 1fr; padding: 16px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .facts strong { font-size: 1.5rem; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .calendar { grid-template-columns: 1fr; }
  .calendar .cal__month + .cal__month { display: none; }
  .guests, .fields { grid-template-columns: 1fr; }
  .day { min-height: 42px; font-size: .95rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .float-wa span { display: none; }
  .float-wa { padding: 0; width: 60px; justify-content: center; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; translate: none; }
}
