/* Rochimar — casa de playa, Puerto de Lomas */
:root {
  --sand: #faf6ee;
  --sand-deep: #f1e9da;
  --ocean: #0e3a49;
  --ocean-deep: #092833;
  --teal: #17879b;
  --coral: #ff6b57;
  --pink: #ff5fa2; /* guiño al letrero de neón */
  --ink: #1c2b31;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
em { font-style: italic; color: var(--pink); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 58, 73, 0.08);
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  color: var(--ocean); text-decoration: none;
}
.nav__brand span { color: var(--pink); }
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--teal); }
.nav__actions { display: flex; align-items: center; gap: 0.7rem; }
.lang-toggle {
  background: none; border: 1.5px solid var(--ocean); color: var(--ocean);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover, .lang-toggle:focus-visible { background: var(--ocean); color: #fff; }

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--coral); color: #fff;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(255, 107, 87, 0.35);
}
.btn:hover, .btn:focus-visible { background: #e8543f; transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: none;
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255,255,255,0.15); }
.btn--small { padding: 0.55rem 1.3rem; font-size: 0.9rem; }

/* HERO */
.hero {
  position: relative; min-height: 92vh;
  display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,40,51,0.45) 0%, rgba(9,40,51,0.35) 50%, rgba(9,40,51,0.72) 100%);
}
.hero__content { position: relative; padding: 6rem 1.25rem 3rem; max-width: 780px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1rem; color: #ffd9c9;
}
.hero__content h1 em { color: var(--pink); }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); margin: 1.3rem auto 1.4rem; max-width: 34rem; }
.hero__badges { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.badge {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.95rem; border-radius: 999px;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FACTS */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1050px; margin: -3.2rem auto 0; position: relative; z-index: 5;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(9, 40, 51, 0.12);
  padding: 1.6rem 1rem;
}
.facts__item { text-align: center; padding: 0.4rem 0.6rem; }
.facts__item strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--teal); }
.facts__item span { font-size: 0.88rem; color: #5b6d74; }

/* SECTIONS */
.section { max-width: 1050px; margin: 0 auto; padding: 5rem 1.25rem 3.5rem; }
.section--alt { max-width: none; background: var(--sand-deep); }
.section--alt > * { max-width: 1050px; margin-left: auto; margin-right: auto; }
.section h2 { color: var(--ocean); }
.section__sub { color: #5b6d74; margin: 0.7rem 0 2.2rem; max-width: 40rem; }

/* GALLERY */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--sand-deep);
}
.gallery__item--tall { grid-row: span 2; aspect-ratio: auto; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery__item:hover img, .gallery__item:focus-within img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1rem 0.8rem; color: #fff; font-size: 0.85rem; font-weight: 500;
  background: linear-gradient(180deg, transparent, rgba(9,40,51,0.75));
}

/* AMENITIES */
.amenities {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem;
  padding-bottom: 1.5rem;
}
.amenities li {
  background: #fff; border-radius: 12px; padding: 0.95rem 1.1rem;
  font-weight: 500; box-shadow: 0 3px 12px rgba(9, 40, 51, 0.06);
}

/* GUIDE CARDS */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  padding-bottom: 1.5rem;
}
.card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: 0 3px 14px rgba(9, 40, 51, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(9, 40, 51, 0.13); }
.card__icon { font-size: 2.1rem; display: block; margin-bottom: 0.7rem; }
.card h3 { color: var(--ocean); font-size: 1.25rem; margin-bottom: 0.45rem; }
.card p { color: #4d5f66; font-size: 0.95rem; }

/* REVIEWS */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: 0 3px 14px rgba(9, 40, 51, 0.07);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.review__stars { color: #f5a623; letter-spacing: 0.15em; font-size: 1rem; }
.review p { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); line-height: 1.5; }
.review footer { color: #5b6d74; font-size: 0.88rem; margin-top: auto; }
.reviews__note { color: #8a9aa0; font-size: 0.8rem; margin-top: 1.4rem; padding-bottom: 1rem; }

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover, .wa-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* MAP */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 35px rgba(9,40,51,0.12); }

/* HOSTS */
.hosts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding-bottom: 1.5rem; }
.hosts__card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem;
  text-align: center; box-shadow: 0 3px 14px rgba(9,40,51,0.07);
}
.hosts__avatar {
  width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
}
.hosts__avatar--alt { background: linear-gradient(135deg, var(--pink), var(--coral)); }
.hosts__card h3 { color: var(--ocean); margin-bottom: 0.35rem; }
.hosts__card p { color: #5b6d74; font-size: 0.95rem; }

/* RULES */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rules__card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem;
  text-align: center; box-shadow: 0 3px 14px rgba(9,40,51,0.07);
}
.rules__card h3 { color: var(--teal); font-size: 1.15rem; margin-bottom: 0.3rem; }

/* CTA */
.cta {
  position: relative; text-align: center; color: #fff;
  padding: 7rem 1.25rem; overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__overlay { position: absolute; inset: 0; background: rgba(9, 40, 51, 0.72); }
.cta__content { position: relative; max-width: 640px; margin: 0 auto; }
.cta__content p { margin: 1rem 0 2rem; font-size: 1.1rem; }
.cta__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer {
  background: var(--ocean-deep); color: #b8ccd3;
  text-align: center; padding: 2.2rem 1.25rem; font-size: 0.9rem;
}
.footer strong { color: #fff; }
.footer__demo { margin-top: 0.4rem; font-size: 0.78rem; opacity: 0.7; }

/* LIGHTBOX */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 20, 26, 0.93);
  display: grid; place-items: center; padding: 2rem;
}
.lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: 10px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: none; color: #fff; font-size: 2.6rem;
  cursor: pointer; line-height: 1;
}
.lightbox__close:hover, .lightbox__close:focus-visible { color: var(--coral); }

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); margin: -2.4rem 1rem 0; gap: 0.4rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 4 / 3; }
  .hosts, .rules { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
