﻿:root {
  --blue: #0b67b2;
  --purple: #9a4d8f;
  --lime: #a8cf3a;
  --ink: #142033;
  --muted: #647084;
  --line: #dfe7ef;
  --soft: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 32, 51, .12);
  --radius: 8px;
  --font-title: "Nunito", Arial, sans-serif;
  --font-body: "Nunito", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 86px 0; }
.section.soft { background: var(--soft); }
.eyebrow { color: var(--purple); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.04; margin: 0 0 18px; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.65rem, 6.2vw, 5.7rem); color: var(--white); max-width: 880px; }
h2 { font-size: clamp(2.05rem, 4vw, 3.35rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 18px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }

.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223,231,239,.8);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-logo {
  width: 176px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.footer-logo {
  width: 190px;
  height: 64px;
  border-radius: var(--radius);
  padding: 6px;
  mix-blend-mode: normal;
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(from 40deg, var(--blue), var(--purple), var(--lime), var(--blue));
  display: grid; place-items: center; color: var(--white);
  font-family: var(--font-title); font-size: 1.45rem;
}
.brand small { display: block; color: var(--muted); font-weight: 600; margin-top: -4px; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { font-weight: 800; font-size: .95rem; }
.menu-item { position: relative; padding: 28px 0; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(720px, 92vw); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 22px; border-radius: var(--radius);
  opacity: 0; pointer-events: none; translate: 0 8px; transition: .22s ease;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.menu-item:hover .mega, .menu-item:focus-within .mega { opacity: 1; pointer-events: auto; translate: 0 0; }
.mega a { padding: 12px; border-radius: var(--radius); background: var(--soft); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: var(--radius); }
.nav-toggle span { display: block; width: 21px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: var(--radius); padding: 13px 20px;
  background: var(--blue); color: var(--white); font-weight: 900;
  box-shadow: 0 12px 24px rgba(11,103,178,.18);
  min-height: 46px;
}
.btn.alt { background: var(--white); color: var(--blue); }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--line); box-shadow: none; }
.btn.purple { background: var(--purple); box-shadow: 0 12px 24px rgba(154,77,143,.18); }

.hero {
  min-height: 100vh;
  padding-top: 78px;
  display: grid; align-items: end;
  position: relative;
  overflow: hidden;
  background: #5d6a75;
}
.hero:not(.hero-home) {
  background: linear-gradient(90deg, rgba(10,28,48,.76), rgba(10,28,48,.25)), var(--hero, url("img/slider.jpg")) center/cover;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #5d6a75;
}
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,28,48,.78), rgba(10,28,48,.28));
}
.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 6s ease;
}
.hero-slider img.active {
  opacity: 1;
  transform: scale(1);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, rgba(0,0,0,.28)); }
.hero-content { position: relative; z-index: 1; padding: 0 0 88px; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.home-room-search {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr 126px;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
  padding: 14px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(8,18,31,.18);
}
.home-room-search select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(100,112,132,.22);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--ink);
  padding: 0 42px 0 14px;
  font-weight: 800;
  outline: 0;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 20px,
    calc(100% - 14px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.home-room-search .btn {
  width: 100%;
  min-height: 48px;
}
.page-hero { min-height: 56vh; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 10px 28px rgba(20,32,51,.07);
}
.card-body { padding: 22px; }
.room-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--soft); }
.package-card .room-img { aspect-ratio: 16/9; }
.package-card h3 { min-height: 58px; }
.package-list {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}
.package-list li { margin-bottom: 7px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--soft); color: var(--muted); border-radius: 999px; font-size: .83rem; font-weight: 800; }
.services { display: flex; gap: 9px; flex-wrap: wrap; color: var(--blue); margin: 12px 0 18px; }
.services i { width: 30px; height: 30px; display: grid; place-items: center; background: #eef6fc; border-radius: 50%; }

.masonry { columns: 3 260px; column-gap: 16px; }
.masonry a { display: block; break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(20,32,51,.08); }
.masonry img { width: 100%; aspect-ratio: var(--ratio, 4/3); object-fit: cover; transition: transform .35s ease; }
.masonry a:hover img { transform: scale(1.045); }
.room-detail-section {
  padding-top: 44px;
}
.room-detail-layout {
  align-items: start;
}
.room-summary {
  align-self: start;
  padding-top: 0;
}
.room-summary .lead {
  margin-bottom: 20px;
}
.room-summary .meta {
  margin-top: 0;
  margin-bottom: 18px;
}
.room-summary h3 {
  margin-top: 8px;
}
.room-gallery {
  align-self: start;
}
.reservation-section {
  padding-top: 64px;
}
.reservation-layout {
  width: min(860px, 100%);
  margin: 0 auto;
}
.room-page-section {
  padding: 52px 0 82px;
  background: var(--white);
}
.room-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 46px;
  align-items: start;
}
.room-section-title {
  color: var(--ink);
  font-size: clamp(2rem, 3.3vw, 3rem);
  max-width: 760px;
  margin-bottom: 0;
}
.room-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}
.room-capacity-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.room-capacity-pill i {
  color: var(--purple);
}
.room-detail-meta {
  margin: 18px 0 24px;
}
.room-divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.room-info-panel h2:not(.room-section-title) {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0 0 20px;
}
.room-services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 0 0 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.room-services-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}
.room-services-list i {
  color: var(--purple);
}
.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.room-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20,32,51,.08);
}
.room-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .35s ease;
}
.room-gallery-grid a:hover img {
  transform: scale(1.04);
}
.room-reservation-panel {
  position: sticky;
  top: 102px;
  z-index: 2;
  margin-top: -178px;
}
.room-booking-card {
  padding: 24px;
  border-color: rgba(223,231,239,.82);
}
.room-booking-card h2 {
  color: var(--purple);
  font-size: clamp(1.55rem, 2.35vw, 2rem);
  margin-bottom: 8px;
}
.room-booking-card > p {
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 16px;
}
.room-booking-card .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.room-booking-card .field {
  gap: 5px;
  margin-bottom: 4px;
}
.room-booking-card .field label {
  font-size: .84rem;
}
.room-booking-card .field input,
.room-booking-card .field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border-color: rgba(100,112,132,.18);
  background: #fbfcfe;
}
.room-booking-card .field textarea {
  min-height: 96px;
}
.room-booking-card .whatsapp-submit {
  width: 100%;
  background: var(--purple);
  box-shadow: 0 12px 24px rgba(154,77,143,.18);
  margin-top: 6px;
}
.room-back-link {
  display: block;
  margin-top: 18px;
  color: var(--purple);
  text-align: center;
  font-weight: 900;
}

.cta-band {
  background: linear-gradient(135deg, rgba(11,103,178,.94), rgba(154,77,143,.92)), url("https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1600&q=75") center/cover;
  color: var(--white); padding: 80px 0;
}
.cta-band p { color: rgba(255,255,255,.88); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

.filters {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,251,.96));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(11,103,178,.13);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 18px 45px rgba(20,32,51,.1);
}
.filters::before {
  content: "Filtros de busqueda";
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 122px;
  gap: 12px;
  align-items: center;
}
.filter-grid input,
.filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(100,112,132,.22);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--ink);
  padding: 0 42px 0 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(20,32,51,.05);
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.filter-grid input {
  min-width: 0;
}
.filter-grid select {
  min-width: 0;
}
.filter-grid input::placeholder { color: #8a96a8; }
.filter-grid select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11,103,178,.11), 0 12px 24px rgba(20,32,51,.08);
}
.filter-grid input:hover,
.filter-grid select:hover {
  transform: translateY(-1px);
}
#clearFilters {
  width: 100%;
  min-height: 50px;
  white-space: nowrap;
}
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: .88rem; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; background: var(--white);
}
.room-field input {
  min-width: 0;
  height: auto;
  min-height: 52px;
  white-space: normal;
  text-overflow: clip;
  font-weight: 600;
}
.result-count { color: var(--muted); font-weight: 800; margin-bottom: 16px; }
.no-results { display: none; padding: 38px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.full { grid-column: 1 / -1; }
.error { color: #b42318; font-size: .84rem; font-weight: 800; min-height: 18px; }
.nights { color: var(--blue); font-weight: 900; }

.footer { background: #101927; color: var(--white); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.footer a, .footer p { color: rgba(255,255,255,.76); }
.footer h3 { color: var(--white); font-family: var(--font-body); font-size: 1rem; }
.subscribe { display: flex; gap: 8px; }
.subscribe input { min-width: 0; border-radius: var(--radius); border: 0; padding: 12px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; color: rgba(255,255,255,.62); }

.float-whatsapp, .back-top {
  position: fixed; right: 18px; z-index: 60; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%; color: var(--white); border: 0;
}
.float-whatsapp { bottom: 86px; background: #25d366; }
.back-top { bottom: 22px; background: var(--purple); opacity: 0; pointer-events: none; transition: .2s; }
.back-top.show { opacity: 1; pointer-events: auto; }

.popup { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(12,20,32,.58); padding: 20px; }
.popup.active { display: grid; }
.popup-card { width: min(860px, 100%); max-height: calc(100vh - 40px); background: var(--white); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; box-shadow: var(--shadow); position: relative; }
.popup-poster { width: min(520px, 100%); display: block; background: transparent; }
.popup-link { display: block; line-height: 0; }
.popup-card img { width: 100%; height: 100%; object-fit: contain; background: var(--soft); }
.popup-poster img { display: block; width: 100%; height: auto; max-height: calc(100vh - 40px); object-fit: contain; background: transparent; }
.popup-content { padding: 32px; }
.popup-close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 42px; height: 42px; border: 1px solid rgba(14,27,49,.14); border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; box-shadow: 0 10px 24px rgba(14,27,49,.16); cursor: pointer; }
.popup-close:hover { color: var(--primary); transform: translateY(-1px); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,12,18,.86); display: none; place-items: center; padding: 24px; }
.lightbox.active { display: grid; }
.lightbox img { max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
