:root {
  --lagoon: #0e5f63;
  --lagoon-dark: #0a4549;
  --lagoon-light: #d8ecea;
  --deep: #10302c;
  --sand: #f6f0e6;
  --sand-dark: #e9dfcd;
  --coral: #d9714e;
  --coral-dark: #b85a3a;
  --ink: #1d2826;
  --muted: #5c6a67;
  --line: #e2ddd3;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 48, 44, .12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: clip; margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--coral); color: #fff; border: 0; border-radius: 999px; padding: .85em 1.6em; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--coral-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .55em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--lagoon); box-shadow: inset 0 0 0 2px var(--lagoon); }
.btn-ghost:hover { background: var(--lagoon); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.site-header.solid, .booking-page ~ .site-header, body:not(:has(.hero, .room-hero)) .site-header { background: rgba(255, 255, 255, .97); color: var(--deep); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.05; }
.brand svg { width: 38px; height: 38px; }
.brand small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .lang { opacity: .85; font-size: .88rem; }
.menu-btn { display: none; background: none; border: 1.5px solid currentColor; color: inherit; border-radius: 999px; padding: 6px 14px; font: 500 .9rem var(--sans); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto; background: #fff; color: var(--deep); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 28, .55) 0%, rgba(10, 30, 28, .1) 35%, rgba(10, 30, 28, .72) 100%); }
.hero-content { position: relative; padding: 140px 0 48px; }
.hero h1 { color: #fff; max-width: 13ch; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; margin-bottom: 1em; }
.lead { font-size: 1.15rem; max-width: 52ch; opacity: .95; }

/* search */
.search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .6fr) minmax(0, .6fr) auto; gap: 10px; background: #fff; color: var(--ink); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 28px; align-items: end; }
.search label { min-width: 0; display: flex; flex-direction: column; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search input, .search select { margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 1rem var(--sans); color: var(--ink); background: #fff; min-width: 0; width: 100%; }
.search .btn { height: 46px; }
@media (max-width: 760px) {
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search .btn { grid-column: 1 / -1; }
}

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sand { background: var(--sand); }
.section-deep { background: var(--deep); color: #e8f0ee; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep a { color: #9fd6d2; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.section-deep .section-lead { color: #c7d6d3; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.rounded { border-radius: var(--radius); }

/* why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 56px 0 8px; }
.why-item h3 { font-size: 1.15rem; padding-top: 14px; border-top: 3px solid var(--coral); width: fit-content; }
.why-item p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* rooms */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 900px) { .rooms-grid { grid-template-columns: 1fr; } }
.room-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.room-media { aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room-card:hover .room-media img { transform: scale(1.04); }
.room-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 a { color: inherit; text-decoration: none; }
.room-body > p { color: var(--muted); font-size: .97rem; }
.meta { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.meta li { display: flex; align-items: center; gap: 8px; }
.meta .ico { width: 18px; height: 18px; color: var(--lagoon); flex: none; }
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { margin: 0; color: var(--muted); font-size: .9rem; }
.price strong { font-family: var(--serif); font-size: 1.5rem; color: var(--deep); }

/* amenities */
.amenities { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.amenities li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.amenities strong { display: block; color: var(--deep); font-weight: 600; }
.amenities .ico, .contact-list .ico { width: 26px; height: 26px; color: var(--lagoon); flex: none; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.mosaic img:nth-child(2) { margin-top: 36px; }
.mosaic img:nth-child(3) { margin-top: -36px; }

/* gallery */
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; margin-top: 28px; }
.gallery a { overflow: hidden; border-radius: 10px; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 18, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }

/* direct */
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { width: 22px; height: 22px; color: var(--coral); flex: none; margin-top: 2px; }
.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

/* location & contact */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand-dark); }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-list { font-style: normal; display: grid; gap: 16px; margin: 20px 0 28px; }
.contact-list p { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.contact-list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.section-deep .contact-list .ico { color: #9fd6d2; }
.cta-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 28px; }
.cta-box .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cta-box .search .btn { grid-column: 1 / -1; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--lagoon); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* footer */
.site-footer { background: #0b2220; color: #b8c8c5; padding: 48px 0 104px; font-size: .93rem; } /* margen inferior: el botón flotante de WhatsApp no debe tapar el crédito de Idea Hecha */
.site-footer a { color: #e3efed; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* inner pages */
.room-page, .booking-page, .confirm-page, .text-page { padding: 104px 0 72px; }
.crumb a { text-decoration: none; font-weight: 500; }
.room-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; margin: 20px 0 36px; }
.room-gallery a { border-radius: 10px; overflow: hidden; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; }
.rg-main { grid-row: span 2; }
.room-gallery a:nth-child(n+6) { display: none; }
@media (max-width: 760px) { .room-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px 140px; } .rg-main { grid-column: span 2; grid-row: auto; } }
.room-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin-bottom: 56px; }
@media (max-width: 900px) { .room-detail { grid-template-columns: 1fr; } }
.book-card { background: var(--sand); border-radius: var(--radius); padding: 24px; align-self: start; position: sticky; top: 96px; }
.book-card .price { margin-bottom: 14px; }
.rooms-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; }
.rooms-mini a { text-decoration: none; color: var(--deep); font-weight: 600; }
.rooms-mini img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.text-page h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* booking */
.steps { list-style: none; padding: 0; margin: 8px 0 24px; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: s; }
.steps li { counter-increment: s; font-size: .88rem; color: var(--muted); padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--sand); display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 600; font-size: .8rem; }
.steps li.active { background: var(--lagoon); color: #fff; }
.steps li.active::before { color: var(--lagoon); }
.steps li.done::before { content: "✓"; }
.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } }
.booking-page .search { margin-top: 0; box-shadow: none; border: 1px solid var(--line); }
.notice { background: #fff6e8; border: 1px solid #f0d9b5; color: #7a5520; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.alert { background: #fdecea; color: #8c2b1b; border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.results { display: grid; gap: 16px; margin-top: 20px; }
.result { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, border-color .2s; }
.result.is-selected { border-color: var(--lagoon); box-shadow: 0 0 0 2px var(--lagoon); }
.result.is-off { opacity: .55; }
.result img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.result-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.result-body h3 { margin: 0; font-size: 1.2rem; }
.result-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--lagoon-light); color: var(--lagoon-dark); width: fit-content; }
.badge.hot { background: #fde4da; color: var(--coral-dark); }
.badge.off { background: #eee; color: #666; }
@media (max-width: 600px) { .result { grid-template-columns: 1fr; } .result img { height: 180px; } }
.guest-form { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.guest-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 500; margin-bottom: 14px; }
.guest-form input, .guest-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 400 1rem var(--sans); }
.guest-form input:invalid:not(:placeholder-shown) { border-color: #d98b7a; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.summary { background: var(--sand); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; }
.summary h2 { font-size: 1.3rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: .93rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.summary .total { border-top: 1px solid var(--sand-dark); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .total strong { font-family: var(--serif); font-size: 1.6rem; color: var(--deep); }
.toggle { display: flex; align-items: center; gap: 10px; font-size: .93rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--lagoon-light); border-top-color: var(--lagoon); border-radius: 50%; animation: spin 1s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.confirm-box { background: var(--sand); border-radius: var(--radius); padding: 22px; margin: 20px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.alert.ok { background: var(--lagoon-light); color: var(--lagoon-dark); }
/* ---------- logo ---------- */
.brand-mark { width: 44px; height: 44px; flex: none; background: currentColor; -webkit-mask: url(/img/logo-emblem.png) center / contain no-repeat; mask: url(/img/logo-emblem.png) center / contain no-repeat; }
.footer-logo { width: 220px; aspect-ratio: 1400 / 710; background: #e8f0ee; -webkit-mask: url(/img/logo-full.png) left center / contain no-repeat; mask: url(/img/logo-full.png) left center / contain no-repeat; margin: 0 0 14px; }

/* ---------- intro de bienvenida ---------- */
.intro { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #fff; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 38%, #17706f 0%, #0d4544 45%, #071f1e 100%);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.6, 0, .2, 1), filter 1s ease; }
.intro.out { opacity: 0; transform: scale(1.06); filter: blur(6px); pointer-events: none; }
.intro-glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(159, 214, 210, .35), transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -62%) scale(.4); animation: introGlow 3.6s ease-out forwards; }
.intro-logo { position: relative; width: min(560px, 84vw); aspect-ratio: 1400 / 710; background: #fff;
  -webkit-mask: url(/img/logo-full.png) center / contain no-repeat; mask: url(/img/logo-full.png) center / contain no-repeat;
  animation: introLogo 2.1s .15s cubic-bezier(.65, 0, .25, 1) both; }
.intro-kicker { position: relative; margin: 18px 0 0; font: 600 .8rem var(--sans); letter-spacing: .4em; text-transform: uppercase; color: #f3c9a8; opacity: 0; animation: introFade .9s 1.7s ease forwards; }
.intro-phrase { position: relative; margin: 0; font: italic 400 clamp(1.7rem, 5vw, 3rem) var(--serif); opacity: 0; letter-spacing: .5em; animation: introPhrase 1.6s 1.9s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro-skip { position: absolute; bottom: 28px; margin: 0; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; opacity: 0; animation: introFade 1s 2.6s ease forwards; color: rgba(255, 255, 255, .6); }
@keyframes introLogo {
  0% { clip-path: circle(0% at 50% 33%); opacity: 0; transform: scale(.94); }
  30% { clip-path: circle(22% at 50% 33%); opacity: 1; }
  55% { clip-path: circle(22% at 50% 33%); transform: scale(1); }
  100% { clip-path: circle(110% at 50% 33%); opacity: 1; transform: scale(1); }
}
@keyframes introPhrase { from { opacity: 0; letter-spacing: .5em; transform: translateY(8px); } to { opacity: 1; letter-spacing: .04em; transform: none; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introGlow { 0% { opacity: 0; transform: translate(-50%, -62%) scale(.4); } 40% { opacity: 1; } 100% { opacity: .7; transform: translate(-50%, -62%) scale(1.3); } }
.intro-on { overflow: hidden; }
.hero-img { transition: transform 2.6s cubic-bezier(.2, .7, .2, 1); }
.intro-on .hero-img { transform: scale(1.12); }

/* ---------- aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- página de habitación ---------- */
.room-v2 { padding: 0 0 40px; }
.room-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.room-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.room-hero-content { position: relative; padding: 130px 0 72px; }
.room-hero h1 { color: #fff; margin-bottom: .2em; }
.room-hero .crumb a { color: #fff; opacity: .85; text-decoration: none; }
.room-tagline { font: italic 400 clamp(1.15rem, 2.4vw, 1.5rem) var(--serif); margin: 0 0 26px; opacity: .95; max-width: 40ch; }
.room-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-glass { background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-glass:hover { background: rgba(255, 255, 255, .28); }
.btn .ico { width: 18px; height: 18px; }
.room-stats { position: relative; z-index: 2; margin-top: -42px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 22px 20px; display: grid; gap: 2px; align-content: start; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .ico { width: 26px; height: 26px; color: var(--coral); margin-bottom: 6px; }
.stat-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat strong { font-family: var(--serif); font-size: 1.2rem; color: var(--deep); font-weight: 600; line-height: 1.25; }
@media (max-width: 760px) { .room-stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.room-story { padding: clamp(48px, 7vw, 96px) 0 24px; }
.lead-dark { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--deep); }
.comfy { display: flex; align-items: center; gap: 10px; background: var(--lagoon-light); color: var(--lagoon-dark); border-radius: 999px; padding: 8px 16px; width: fit-content; max-width: 100%; font-weight: 500; font-size: .93rem; }
.comfy .ico { width: 20px; height: 20px; flex: none; color: var(--coral); }
.h-small { font-size: 1.3rem; margin-top: 1.6em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.story-photos { position: relative; padding-bottom: 60px; }
.story-photos img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.story-photos img:first-child { width: 88%; aspect-ratio: 4 / 3; }
.story-photos img:last-child { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border: 6px solid #fff; }
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 32px; }
.hl-card { background: var(--sand); border-radius: var(--radius); padding: 22px; display: grid; gap: 4px; align-content: start; transition: transform .3s, box-shadow .3s; }
.hl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hl-card .ico { width: 32px; height: 32px; color: var(--lagoon); margin-bottom: 8px; }
.hl-card strong { color: var(--deep); }
.hl-card span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr 1fr; } }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.carousel-head h2 { margin: 0; }
.carousel-head .muted { font-size: .55em; font-family: var(--sans); font-weight: 500; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--lagoon); background: #fff; color: var(--lagoon); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.carousel-nav button:hover { background: var(--lagoon); color: #fff; }
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - 1180px) / 2)); padding: 24px max(16px, calc((100vw - 1180px) / 2)) 12px; scrollbar-width: thin; scroll-behavior: smooth; }
.slide { flex: 0 0 auto; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; height: clamp(260px, 52vh, 520px); max-width: 88vw; }
.slide img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .6s; }
.slide:hover img { transform: scale(1.03); }
.room-lists { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 24px; }
.room-lists .book-card { margin-top: 28px; position: static; }
@media (max-width: 900px) { .room-lists { grid-template-columns: 1fr; gap: 8px; } .story-photos { margin-top: 12px; } }
.compare-wrap { overflow-x: auto; margin-top: 24px; }
.compare { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .95rem; }
.compare tbody th { text-align: left; color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.compare thead a { display: grid; gap: 8px; text-decoration: none; color: var(--deep); font-family: var(--serif); font-weight: 600; }
.compare thead img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; width: 100%; }
.compare .is-current { background: var(--lagoon-light); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.rooms-mini small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.sticky-book { display: none; }
@media (max-width: 760px) {
  .sticky-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; box-shadow: 0 -6px 20px rgba(16, 48, 44, .12); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
  .room-v2 + .site-footer { padding-bottom: 160px; }
}
@media (prefers-reduced-motion: reduce) { .room-hero-img { animation: none; } .js [data-reveal] { opacity: 1; transform: none; } }

/* ---------- columna de títulos (portada, rail.js) ---------- */
.rail { display: none; }
.rail-on .rail { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 72px; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.rail-on .rail.show { opacity: 1; }
.rail ol { list-style: none; margin: 0; padding: 0; position: absolute; top: 88px; bottom: 18px; left: 0; width: 56px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; overflow: hidden; color: var(--deep); transition: color .4s; }
.rail.on-dark ol { color: #fff; }
.rail.on-dark .rail-line { background: rgba(255, 255, 255, .3); }
.rail-item { pointer-events: auto; writing-mode: vertical-rl; font: 600 var(--rail-fs, 13px) var(--serif); line-height: 1; color: inherit; text-decoration: none; white-space: nowrap; padding: 2px 0; letter-spacing: .03em; opacity: .72; transition: opacity .3s; }
.rail-item:hover, .rail-item.is-active { opacity: 1; }
.rl { display: inline-block; }
.rl-sp { width: .35em; }
.rail-line { position: absolute; left: 60px; top: 88px; bottom: 18px; width: 1px; background: rgba(128, 128, 128, .35); }
.rail-fill { position: absolute; inset: 0; background: var(--coral); transform-origin: top; transform: scaleY(0); }
.rail-dot { position: absolute; left: 56px; top: 88px; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(217, 113, 78, .2); opacity: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.rail-dot.on { opacity: 1; }
.rail-on h2[data-rail] { position: relative; }
.rail-on .hw { display: inline-block; white-space: nowrap; }
.rail-on .hl-l { display: inline-block; transform-origin: 50% 50%; will-change: transform; }
.h-sub { font: italic 400 clamp(1.1rem, 2vw, 1.35rem) var(--serif); color: var(--coral-dark); margin: -.3em 0 1em; }

/* ---------- chino y coreano: fuentes con sus caracteres ---------- */
:root:lang(zh-Hans) { --serif: "Fraunces", "Noto Serif SC", "Songti SC", serif; --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:root:lang(ko) { --serif: "Fraunces", "Noto Serif KR", "Nanum Myeongjo", serif; --sans: "Inter", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:lang(zh-Hans) .kicker, :lang(ko) .kicker { letter-spacing: .12em; }
:lang(zh-Hans) .hero h1, :lang(ko) .hero h1 { max-width: 12em; line-height: 1.25; }
:lang(ko) .hero h1, :lang(ko) h2 { word-break: keep-all; }
/* en la columna, chino y coreano van de pie (escritura vertical natural); el latín, girado */
/* selector de idioma */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-weight: 500; font-size: .9rem; padding: 4px 10px; border: 1.5px solid currentColor; border-radius: 999px; opacity: .9; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; font-size: .75em; }
.lang-menu > div { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--deep); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 150px; z-index: 60; }
.lang-menu > div a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.lang-menu > div a:hover, .lang-menu > div a[aria-current] { background: var(--lagoon-light); }
@media (max-width: 900px) {
  .lang-menu { border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .lang-menu summary { border: 0; padding: 0; display: inline-block; }
  .lang-menu > div { position: static; box-shadow: none; padding: 6px 0 0; }
}

/* ---------- edades de los niños en el buscador ---------- */
.search .ages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding-top: 6px; border-top: 1px dashed var(--line); }
.search .ages[hidden] { display: none; }
.search .ages label { width: 150px; }
.ages-note { flex: 1 1 220px; margin: 0; font-size: .82rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- motor: cantidad de habitaciones y extras ---------- */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--lagoon); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 36px; border: 0; background: #fff; color: var(--lagoon); font-size: 1.25rem; cursor: pointer; }
.stepper button:hover:not([disabled]) { background: var(--lagoon-light); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 30px; text-align: center; font-weight: 600; color: var(--deep); }
.rooms-picked { margin: 12px 0 0; font-weight: 600; color: var(--lagoon-dark); }
.extras { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.extras-grid { display: grid; gap: 12px; margin-top: 12px; }
.extra { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.extra.is-on { border-color: var(--lagoon); box-shadow: 0 0 0 1px var(--lagoon); }
.extra-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 16px; cursor: pointer; }
.extra-head input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lagoon); }
.extra-head strong { display: block; color: var(--deep); }
.extra-head small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.extra-price { font-style: normal; font-weight: 600; color: var(--deep); white-space: nowrap; }
.extra-body { padding: 0 16px 16px 48px; display: grid; gap: 12px; }
.extra-body[hidden] { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--lagoon); background: var(--lagoon-light); color: var(--lagoon-dark); }
.extra-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.extra-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 500; }
.extra-fields input, .extra-fields select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: 400 .95rem var(--sans); background: #fff; min-width: 0; }
@media (max-width: 600px) { .extra-fields { grid-template-columns: 1fr 1fr; } .extra-body { padding-left: 16px; } }
.summary .alert { margin: 0 0 12px; font-size: .9rem; }
.summary dl { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
.summary dd { max-width: 12.5rem; }
.search label > span { font-size: .68rem; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* en la página de reserva el buscador comparte fila con el resumen: dos filas */
.booking-page .search { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.booking-page .search > label:nth-of-type(1), .booking-page .search > label:nth-of-type(2) { grid-column: span 3; }
.booking-page .search > label.num { grid-column: span 2; }
.booking-page .search .btn { grid-column: 1 / -1; }
@media (max-width: 760px) { .booking-page .search > label.num { grid-column: span 2; } }
.extra.is-off { opacity: .6; }
.extra .wa { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 500; max-width: 340px; }
.extra .wa input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: 400 .95rem var(--sans); }
.extra .wa small { color: var(--muted); font-weight: 400; }
.extra-price { text-align: right; font-size: .92rem; }
.plus-bed { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--muted); }
.bed-note { background: var(--lagoon-light); color: var(--lagoon-dark); border-radius: 10px; padding: 8px 12px; }

/* ---------- botón flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.wa-float svg { width: 28px; height: 28px; flex: none; }
.intro-on .wa-float { opacity: 0; }
@media (max-width: 760px) {
  .wa-float { padding: 13px; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  /* en las habitaciones hay una barra fija abajo: el botón se sube encima */
  body:has(.sticky-book) .wa-float { bottom: 84px; }
}

/* ---------- pop-up informativo (tour) ---------- */
dialog.pop { border: 0; border-radius: var(--radius); padding: 24px; max-width: 420px; width: calc(100% - 32px); box-shadow: var(--shadow); color: var(--ink); }
dialog.pop::backdrop { background: rgba(8, 30, 28, .45); }
dialog.pop h3 { margin-top: 0; }
dialog.pop form { margin: 16px 0 0; text-align: right; }
/* con niños, las edades van debajo de los campos y el botón al final, a todo el ancho */
.search:has(.ages:not([hidden])) .btn { grid-column: 1 / -1; }

/* ---------- campo que falta: rojo + mensaje al lado ---------- */
.field-error, .search .field-error, .guest-form .field-error, .extra-fields .field-error, .extra .wa .field-error { border-color: #d64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .18) !important; }
.seg.field-error, .results.field-error, label.check.field-error { border-radius: 12px; outline: 2px solid #d64545; outline-offset: 4px; box-shadow: none !important; }
.field-tip { position: relative; margin: 8px 0 4px; background: #d64545; color: #fff; font-size: .85rem; font-weight: 500; line-height: 1.35; padding: 7px 12px; border-radius: 8px; width: fit-content; max-width: 100%; animation: tipIn .25s ease; text-transform: none; letter-spacing: 0; }
.field-tip::before { content: ""; position: absolute; top: -6px; left: 16px; border: 6px solid transparent; border-top: 0; border-bottom-color: #d64545; }
.search .field-tip { grid-column: 1 / -1; margin: 0; }
@keyframes tipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.captcha { margin: 0 0 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.paychoice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; }
.paychoice[hidden] { display: none; }
.paychoice legend { font-weight: 600; padding: 0 6px; }
.guest-form .paychoice .choice { flex-direction: row; align-items: flex-start; gap: 10px; margin-bottom: 0; cursor: pointer; font-size: .95rem; }
.guest-form .paychoice .choice input { margin-top: 3px; width: 18px; height: 18px; padding: 0; flex: none; }
.paychoice .choice small { display: block; color: var(--muted, #667); font-size: .85rem; }
