* {
  box-sizing: border-box;
}

:root {
  --brown-900: #3c2817;
  --brown-800: #4e3420;
  --brown-700: #6b4c2a;
  --gold: #e6b54a;
  --gold-soft: #f0cc76;
  --orange: #cb6120;
  --cream: #fdf5ec;
  --cream-dark: #f5e6cc;
  --white: #ffffff;
  --text: #2a1a0a;
  --muted: #6c5a48;
  --shadow: 0 12px 36px rgba(60, 40, 23, 0.12);
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.room-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(60, 40, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 181, 74, 0.22);
}

.room-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.room-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: transparent;
  text-decoration: none;
  font-size: 0;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(60,40,23,0.24);
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.34);
}

.room-brand img {
  height: 34px;
  filter: brightness(1.28) contrast(1.2) saturate(1.08) drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}

.room-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.room-nav a {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  padding: 10px 12px;
  border-radius: 999px;
}

.room-nav a:hover {
  color: var(--gold-soft);
  background: rgba(255,255,255,0.06);
}

.room-nav .btn-primary,
.room-nav .btn-outline,
.cta-row .btn-primary,
.cta-row .btn-outline {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
}

.btn-primary {
  background: var(--gold);
  color: var(--brown-900) !important;
}

.btn-primary:hover {
  background: var(--gold-soft) !important;
}

.btn-outline {
  border: 1px solid rgba(230,181,74,0.55);
  color: var(--gold-soft) !important;
}

.btn-outline:hover {
  background: rgba(230,181,74,0.1) !important;
}

.room-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.room-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60,40,23,0.25) 0%, rgba(60,40,23,0.78) 100%);
}

.room-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 88px 0 56px;
}

.eyebrow {
  color: var(--gold-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.room-hero h1,
.section-title,
.room-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.room-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.room-subtitle {
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  margin: 14px 0 22px;
}

.room-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-stats span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
}

.room-main {
  padding: 40px 0 80px;
}

.room-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--brown-900);
  font-weight: 500;
  margin-bottom: 14px;
}

.section-intro {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.highlight-list li,
.amenities li {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 14px 16px;
}

.highlight-list strong,
.price-box strong {
  display: block;
  color: var(--brown-900);
}

.highlight-list span,
.price-box small {
  color: var(--muted);
  font-size: 13px;
}

.price-stack {
  display: grid;
  gap: 14px;
}

.price-box {
  background: linear-gradient(135deg, var(--brown-900), var(--brown-800));
  color: var(--white);
  border-radius: 18px;
  padding: 20px;
}

.price-box strong {
  color: var(--gold-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}

.price-box .value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.price-box small {
  color: rgba(255,255,255,0.72);
}

.note-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(203,97,32,0.08);
  color: var(--brown-800);
  border: 1px solid rgba(203,97,32,0.15);
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--cream-dark);
}

.gallery-grid img {
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

.gallery-grid .tour-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-grid .tour-figure a {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.tour-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding: 0 6px;
}

@media (max-width: 780px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: auto;
    max-height: none;
  }
}

.tour-empty-msg {
  grid-column: 1 / -1;
  border: 1px dashed var(--cream-dark);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255,255,255,0.65);
}

.empty-gallery {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brown-900), var(--orange));
  color: var(--white);
  text-align: center;
  padding: 28px;
}

.empty-gallery strong {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.amenities {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.amenities li {
  color: var(--brown-800);
  font-size: 14px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cta-row a {
  text-decoration: none;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.link-row a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.link-row a:hover {
  color: var(--brown-900);
}

.footer-room {
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.room-listing {
  padding: 50px 0 80px;
}

.room-listing__hero {
  padding: 90px 0 28px;
  text-align: center;
}

.room-listing__hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--brown-900);
  margin: 0 0 10px;
}

.room-listing__hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.room-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.room-card img,
.room-card .room-card__placeholder {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.room-card .room-card__placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brown-900), var(--orange));
  color: var(--white);
  padding: 24px;
  text-align: center;
}

.room-card__body {
  padding: 20px;
}

.room-card__eyebrow {
  color: var(--orange);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.room-card h3 {
  font-size: 28px;
  color: var(--brown-900);
  margin-bottom: 8px;
}

.room-card p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 14px;
}

.room-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.room-card__meta span {
  background: var(--cream);
  color: var(--brown-800);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
}

.room-card__action {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11px;
}

@media (max-width: 980px) {
  .room-grid,
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .room-topbar .container {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .room-nav {
    justify-content: center;
  }

  .room-hero__content {
    padding: 74px 0 40px;
  }

  .highlight-list,
  .amenities,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }
}

.legacy-room-page {
  background: linear-gradient(180deg, #fdf5ec 0%, #fffaf4 100%);
  color: var(--text);
}

.legacy-room-page header {
  padding: 92px 20px 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(60,40,23,0.96), rgba(78,52,32,0.88));
  border-bottom: 3px solid var(--gold);
}

.legacy-room-page header h1 {
  margin: 0;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
}

.legacy-room-page main {
  width: min(1100px, calc(100% - 24px));
  margin: -24px auto 0;
  background: transparent;
  padding: 0 0 56px;
}

.legacy-room-page .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.legacy-room-page .gallery a,
.legacy-room-page .gallery > img {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--cream-dark);
}

.legacy-room-page .gallery img {
  width: 100% !important;
  height: 220px;
  object-fit: cover;
}

.legacy-room-page ul,
.legacy-room-page h3,
.legacy-room-page p,
.legacy-room-page #contenido,
.legacy-room-page .enmarcado {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.legacy-room-page ul,
.legacy-room-page h3,
.legacy-room-page p,
.legacy-room-page #contenido {
  padding: 22px 24px;
  margin: 0 0 18px;
}

.legacy-room-page ul {
  list-style: none;
}

.legacy-room-page ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--brown-800);
}

.legacy-room-page ul li:last-child {
  margin-bottom: 0;
}

.legacy-room-page ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
}

.legacy-room-page h3 {
  color: var(--brown-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
}

.legacy-room-page p {
  color: var(--muted);
}

.legacy-room-page .enmarcado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  margin: 0 12px 18px 0;
  color: var(--brown-900);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(230,181,74,0.2);
}

.legacy-room-page .enmarcado:hover,
.legacy-room-page .back-link:hover {
  transform: translateY(-1px);
}

.legacy-room-page .back-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .legacy-room-page .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .legacy-room-page .gallery {
    grid-template-columns: 1fr;
  }

  .legacy-room-page .enmarcado {
    width: 100%;
    margin-right: 0;
  }
}
