/* Complejo RB Don Ramiro — hoja de estilos común */
:root {
  --cream: #ffffff;
  --sand: #f8f5f0;
  --ink: #1b1b1b;
  --muted: #6f6a64;
  --wine: #aa8453;
  --wine-dark: #8c6a3f;
  --olive: #aa8453;
  --gold: #aa8453;
  --line: #ebe5dc;
  --radius: 0px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 500; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor;
  vertical-align: middle; margin: 0 12px 0 0;
}
.eyebrow::after { margin: 0 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--sand { background: var(--sand); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 1em 2em; border-radius: 0;
  font: 500 .85rem var(--sans); letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--wine); color: #fff; }
.btn--primary:hover { background: var(--wine-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--light { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--gold); }

/* Cabecera */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.header.is-solid, .header--solid { background: rgba(27, 27, 27, .97); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand span { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.brand small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: inherit; text-decoration: none; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .6em 1.2em; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); color: #fff; padding: 8px 16px 24px;
    box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s; z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
}

/* Hero */
.hero {
  position: relative; min-height: 92svh; display: grid; align-items: center; text-align: center;
  color: #fff; padding: 160px 0 140px;
  background: var(--ink) center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(15,12,10,.55); }
.hero > * { position: relative; }
.hero .eyebrow { color: #f0dcb4; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.hero p { font-size: 1.15rem; max-width: 52ch; margin-inline: auto; opacity: .9; }
.hero__stars { color: var(--gold); letter-spacing: .4em; font-size: 1.3rem; margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .hero__actions { justify-content: center; }

.page-hero {
  position: relative; color: #fff; padding: 200px 0 100px; text-align: center;
  background: var(--ink) center/cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,12,.45), rgba(20,15,12,.7)); }
.page-hero > * { position: relative; }
.page-hero .eyebrow { color: #f0dcb4; }
.page-hero--plain { background: var(--ink); padding: 170px 0 64px; }
.page-hero--plain::before { display: none; }
.crumbs { font-size: .85rem; opacity: .8; }
.crumbs a { color: inherit; }

/* Bloques */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } .split img { aspect-ratio: 4/3; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 48px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature svg { width: 30px; height: 30px; color: var(--wine); margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/5; color: #fff; text-decoration: none; background: var(--ink);
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.05); }
.card__body { position: absolute; inset: auto 0 0; padding: 28px; background: linear-gradient(transparent, rgba(20,15,12,.85)); }
.card__body h3 { font-size: 1.7rem; margin: 0 0 .2em; }
.card__body p { margin: 0; opacity: .85; font-size: .95rem; }

.quote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-style: italic; max-width: 26ch; margin: 0 auto; line-height: 1.25; }

/* Habitaciones */
.room { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.room:first-of-type { border-top: 0; }
@media (max-width: 860px) { .room { grid-template-columns: 1fr; } }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 3/2; }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery__btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.gallery__btn--prev { left: 14px; } .gallery__btn--next { right: 14px; }
.gallery__btn svg { width: 20px; height: 20px; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; background: rgba(20,15,12,.65); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; padding: 0; list-style: none; }
.tags li { background: var(--sand); border: 0; border-radius: 0; padding: 4px 14px; font-size: .88rem; color: var(--muted); }

.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 32px; padding: 0; list-style: none; margin: 32px 0 0; }
.amenities li { display: flex; gap: 12px; align-items: flex-start; }
.amenities svg { flex: none; width: 22px; height: 22px; color: var(--olive); margin-top: 3px; }

.rates-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 4px; margin: 24px 0; }
.rates-switch button { border: 0; background: none; font: 600 .9rem var(--sans); padding: .6em 1.3em; border-radius: 0; cursor: pointer; color: var(--muted); }
.rates-switch button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.rates { width: 100%; border-collapse: collapse; min-width: 520px; }
.rates th, .rates td { padding: 16px 20px; text-align: right; border-bottom: 1px solid var(--line); }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates thead th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--sand); }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates td { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.rates td:first-child { font-weight: 500; }
.note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); }
.callout h2 { margin: 0; }
.callout p { margin: .4em 0 0; opacity: .85; }

/* Mosaico */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; margin-top: 48px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.mosaic .tall { grid-row: span 2; }
@media (max-width: 700px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; }
.info-list svg { flex: none; width: 22px; height: 22px; color: var(--wine); margin-top: 3px; }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-list a { color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--wine); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.form input, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 5px; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); margin-top: 48px; filter: saturate(.85); }

/* Legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose p, .prose li { color: #403731; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }

/* Pie */
.footer { background: #141414; color: #d8cfc4; padding: 72px 0 28px; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .brand { margin-bottom: 16px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #9d9289; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom a { color: #c9bfb4; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Barra superior */
.topbar { background: #111; color: #bdb5ab; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold); }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 760px) { .topbar__addr { display: none !important; } }
.header { top: 38px; }
.header.is-solid { top: 0; }
.header--solid { top: 38px; }

/* Barra de reserva por WhatsApp */
.booking { position: relative; z-index: 2; margin-top: -60px; }
.booking form { display: grid; grid-template-columns: repeat(3, 1fr) auto; background: #fff; box-shadow: var(--shadow); }
.booking label { display: grid; gap: 4px; padding: 22px 28px; font-family: var(--serif); font-size: 1.15rem; border-right: 1px dashed var(--line); }
.booking input, .booking select { border: 0; font: 500 .9rem var(--sans); color: var(--gold); background: none; padding: 0; width: 100%; }
.booking input:focus, .booking select:focus { outline: none; }
.booking button { border-radius: 0; padding: 0 36px; }
.booking button svg, .btn svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 860px) {
  .booking form { grid-template-columns: 1fr 1fr; }
  .booking label { border-bottom: 1px dashed var(--line); }
  .booking button { grid-column: 1 / -1; padding: 18px; justify-content: center; }
}
@media (max-width: 480px) { .booking form { grid-template-columns: 1fr; } .booking label { border-right: 0; } }

/* Ofertas */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.offer { position: relative; overflow: hidden; aspect-ratio: 1 / 1.03; }
.offer img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.offer:hover img { transform: scale(1.06); }
.offer__label { position: absolute; left: 0; bottom: 24px; background: rgba(255,255,255,.88); padding: 18px 26px; min-width: 70%; transition: background .3s, color .3s; }
.offer:hover .offer__label { background: var(--gold); color: #fff; }
.offer__label h3 { font-size: 1.15rem; margin: 0; }
.offer__label p { margin: 4px 0 0; font-size: .88rem; opacity: .8; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }

/* Disponibilidad */
.booking--page { margin-top: -40px; }
.avail-summary { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 24px; }
.avail-msg { background: var(--sand); padding: 20px 24px; }
.avail { display: grid; grid-template-columns: 340px 1fr; background: #fff; border: 1px solid var(--line); margin-bottom: 20px; }
.avail > img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.avail__body { padding: 26px 30px; }
.avail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.avail__head h3 { font-size: 1.7rem; margin: 0; }
.avail__left { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #24613d; background: #dcefe3; padding: 4px 10px; white-space: nowrap; }
.avail p { color: var(--muted); margin: 8px 0 0; }
.avail__cap { font-size: .9rem; }
.avail__book { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.avail__book label { display: grid; gap: 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.avail__book select { font: inherit; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); background: var(--sand); }
.avail__price { margin-right: auto; }
.avail__price strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.avail__price small { color: var(--muted); }
.avail.is-full { opacity: .6; }
.avail.is-full .avail__left { background: #eee; color: #777; }
.avail__none { font-style: italic; }
@media (max-width: 760px) { .avail { grid-template-columns: 1fr; } .avail > img { aspect-ratio: 3/2; min-height: 0; } }

/* Texto que se oscurece palabra a palabra con el scroll */
.scroll-ink .w { color: #d3cbc1; transition: color .25s; }
.scroll-ink .w.on { color: var(--ink); }
.scroll-ink.lead .w.on { color: #4a443e; }
@media (prefers-reduced-motion: reduce) { .scroll-ink .w { color: inherit; } }
