/* ---------- tokens ---------- */
:root {
  --ink: #142420;
  --paper: #FBFAF5;
  --paper-alt: #F2ECDC;
  --navy: #0E2E3A;
  --navy-deep: #0A2129;
  --teal: #2C93A8;
  --teal-deep: #1B6B7D;
  --terracotta: #B5602E;
  --sand: #E7DDC6;
  --whatsapp: #128047;
  --whatsapp-deep: #0D5E34;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 14px;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2.5rem);
}

/* keep anchor targets clear of the fixed header */
main#inicio, section[id] { scroll-margin-top: 100px; }

.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); max-width: 40rem; }
.section-head-light h2 { color: #fff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { max-width: 68ch; }

::selection { background: var(--teal-deep); color: #fff; }

html {
  scrollbar-color: var(--teal-deep) var(--paper-alt);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-alt); }
::-webkit-scrollbar-thumb {
  background: var(--teal-deep);
  border-radius: 999px;
  border: 3px solid var(--paper-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-deep); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

.btn-ghost-dark {
  border: 1.5px solid var(--teal-deep);
  color: var(--teal-deep);
  background: transparent;
}
.btn-ghost-dark:hover { background: var(--teal-deep); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.4rem 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(14, 46, 58, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
  color: #f2efe4;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.2rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--teal);
  transition: right 0.2s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-whatsapp { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-photo {
  transform-origin: 52% 48%;
  animation: heroBreeze 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroBreeze {
  0%   { transform: scale(1)     translate3d(0%, 0%, 0)      rotate(0deg); }
  50%  { transform: scale(1.045) translate3d(-0.8%, -0.5%, 0) rotate(0.15deg); }
  100% { transform: scale(1.08)  translate3d(-1.5%, -1%, 0)   rotate(0deg); }
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero.video-active .hero-photo { animation-play-state: paused; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,33,41,0.55) 0%, rgba(10,33,41,0.15) 32%, rgba(10,33,41,0.35) 62%, rgba(10,33,41,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem clamp(1.25rem, 5vw, 2.5rem) clamp(4.5rem, 9vw, 6.5rem);
  color: #fff;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  color: #fff;
  margin-bottom: 0.6rem;
}
.hero-tag {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--sand);
  max-width: 34rem;
  margin-bottom: 2.2rem;
  text-align: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--teal) 45%, var(--sand) 100%);
  z-index: 3;
}

/* ---------- intro ---------- */
.intro-inner p { color: #2c3a34; font-size: 1.05rem; margin-top: 1rem; }
.intro-inner p:first-of-type { margin-top: 1.4rem; }
.intro-inner h2 { max-width: 22ch; }

/* ---------- rooms ---------- */
.rooms { background: var(--paper-alt); }
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}
.room-card {
  background: var(--paper);
  border: 1px solid rgba(20,36,32,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.room-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(20,36,32,0.1);
}

.room-photo { position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.room-icon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(3px);
  color: var(--teal-deep);
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(10, 20, 15, 0.22);
}
.room-icon svg { width: 1.6rem; height: 1.6rem; }
.room-icon-double { width: auto; gap: 0.3rem; padding: 0.45rem 0.55rem; }
.room-icon-double svg { width: 1.3rem; height: 1.3rem; }

.room-body { padding: 1.5rem 1.5rem 1.75rem; }

.room-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}
.room-card h3 { margin-bottom: 0.3rem; }
.room-capacity { color: #566860; font-size: 0.92rem; }

/* ---------- amenities ---------- */
.amenities { background: var(--navy); }
.amenity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem 2rem;
}
.amenity-list li {
  color: #eef1ea;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  padding: 0.9rem 0 0.9rem 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  position: relative;
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- gallery carousel ---------- */
.carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-zoom {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.carousel-zoom img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(20, 36, 32, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.carousel-arrow svg { width: 1.3rem; height: 1.3rem; }
.carousel-arrow:hover { background: rgba(20, 36, 32, 0.8); }
.carousel-prev { left: 0.6rem; }
.carousel-next { right: 0.6rem; }

.carousel-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.carousel-caption { color: #45564e; font-size: 0.95rem; text-align: center; min-height: 1.3em; }

.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--sand);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--teal-deep); transform: scale(1.3); }

@media (min-width: 560px) {
  .carousel-arrow { width: 3.1rem; height: 3.1rem; }
  .carousel-prev { left: -1.5rem; }
  .carousel-next { right: -1.5rem; }
}

/* ---------- location ---------- */
.location { background: var(--paper-alt); }
.location-inner { max-width: 40rem; }
.location-inner p { color: #2c3a34; font-size: 1.05rem; margin: 1rem 0 1.75rem; }

/* ---------- contact ---------- */
.contact {
  background: var(--navy-deep);
  text-align: center;
}
.contact-inner { max-width: 34rem; margin: 0 auto; }
.contact-inner h2 { color: #fff; margin-bottom: 0.9rem; }
.contact-inner p { color: var(--sand); margin: 0 auto 2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #cdd8d0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { padding: 2.5rem 1.25rem; text-align: center; font-size: 0.88rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.footer-inner p + p { margin-top: 0.3rem; }

/* ---------- floating whatsapp ---------- */
.fab-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}
.fab-whatsapp.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-whatsapp:hover { background: var(--whatsapp-deep); }
.fab-whatsapp svg { width: 1.7rem; height: 1.7rem; fill: #fff; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: var(--sand); margin-top: 1rem; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ---------- reveal on scroll (room cards + amenity list cascade) ---------- */
.reveal-item { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-item.in-view { opacity: 1; transform: translateY(0); }

@media (scripting: none) {
  .reveal-item { opacity: 1; transform: none; }
}

/* ---------- responsive nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    height: 100svh;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.2rem;
    padding: 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 1.5rem; }
  .nav-links a { font-size: 1.1rem; }
  .nav-whatsapp { width: 100%; justify-content: center; }
}
