/* ==========================================================================
   Posada Cerro Alto — hotel boutique demo (Awolkie Tech)
   ========================================================================== */

:root {
  --accent: #C1622D;                 /* terracota — color de acento editable */
  --cream: #FAF3E6;
  --cream-2: #F3E9D8;
  --forest: #1E3327;
  --forest-2: #2B4438;
  --ink: #2B241D;
  --ink-soft: #5C5348;
  --white: #FFFFFF;
  --line: rgba(43, 36, 29, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -25px rgba(30, 51, 39, 0.45);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
}

p { margin: 0; line-height: 1.65; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.eyebrow--light { color: var(--cream-2); }

.section__head {
  max-width: 640px;
  margin: 0 auto 44px;
  padding: 0 20px;
  text-align: center;
}
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section__sub { margin-top: 12px; font-size: 1.02rem; }

section { padding: 76px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(193, 98, 45, 0.65);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(193, 98, 45, 0.75); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--lg { padding: 15px 26px; font-size: 0.98rem; }
.btn--nav { padding: 9px 18px; font-size: 0.82rem; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(250, 243, 230, 0.92);
  backdrop-filter: blur(10px);
  padding: 11px 0;
  box-shadow: 0 6px 24px -18px rgba(30,51,39,0.5);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--forest);
  letter-spacing: 0.01em;
}
.nav.is-scrolled .nav__brand-name,
.nav:not(.is-scrolled) .nav__brand-name { color: var(--forest); }

.nav__links {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav__links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  opacity: 0.85;
}
.nav__links a:not(.btn):hover { opacity: 1; color: var(--accent); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(30,51,39,0.35);
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--forest);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

@media (max-width: 899px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,0.4);
  }
  .nav__links.is-open { display: flex; transform: translateX(0); }
  .nav__links a:not(.btn) { font-size: 1.05rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__bg { position: absolute; left: 0; right: 0; top: -12%; height: 124%; z-index: 0; background: var(--forest); }
.hero__bg video,
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg video { position: absolute; inset: 0; }
.hero__bg-fallback { display: none; position: absolute; inset: 0; }
.hero__bg-fallback.is-visible { display: block; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,27,20,0.35) 0%, rgba(18,24,17,0.35) 45%, rgba(14,18,14,0.9) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 100px;
  width: 100%;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream-2);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  color: var(--white);
  max-width: 14ch;
}
.hero__tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--cream-2);
  max-width: 32ch;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  display: none;
}
.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--white);
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}
@media (min-width: 700px) { .hero__scroll { display: block; } }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { padding: 84px 0; background: var(--cream); }
.intro__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.intro h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  margin-bottom: 22px;
}
.intro__text { font-size: 1.08rem; }

/* ==========================================================================
   ROOMS
   ========================================================================== */
.rooms { background: var(--white); }
.rooms__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 780px) {
  .rooms__grid { grid-template-columns: repeat(3, 1fr); }
}
.room-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.room-card:hover { transform: translateY(-6px); }
.room-card--featured { border: 2px solid var(--accent); }
.room-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.room-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-card__img img { transform: scale(1.06); }
.room-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-card__tag {
  align-self: flex-start;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.room-card__body h3 { font-size: 1.28rem; }
.room-card__body p { font-size: 0.94rem; flex: 1; }
.room-card__foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.room-card__price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--forest); }
.room-card__price small { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.link-arrow { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

/* ==========================================================================
   AMENITIES
   ========================================================================== */
.amenities { background: var(--forest); color: var(--cream); }
.amenities .eyebrow { color: var(--accent); }
.amenities .section__head h2 { color: var(--white); }
.amenities .section__sub { color: rgba(250,243,230,0.75); }
.amenities__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) { .amenities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .amenities__grid { grid-template-columns: repeat(3, 1fr); } }
.amenity {
  background: var(--forest);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.amenity__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(193, 98, 45, 0.16);
  color: var(--accent);
}
.amenity__icon svg { width: 22px; height: 22px; }
.amenity h3 { color: var(--white); font-size: 1.05rem; }
.amenity p { color: rgba(250,243,230,0.7); font-size: 0.9rem; }

/* ==========================================================================
   VISION Y MISION
   ========================================================================== */
.vision { background: var(--white); }
.vision__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .vision__inner { grid-template-columns: 220px 1fr; gap: 60px; }
}
.vision__seal {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  flex-shrink: 0;
}
.vision__seal-ring { width: 100%; height: 100%; transform-origin: 50% 50%; }
.vision__seal-text {
  font-family: var(--font-body);
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: 0.06em;
  fill: var(--accent);
}
.vision__seal-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
.vision__content h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 26px; }
.vision__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .vision__grid { grid-template-columns: 1fr 1fr; } }
.vision__card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-left: 3px solid var(--accent);
}
.vision__card-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 10px;
}
.vision__card p { font-size: 0.95rem; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { background: var(--cream); }
.gallery__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery__item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  background: none;
}
.gallery__item--tall { aspect-ratio: 3 / 4; }
@media (min-width: 720px) {
  .gallery__item { grid-row: span 1; }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 3 / 4; }
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 19, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

/* ==========================================================================
   RECORRIDO (TOUR)
   ========================================================================== */
.tour { background: var(--cream-2); }
.tour__rows {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.tour-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 780px) {
  .tour-row { grid-template-columns: 1.15fr 0.85fr; gap: 52px; }
  .tour-row--reverse .tour-row__img { order: 2; }
  .tour-row--reverse .tour-row__text { order: 1; }
}
.tour-row__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}
.tour-row__img img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
}
.tour-row__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.tour-row__text h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 12px;
}
.tour-row__text p { font-size: 1rem; max-width: 46ch; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--white); }
.testimonials__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 780px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial__stars { color: var(--accent); letter-spacing: 3px; font-size: 0.95rem; }
.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.6;
}
.testimonial footer { font-size: 0.85rem; font-weight: 700; color: var(--forest); }
.testimonial footer span { font-weight: 500; color: var(--ink-soft); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--forest); }
.contact__card {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) { .contact__card { grid-template-columns: 1.1fr 1fr; } }
.contact__info h2 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 14px; }
.contact__text { color: rgba(250,243,230,0.78); margin-bottom: 26px; max-width: 46ch; }
.contact__details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__detail { display: flex; flex-direction: column; gap: 2px; }
.contact__detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
}
.contact__detail-value { color: var(--white); font-weight: 600; font-size: 0.98rem; }
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  border: 6px solid rgba(255,255,255,0.06);
}
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(12%) saturate(85%); }

/* ---------- reserve form ---------- */
.reserve {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 0 20px;
}
.reserve__card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}
.reserve__card h3 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin-bottom: 10px;
}
.reserve__sub { margin-bottom: 26px; font-size: 0.95rem; }
.reserve__form { display: flex; flex-direction: column; gap: 16px; }
.reserve__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 520px) { .reserve__row { grid-template-columns: 2fr 1fr; } }
.reserve__field { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--forest); }
.reserve__field input,
.reserve__field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  resize: vertical;
}
.reserve__field input:focus,
.reserve__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 98, 45, 0.15);
}
.reserve__submit { align-self: flex-start; margin-top: 4px; }
.reserve__note { font-size: 0.85rem; font-weight: 600; color: var(--forest); min-height: 1.2em; margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #16241C; color: rgba(250,243,230,0.75); }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 20px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 780px) {
  .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__logo { width: 34px; height: 34px; border-radius: 50%; }
.footer__brand-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); font-weight: 600; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.9rem; }
.footer__links a:hover { color: var(--accent); }
.footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer__phone { font-weight: 700; color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px 28px;
  text-align: center;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(250,243,230,0.5); }
.footer__credit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(250,243,230,0.75);
  font-weight: 700;
  text-decoration: none;
}
.footer__credit-link:hover { color: var(--accent); }
.footer__credit-link svg { flex-shrink: 0; }

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 400;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
