/* ==========================================================
   CLUB JAREMAR — sistema de diseño
   Paleta tomada de las fotos reales del club:
   verde selva (follaje), turquesa (piscina), coral (flamboyán),
   dorado (fachada), blanco-menta (fondo base)
   ========================================================== */

:root {
  --verde:          #123527;
  --verde-2:        #0E1A15;
  --turquesa:       #14A8A0;
  --turquesa-claro: #E1F3EF;
  --coral:          #E8603D;
  --coral-2:        #C94A2A;
  --dorado:         #EFA83B;
  --crema:          #F4FAF7;
  --tinta:          #12201A;
  --blanco:         #FFFFFF;

  --font-display: "Bricolage Grotesque", "Work Sans", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "Space Mono", monospace;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(18, 32, 26, 0.35);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--verde);
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--turquesa);
  margin: 0 0 0.8em;
}
.eyebrow--light { color: var(--dorado); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--coral { background: var(--coral); color: var(--blanco); }
.btn--coral:hover { background: var(--coral-2); box-shadow: 0 10px 24px -8px rgba(232, 96, 61, 0.55); }
.btn--ghost { border-color: rgba(255,255,255,0.7); color: var(--blanco); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline { border-color: var(--verde); color: var(--verde); background: transparent; }
.btn--outline:hover { background: var(--verde); color: var(--blanco); }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(244, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 24px -16px rgba(18,32,26,0.4);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blanco);
  transition: color 0.25s ease;
}
.nav.is-scrolled .nav__brand { color: var(--verde); }
.nav__brand-icon { width: 26px; height: 26px; color: var(--dorado); flex-shrink: 0; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav.is-scrolled .nav__links a { color: var(--tinta); }
.nav__links a:hover { color: var(--dorado); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--blanco);
  transition: background 0.25s ease;
}
.nav.is-scrolled .nav__toggle span { background: var(--verde); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--verde);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,21,0.55) 0%, rgba(14,26,21,0.35) 45%, rgba(14,26,21,0.85) 100%);
}
.hero__content { position: relative; z-index: 2; color: var(--blanco); padding-top: 90px; }
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--blanco);
  margin-bottom: 0.15em;
  line-height: 0.95;
}
.hero__title em { color: var(--dorado); font-style: italic; }
.hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 34ch; color: rgba(255,255,255,0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1.6em; }

/* ---------- Divisor festoneado (firma visual) ---------- */
.scallop {
  height: 34px;
  width: 100%;
  background-color: var(--scallop-to);
  background-image: radial-gradient(circle at 17px 0, var(--scallop-to) 17px, var(--scallop-from) 17.5px);
  background-size: 34px 34px;
  background-repeat: repeat-x;
  background-position: top;
}

/* ---------- Secciones ---------- */
.section { padding: 84px 0; background: var(--crema); }
.section--tint { background: var(--turquesa-claro); }
.section--dark { background: var(--verde); color: rgba(255,255,255,0.92); padding-bottom: 60px; }
.section--dark h2 { color: var(--blanco); }
.section__intro { max-width: 60ch; font-size: 1.08rem; }

/* Sobre el club */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about__image img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.3; object-fit: cover; width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--blanco);
  border: 1px solid rgba(18,53,39,0.12);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--verde);
}
.chip__icon { width: 18px; height: 18px; color: var(--turquesa); }

/* Grids de galería por sección */
.grid--gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 2.2em;
}
.grid--gallery .grid__item { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; }
.grid--gallery .grid__item--wide { grid-column: span 2; grid-row: span 2; }
.grid--gallery .grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.grid--gallery .grid__item:hover img { transform: scale(1.06); }

.grid--events { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.grid--events .grid__item { aspect-ratio: 4/3; }

/* Eventos */
.events { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding-bottom: 20px; }
.events__image img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }

/* Galería con filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.8em 0 2em; }
.filter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(18,53,39,0.25);
  background: transparent;
  color: var(--verde);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.filter:hover { border-color: var(--turquesa); }
.filter.active { background: var(--verde); border-color: var(--verde); color: var(--blanco); }

.grid--masonry {
  columns: 4 220px;
  column-gap: 18px;
}
.grid--masonry .grid__item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.grid--masonry .grid__item img { width: 100%; height: auto; transition: transform 0.4s ease; }
.grid--masonry .grid__item:hover img { transform: scale(1.05); }
.grid--masonry .grid__item.is-hidden { display: none; }

/* Reservas / planes */
.grid--plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2em; }
.plan {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.plan__label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--verde); margin-bottom: 0.3em; }
.plan__desc { color: rgba(18,32,26,0.75); font-size: 0.95rem; }
.plan__note { font-family: var(--font-mono); font-size: 0.82rem; color: rgba(18,32,26,0.55); margin-top: 1.6em; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contact__list { margin-top: 1.6em; display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(18,53,39,0.12); padding-bottom: 10px; }
.contact__list span:first-child { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--turquesa); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }

/* Footer */
.footer { background: var(--verde-2); color: rgba(255,255,255,0.78); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.nav__brand--footer { color: var(--blanco); }
.footer__col h3 { color: rgba(255,255,255,0.5); font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1em; font-weight: 400; }
.footer__col a { display: block; margin-bottom: 10px; font-size: 0.92rem; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--dorado); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--blanco);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,26,21,0.94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 88vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lightbox__caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: var(--blanco); font-family: var(--font-mono); font-size: 0.85rem; }
.lightbox__close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: var(--blanco);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: var(--blanco);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .about, .events, .contact { grid-template-columns: 1fr; }
  .events__image { order: -1; }
  .grid--gallery { grid-template-columns: repeat(2, 1fr); }
  .grid--gallery .grid__item--wide { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
  .grid--events { grid-template-columns: repeat(2, 1fr); }
  .grid--plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--masonry { columns: 2 200px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--verde);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--blanco); font-size: 1.1rem; }
  .nav__toggle { display: flex; }

  .grid--gallery { grid-template-columns: 1fr 1fr; }
  .grid--events { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__map { min-height: 260px; }
  .grid--masonry { columns: 2 160px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
}
