/* La Vista Hotel — sitio público
   Identidad: guayaba (pulpa rosada, cáscara verde) sobre el Pacífico de Rincón de Guayabitos.
   Móvil primero; en teléfonos se comporta como app (barra inferior, hojas, carriles deslizables). */

@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif-400-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var-ext.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --sea: #0E3B43;        /* Pacífico profundo */
  --lagoon: #1F6F78;     /* laguna */
  --guava: #CC3F5B;      /* pulpa de guayaba (AA sobre blanco) */
  --guava-soft: #F7D6D9; /* pulpa clara */
  --rind: #8DB360;       /* cáscara */
  --foam: #EEF5F4;       /* espuma */
  --white: #FFFFFF;
  --ink: #0E3B43;
  --muted: #4A666B;
  --line: #D3E2E0;
  --wa: #1A7F4B;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px; --r: 16px; --r-lg: 28px;
  --gut: 20px;
  --wrap: 1200px;
  --tab-h: 66px;
  --top-h: 60px;
  --shadow: 0 1px 2px rgba(14, 59, 67, .06), 0 8px 24px rgba(14, 59, 67, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); font-feature-settings: "ss01";
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--lagoon); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--guava); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic, .btn svg, .chips svg, .amen svg, .way svg { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); font-size: .92em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sea); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ── Tipografía ─────────────────────────────── */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
.h1 { font-size: clamp(2.05rem, 1.4rem + 3vw, 3.4rem); }
.h2 { font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.5rem); }
.h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-top: 1.6em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--guava-soft); color: var(--muted); }

/* ── Estructura ─────────────────────────────── */
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gut), 760px); margin-inline: auto; }
main > section, main > article, main > div { margin-block: clamp(48px, 7vw, 104px); }
main > .hero, main > .rgal { margin-top: 0; }
main > .pagehead { margin-block: 28px 20px; }
main > .band { margin-block: 0; padding-block: clamp(48px, 7vw, 96px); }
main > .closing { margin-bottom: 0; }
.band--foam { background: var(--foam); }
.band--sea { background: var(--sea); color: #fff; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sechead .h2 { margin: 0; }
.more { font-weight: 600; white-space: nowrap; color: var(--lagoon); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.sechead--light .more, .band--sea .more { color: #fff; }

/* ── Botones ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .15s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--guava { background: var(--guava); color: #fff; }
.btn--guava:hover { background: #B3344F; color: #fff; }
.btn--sea { background: var(--sea); color: #fff; }
.btn--sea:hover { background: var(--lagoon); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--sea); }
.btn--ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #136B3E; color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; }
.iconbtn svg { width: 22px; height: 22px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--lagoon); text-decoration: underline; cursor: pointer; text-underline-offset: .18em; }
.link-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--wa); font-weight: 600; text-decoration: none; }
.link-wa svg { width: 20px; height: 20px; }

/* ── Cinta de avisos ─────────────────────────── */
.ann { background: var(--sea); color: #E3F0EE; font-size: .82rem; font-weight: 550; }
.ann ul { list-style: none; margin: 0 auto; padding: 7px var(--gut); display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; width: min(100%, 1320px); }
.ann ul::-webkit-scrollbar { display: none; }
.ann li { flex: none; display: flex; align-items: center; gap: 28px; }
.ann li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--guava); margin-left: -16px; }
@media (min-width: 960px) { .ann ul { justify-content: center; } }

/* ── Descuento por reservar directo ─────────── */
.ann__deal { color: #fff; font-weight: 700; }
.hero__deal, .deal { display: inline-block; margin: -4px 4px 12px; padding: 5px 12px; border-radius: 999px; background: var(--guava-soft); color: #A3304A; font-weight: 700; font-size: .9rem; }
.deal { margin: 0 0 12px; }
.result__deal { color: #A3304A; font-weight: 700; }
.small { font-size: .85rem; }
@media (min-width: 960px) { .hero__deal { position: absolute; top: -17px; right: 24px; margin: 0; box-shadow: 0 4px 12px rgba(14, 59, 67, .12); } }

/* ── Encabezado ─────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { height: var(--top-h); width: min(100% - 2 * 14px, 1320px); margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sea); margin-right: auto; }
.brand__logo { height: 48px; width: auto; flex: none; }
.brand__sun { fill: var(--guava); }
.brand__sea { fill: var(--sea); }
.brand__wave { fill: none; stroke: #fff; stroke-width: 1.6; opacity: .55; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; line-height: 1; display: flex; flex-direction: column; }
.brand__name small { font-family: var(--sans); font-size: .64rem; letter-spacing: .04em; color: var(--muted); margin-top: 3px; font-weight: 500; }
.mainnav { display: none; }
.top__actions { display: flex; align-items: center; gap: 4px; }
.langswitch { display: inline-grid; place-items: center; min-width: 44px; height: 36px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--sea); font-weight: 650; font-size: .82rem; padding: 0 10px; }
.top__wa { color: var(--wa); }
.top__book { display: none; }

/* ── Barra inferior (móvil) ─────────────────── */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; border-radius: 12px; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--sea); }
.tabbar a[aria-current="page"] svg { color: var(--guava); }
.tabbar__book { position: relative; }
.tabbar__book svg { box-sizing: content-box; padding: 9px; margin-top: -24px; border-radius: 50%; background: var(--guava); color: #fff !important; box-shadow: 0 6px 16px rgba(204, 63, 91, .35); border: 4px solid #fff; }
.tabbar__book span { color: #B3344F; }

/* ── Hero ─────────────────────────────── */
.hero { position: relative; display: grid; }
.hero__media { position: relative; height: min(62svh, 560px); min-height: 380px; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; background: var(--sea); }
.hero__media picture, .hero__media img, .hero__media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { z-index: 1;  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 59, 67, 0) 35%, rgba(14, 59, 67, .78) 100%); }
.hero__copy { position: absolute; left: var(--gut); right: var(--gut); bottom: 46px; color: #fff; z-index: 2; }
.hero__place { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin-bottom: 10px; opacity: .95; }
.hero__place svg { width: 18px; height: 18px; }
.hero__t { font-family: var(--serif); font-size: clamp(2.1rem, 1.3rem + 4vw, 4.6rem); line-height: 1.03; margin: 0 0 .3em; max-width: 15ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__sub { margin: 0; max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); opacity: .95; }
.hero__search { position: relative; z-index: 3; margin: -28px 12px 0; padding: 18px 16px 14px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border-top: 4px solid var(--guava); }
.hero__searchlabel { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 10px 4px; }
.hero__alt { margin: 12px 4px 0; font-size: .95rem; }

/* ── Buscador ─────────────────────────────── */
.search { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.search__field { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; min-width: 0; }
.search__field label, .search__label, .label { font-size: .76rem; font-weight: 650; color: var(--muted); }
.search__field input[type="date"] { border: 0; padding: 0; min-height: 28px; background: transparent; font-weight: 600; width: 100%; min-width: 0; }
.search__guests { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
.search__go { grid-column: 1 / -1; min-height: 52px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper input { width: 42px; text-align: center; border: 0; font-weight: 700; font-size: 1.05rem; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--sea); }
.stepper__btn svg { width: 18px; height: 18px; }
.stepper__btn:hover { border-color: var(--sea); }

/* ── Nosotros ─────────────────────────────── */
.about { display: grid; gap: 32px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.facts li { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--sea); }
.facts span { font-size: .86rem; color: var(--muted); }
.about__media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: end; }
.about__media figure { margin: 0; border-radius: var(--r); overflow: hidden; }
.about__a { aspect-ratio: 4 / 5; }
.about__b { aspect-ratio: 1; margin-bottom: 18% !important; }
.about__media img, .about__media .ph { width: 100%; height: 100%; object-fit: cover; }

/* ── Carriles deslizables ─────────────── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 360px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 14px; margin-inline: calc(-1 * var(--gut)); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ── Tarjeta de habitación ─────────────── */
.roomcard { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.roomcard__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--foam); }
.roomcard__media img, .roomcard__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.roomcard:hover .roomcard__media img { transform: scale(1.03); }
.roomcard__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.roomcard__t { font-size: 1.3rem; margin: 0; }
.roomcard__t a { color: var(--sea); text-decoration: none; }
.roomcard__t a::after { content: ""; position: absolute; inset: 0; }
.roomcard { position: relative; }
.roomcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; margin: 0; }
.roomcard__meta, .roomcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.roomcard__meta svg { width: 18px; height: 18px; }
.roomcard__sum { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }
.roomcard__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roomcard__foot .btn { position: relative; z-index: 1; }
.price { margin: 0; line-height: 1.2; }
.price strong { font-size: 1.15rem; font-weight: 750; }
.price small { color: var(--muted); font-size: .8rem; }
.price s { color: var(--muted); font-size: .9rem; }
.price--lg strong { font-size: 1.6rem; }
.roomgrid { display: grid; gap: 18px; }

/* ── Ofertas ─────────────────────────────── */
.offerlist { display: grid; gap: 16px; }
.offer { padding: 22px; border-radius: var(--r); background: var(--guava-soft); position: relative; }
.offer__media { margin: -22px -22px 18px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer__badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--guava); background: #fff; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.offer__t { font-size: 1.45rem; margin-bottom: .4em; }
.offer__d { font-size: .97rem; }
.offer__d p:last-child { margin-bottom: 0; }
.offer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ── Servicios ─────────────────────────────── */
.services { display: grid; gap: 24px; }
.amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amen li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--foam); font-weight: 550; font-size: .95rem; }
.amen svg { color: var(--lagoon); width: 22px; height: 22px; }
.amen--room li { background: transparent; border: 1px solid var(--line); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; }
.mosaic figure:first-child { grid-row: span 2; aspect-ratio: auto; }
.mosaic--1 figure:first-child, .mosaic--2 figure:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
.mosaic--1 { grid-template-columns: 1fr; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* ── Tira de galería ─────────────── */
.gallerystrip .wrap { margin-bottom: 4px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip__item { display: block; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Guayabitos ─────────────────────────────── */
.nearby { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.nearby li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nearby__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--foam); display: grid; place-items: center; color: var(--lagoon); }
.nearby__ic svg { width: 22px; height: 22px; }
.nearby__t { font-weight: 600; }
.nearby__d { color: var(--muted); font-size: .9rem; text-align: right; }
.xgrid { display: grid; gap: 16px; }
.xcard { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.xcard__media { aspect-ratio: 16 / 10; }
.xcard__media img { width: 100%; height: 100%; object-fit: cover; }
.xcard__body { padding: 18px; }
.xcard__body .h3 { margin-top: .2em; }
.xcard__dist { display: inline-flex; align-items: center; gap: 8px; color: var(--lagoon); font-weight: 600; font-size: .9rem; margin: 0; }
.xcard__dist svg { width: 20px; height: 20px; }

/* ── Opiniones ─────────────────────────────── */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 12px; margin-inline: calc(-1 * var(--gut)); scrollbar-width: none; }
.review { margin: 0; scroll-snap-align: start; background: #fff; border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review__stars { display: flex; gap: 2px; color: #C9921C; margin: 0; }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review figcaption { font-size: .88rem; color: var(--muted); margin-top: auto; }

/* ── Ubicación ─────────────────────────────── */
.locate { display: grid; gap: 24px; }
.locate__addr { display: flex; gap: 10px; font-style: normal; font-weight: 600; margin: 16px 0; }
.locate__addr svg { width: 22px; height: 22px; color: var(--guava); flex: none; margin-top: 2px; }
.locate__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border-radius: var(--r); overflow: hidden; background: var(--foam); min-height: 300px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; color: var(--muted); font-size: .92rem; background: repeating-linear-gradient(135deg, var(--foam) 0 14px, #E6F0EF 14px 28px); }
.map__pin { width: 40px; height: 40px; color: var(--guava); }
.map__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wide { margin: 0; border-radius: var(--r); overflow: hidden; }

/* ── FAQ ─────────────────────────────── */
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 1.05rem; }
.faq summary h2 { font: inherit; margin: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--lagoon); border-bottom: 2px solid var(--lagoon); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 0 18px; color: var(--muted); max-width: 66ch; }
.faq__more { margin-top: 28px; }

/* ── Cierre ─────────────────────────────── */
.closing { background: var(--sea); color: #fff; padding-block: clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--guava) 30%, var(--guava) 70%, transparent); opacity: .5; }
.closing__in { position: relative; text-align: center; }
.closing__t { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); margin-inline: auto; max-width: 20ch; background: var(--sea); padding: 0 .4em; display: inline-block; }
.closing__in p { max-width: 52ch; margin-inline: auto; opacity: .92; }
.closing__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.notfound .closing__btns { justify-content: flex-start; }

/* ── Encabezados de página ─────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.pagehead .lead { margin-top: -.2em; }
.booknudge { padding: 22px; border-radius: var(--r-lg); background: var(--foam); }
.booknudge .h3 { margin-top: 0; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }

/* ── Habitación (detalle) ─────────────── */
.rgal { position: relative; }
.rgal__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--sea); }
.rgal__track::-webkit-scrollbar { display: none; }
.rgal__item { scroll-snap-align: start; border: 0; padding: 0; margin: 0; cursor: zoom-in; aspect-ratio: 4 / 3; max-height: 62svh; width: 100%; background: var(--sea); }
.rgal__item picture, .rgal__item img, .rgal__item .ph { width: 100%; height: 100%; object-fit: cover; }
.rgal__count { position: absolute; right: 14px; bottom: 14px; margin: 0; background: rgba(14, 59, 67, .75); color: #fff; font-size: .8rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.rgal__all { position: absolute; left: 14px; bottom: 12px; background: rgba(255, 255, 255, .92); border: 0; display: none; }
.roomlayout { display: grid; gap: 28px; margin-top: 24px !important; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 550; }
.chips svg { width: 18px; height: 18px; color: var(--lagoon); }
.units { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.units li { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font-weight: 600; font-size: .9rem; }
.units li span { display: block; padding: 8px 10px; }
.units__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plain { list-style: none; padding: 0; display: grid; gap: 8px; }
.plain li { display: flex; align-items: center; gap: 8px; }
.plain svg { width: 20px; height: 20px; color: var(--lagoon); }
.bookcard { display: none; }
.roombar { position: fixed; inset: auto 0 0 0; z-index: 46; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14, 59, 67, .08); }
.roombar p { margin: 0; }
.r-room .tabbar { display: none; }

/* ── Galería ─────────────────────────────── */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: none; }
.filter { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; color: var(--sea); min-height: 40px; }
.filter[aria-pressed="true"] { background: var(--sea); color: #fff; border-color: var(--sea); }
.masonry { columns: 1; column-gap: 12px; }
.masonry__item { break-inside: avoid; margin: 0 0 12px; }
.masonry__item button { display: block; width: 100%; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--foam); }
.masonry__item figcaption { font-size: .86rem; color: var(--muted); padding: 6px 2px 0; }

/* ── Lightbox y hojas ─────────────── */
dialog { border: 0; padding: 0; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(5, 25, 29, .96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 25, 29, .96); }
.lightbox__fig { margin: 0; max-width: 94vw; max-height: 86dvh; text-align: center; }
.lightbox__fig img { max-width: 94vw; max-height: 80dvh; object-fit: contain; margin: auto; border-radius: 6px; }
.lightbox__fig figcaption { margin-top: 10px; font-size: .9rem; opacity: .85; }
.lightbox .iconbtn { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.sheet { width: min(100%, 520px); max-height: 92dvh; margin: auto auto 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(14, 59, 67, .45); }
.sheet[open] { animation: sheet-up .28s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet__body { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { margin: 0; font-size: 1.4rem; }
.sheet__foot { display: flex; justify-content: flex-end; }

/* ── Interruptores y formularios ─────────── */
.switch { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 46px; height: 28px; margin: 0; cursor: pointer; }
.switch__ui { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .switch__ui { background: var(--lagoon); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:disabled + .switch__ui { opacity: .6; }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--guava); outline-offset: 2px; }
.switch strong { display: block; }
.switch small { color: var(--muted); font-size: .86rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 120, .18); }
.field [aria-invalid="true"] { border-color: var(--guava); }
.field .stepper { border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 8px; justify-content: space-between; min-height: 48px; }
.field2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field2 > .field { min-width: 0; }
.field input[type="date"] { min-width: 0; -webkit-appearance: none; appearance: none; }
.field .stepper { display: flex; width: 100%; }
.field .stepper input { flex: 1 1 auto; width: auto; min-width: 0; min-height: 0; padding: 0; border: 0; }
@media (max-width: 359px) { .field2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--lagoon); flex: none; }
.formmsg { margin: 0; font-weight: 600; min-height: 0; }
.formmsg.is-error { color: var(--guava); }
.formmsg.is-ok { color: var(--wa); }
.formbtns { display: flex; justify-content: space-between; gap: 12px; }

/* ── Reservar ─────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; font-size: .82rem; font-weight: 650; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.steps li::before { content: counter(s) ". "; }
.steps li[aria-current="step"], .steps li.is-done { color: var(--sea); border-top-color: var(--guava); }
.booking > [data-step] { margin-bottom: 16px; }
.summary { font-weight: 600; background: var(--foam); padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; }
.results { display: grid; gap: 12px; }
.result { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); align-items: start; }
.result img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.result h3 { font-size: 1.15rem; margin: 0 0 4px; }
.result p { margin: 0 0 6px; font-size: .92rem; }
.result .btn { margin-top: 6px; }
.result--no { opacity: .7; }
.result__ok { color: var(--wa); font-weight: 600; }
.result__no { color: var(--guava); font-weight: 600; }
.done { text-align: center; }
.done__ic { width: 56px; height: 56px; margin: 0 auto 8px; color: #fff; background: var(--wa); border-radius: 50%; padding: 12px; }
.booking__alt { text-align: center; }

/* ── Contacto ─────────────────────────────── */
.contact { display: grid; gap: 24px; }
.contact__ways { display: grid; gap: 10px; align-content: start; }
.way { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--sea); }
.way svg { width: 28px; height: 28px; color: var(--lagoon); }
.way span { display: flex; flex-direction: column; }
.way strong { font-size: .82rem; color: var(--muted); font-weight: 650; }
.way--wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.way--wa svg, .way--wa strong { color: #fff; }
.doc .prose { margin-top: 20px; }
.doc__media { margin: 20px 0; border-radius: var(--r); overflow: hidden; }

/* ── Cookies ─────────────────────────────── */
.cookie { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom)); background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 10px 40px rgba(14, 59, 67, .25); border: 1px solid var(--line); }
.cookie__in { padding: 16px 18px; }
.cookie__t { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.cookie p { font-size: .9rem; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie__btns .btn { min-height: 42px; padding: 0 16px; font-size: .92rem; flex: 1 1 auto; }

/* ── Pie ─────────────────────────────── */
.foot { background: #082A30; color: #D9E8E6; padding: 48px 0 16px; font-size: .95rem; }
.foot a { color: #fff; }
.foot__grid { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 0 auto; display: grid; gap: 28px; }
.foot__name { font-family: var(--serif); font-size: 1.7rem; color: #fff; margin-bottom: .3em; }
.foot__name span { color: var(--guava-soft); }
.foot__h { font-family: var(--sans); font-size: .82rem; font-weight: 700; color: #9FC2BF; margin-bottom: 10px; letter-spacing: .02em; }
.foot__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .muted { color: #9FC2BF; }
.foot address { font-style: normal; margin-bottom: .6em; }
.foot__social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.foot__social svg { width: 22px; height: 22px; }
.foot .linkbtn { color: #fff; }
.foot__base { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 36px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; color: #9FC2BF; }
.foot__base p { margin: 0; }
.credit { color: #D9E8E6 !important; text-decoration: none; }
.credit strong { color: #fff; font-weight: 700; border-bottom: 1px solid var(--guava); }
.credit:hover strong { color: var(--guava-soft); }

.ph { background: linear-gradient(135deg, var(--foam), #DCEBE9); width: 100%; height: 100%; min-height: 120px; }

/* ── Tableta ─────────────────────────────── */
@media (min-width: 640px) {
  :root { --gut: 28px; }
  .search { grid-template-columns: 1fr 1fr 1fr; }
  .search__guests { grid-column: auto; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .amen { grid-template-columns: repeat(3, 1fr); }
  .roomgrid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .xgrid { grid-template-columns: 1fr 1fr; }
  .offerlist { grid-template-columns: 1fr 1fr; }
  .rgal__item { aspect-ratio: 16 / 10; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .cookie { left: auto; right: 16px; max-width: 440px; }
}

/* ── Escritorio ─────────────────────────────── */
@media (min-width: 960px) {
  :root { --top-h: 72px; }
  body { padding-bottom: 0; font-size: 1.0625rem; }
  .tabbar, .roombar { display: none; }
  .r-room .tabbar { display: none; }
  .mainnav { display: block; }
  .mainnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
  .mainnav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--sea); font-weight: 600; font-size: .96rem; }
  .mainnav a:hover { background: var(--foam); }
  .mainnav a[aria-current="page"] { background: var(--foam); box-shadow: inset 0 -2px 0 var(--guava); border-radius: 999px 999px 999px 999px; }
  .top__book { display: inline-flex; min-height: 44px; margin-left: 6px; }
  .brand__logo { height: 58px; }
  .brand__name { font-size: 1.5rem; }

  .hero__media { height: min(86svh, 820px); border-radius: 0; }
  .hero__copy { left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); right: auto; bottom: 120px; }
  .hero__search { position: absolute; left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); right: max(var(--gut), calc((100vw - var(--wrap)) / 2)); top: min(86svh, 820px); transform: translateY(-50%); margin: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 22px; padding: 18px 20px; }
  .hero__searchlabel { margin: 0; font-size: 1.35rem; max-width: 7ch; line-height: 1.1; }
  .hero .search { grid-template-columns: 1fr 1fr 1.1fr auto; }
  .hero .search__go { grid-column: auto; }
  .hero__alt { grid-column: 2; margin: 2px 4px 0; }
  .r-home main > .about { margin-top: 140px; }

  .about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; padding: 0; margin: 0; }
  .services { grid-template-columns: 1fr 1.1fr; column-gap: 64px; align-items: start; }
  .services__head { grid-column: 1; }
  .amen { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .mosaic { grid-column: 2; grid-row: 1 / span 2; }
  .strip { grid-auto-columns: 300px; padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2)); }
  .strip__item--wide { grid-column: span 2; aspect-ratio: auto; }
  .nearby { columns: 2; column-gap: 48px; border-top: 0; }
  .nearby li { break-inside: avoid; }
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .locate { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
  .map { min-height: 420px; }
  .roomgrid { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 3; }
  .xgrid { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

  .rgal__track { grid-auto-flow: row; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 8px; overflow: hidden; width: min(100% - 2 * var(--gut), 1320px); margin: 20px auto 0; border-radius: var(--r-lg); background: transparent; }
  .rgal__item { aspect-ratio: auto; max-height: none; height: 100%; }
  .rgal__item--main { grid-row: span 2; }
  .rgal__item:nth-child(n+6) { display: none; }
  .rgal__count { display: none; }
  .rgal__all { display: inline-flex; left: auto; right: max(calc(var(--gut) + 14px), calc((100vw - 1320px) / 2 + 14px)); bottom: 14px; }
  .roomlayout { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
  .bookcard { display: block; position: sticky; top: calc(var(--top-h) + 20px); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .bookcard .search { grid-template-columns: 1fr 1fr; margin-top: 14px; }
  .bookcard .search__guests { grid-column: 1 / -1; }
  .bookcard__alt { margin: 14px 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .tabbar, .roombar, .cookie, .foot, .hero__search { display: none !important; }
  body { padding: 0; }
}

/* Los <picture> dentro de marcos con proporción fija deben llenar el marco */
.about__media picture, .roomcard__media picture, .mosaic picture, .strip__item picture, .xcard__media picture,
.offer__media picture, .rgal__item picture, .hero__media picture, .wide picture, .doc__media picture { display: block; width: 100%; height: 100%; }
.about__media img, .mosaic img, .strip__item img, .xcard__media img, .offer__media img { display: block; }

/* Cuartos con nombre (cuando hay un solo tipo de habitación) */
.rail--units { grid-auto-columns: min(66%, 260px); }
.unitcard { display: block; text-decoration: none; color: var(--sea); }
.unitcard__media { display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--foam); }
.unitcard__media picture, .unitcard__media img, .unitcard__media .ph { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.unitcard:hover img { transform: scale(1.03); }
.unitcard__name { display: block; font-family: var(--serif); font-size: 1.1rem; margin-top: 8px; }
@media (min-width: 960px) {
  .rail--units { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 3 * 14px) / 4); overflow-x: auto; padding-bottom: 12px; }
}
.roombar .price { white-space: nowrap; }
.roombar .price small, .roombar .muted { font-size: .78rem; }
