/* ============================================================
   BLUE GYM · Secciones
   ============================================================ */

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  color: var(--paper);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-scrolled {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px -18px rgba(14,34,51,.5);
  color: var(--ink);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.header:not(.is-scrolled) .logo__text b { color: var(--paper); }
.header:not(.is-scrolled) .logo__mark { box-shadow: inset 0 0 0 1px rgba(242,245,247,.25); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; font-size: .74rem; color: var(--ink-soft);
  position: relative; padding-block: .3rem; transition: color .25s var(--ease);
}
.header:not(.is-scrolled) .nav__links a { color: rgba(242,245,247,.82); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--signal); transition: width .3s var(--ease);
}
.header:not(.is-scrolled) .nav__links a:hover { color: var(--paper); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  font-family: var(--f-mono); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: .72rem;
  padding: .7em 1em; border-radius: var(--radius);
  color: inherit; box-shadow: inset 0 0 0 1.5px currentColor;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,34,51,.55) 0%, rgba(14,34,51,.2) 32%, rgba(14,34,51,.72) 76%, var(--navy) 100%),
    linear-gradient(90deg, rgba(14,34,51,.78) 0%, transparent 58%);
}
.hero { background: var(--navy); }
.hero__inner { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); padding-top: 7rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.7rem; }
.hero h1 {
  font-size: var(--step-hero);
  color: var(--paper);
  letter-spacing: .005em;
  line-height: .98;
  margin-bottom: 1.4rem;
  max-width: 16ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero__sub { max-width: 48ch; margin-bottom: 2rem; color: rgba(242,245,247,.86); font-size: var(--step-1); }
.hero__sub b { color: var(--paper); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__cta .btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(242,245,247,.4); }
.hero__cta .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.hero__scroll {
  position: absolute; right: var(--pad-x); bottom: 2.4rem; z-index: 2;
  writing-mode: vertical-rl; font-family: var(--f-mono); font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; font-size: .66rem; color: rgba(242,245,247,.6);
  display: flex; align-items: center; gap: 1rem;
}
.hero__scroll .bar { width: 1px; height: 54px; background: linear-gradient(var(--signal), transparent); }

/* ---------- Intro + stats ---------- */
.intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); align-items: end; }
.intro h2 { font-size: var(--step-2); margin: 1rem 0 1.2rem; color: var(--ink); }
.intro h2 em { font-style: normal; color: var(--blue); }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat { background: var(--surface); padding: 1.5rem 1.4rem; }
.stat b {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem,1.4rem + 2.4vw,3rem); color: var(--ink);
  display: block; line-height: 1;
}
.stat b .accent { color: var(--signal); }
.stat > span {
  display: block; margin-top: .4rem; font-family: var(--f-mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--ink-soft);
}

/* ---------- Grid de instalaciones ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, .4rem + 1vw, 1.15rem); }
.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.2rem); }
.section__head h2 { font-size: var(--step-2); margin-top: .8rem; color: var(--ink); }

/* ---------- Zonas destacadas (filas alternas) ---------- */
.zones { display: grid; gap: clamp(1.5rem, .5rem + 3vw, 3rem); }
.zone {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(1rem,.5rem + 2vw,2.6rem);
}
.zone__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 320px; box-shadow: inset 0 0 0 1px var(--line);
}
.zone__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.zone:hover .zone__media img { transform: scale(1.04); }
.zone__body { align-self: center; }
.zone__kicker {
  font-family: var(--f-mono); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .74rem; color: var(--blue); display: block; margin-bottom: .8rem;
}
.zone__body h3 { font-size: var(--step-2); margin-bottom: .9rem; color: var(--ink); }
.zone__body p { max-width: 44ch; margin-bottom: 1.3rem; color: var(--ink-soft); }
.zone__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  font-size: .7rem; color: var(--ink-soft); padding: .5em .9em; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.zone:nth-child(even) .zone__media { order: 2; }

/* ---------- Galería (sección marino para que resalten las fotos) ---------- */
#galeria { background: var(--navy); }
#galeria .eyebrow { color: var(--fog); }
#galeria .section__head h2 { color: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem,.3rem + 1vw,1rem); }
.gallery__item {
  aspect-ratio: 4 / 3; margin: 0;
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px var(--line-dark); cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,34,51,.72));
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: .9rem; bottom: .8rem; z-index: 2;
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  font-size: .68rem; color: var(--paper); opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }

/* ---------- Ubicación / horarios ---------- */
.locate { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.locate__map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 360px; box-shadow: inset 0 0 0 1px var(--line); display: block;
}
.locate__map img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.locate__map:hover img { transform: scale(1.03); }
.locate__map::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(14,34,51,.06), rgba(14,34,51,.42)); }
.locate__pin {
  position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%,-100%);
}
.locate__pin .badge {
  font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: .74rem; color: var(--navy); padding: .55em 1em; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow-md); white-space: nowrap;
}
.locate__map .open-cta { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; }

.locate__panel { display: flex; flex-direction: column; }
.info-row { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.info-row h4 {
  font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  font-size: .74rem; color: var(--blue); margin-bottom: .45rem;
}
.info-row p { font-size: var(--step-0); color: var(--ink-soft); line-height: 1.55; }
.info-row a { color: var(--blue); font-weight: 600; }
.info-row a:hover { color: var(--signal); text-decoration: underline; }

/* ---------- CTA final (panel marino sólido) ---------- */
.cta-final {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(2.5rem,1.5rem + 5vw,5rem) clamp(1.5rem,1rem + 3vw,4rem);
  text-align: center; background: var(--navy);
}
.cta-final .eyebrow { color: var(--fog); justify-content: center; }
.cta-final h2 { font-size: var(--step-3); margin-bottom: 1.1rem; color: var(--paper); }
.cta-final h2 em { font-style: normal; color: var(--signal); }
.cta-final p { max-width: 48ch; margin: 0 auto 2rem; color: rgba(242,245,247,.82); }
.cta-final .hero__cta { justify-content: center; }
.cta-final .btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(242,245,247,.4); }
.cta-final .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(3rem,2rem + 3vw,4.5rem) 2.2rem; background: var(--navy); color: var(--fog); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gap); margin-bottom: 2.8rem; }
.footer__brand .logo__text b { color: var(--paper); }
.footer__brand p { max-width: 34ch; margin-top: 1.1rem; font-size: var(--step--1); color: var(--fog); }
.footer h5 { font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--paper); margin-bottom: 1.1rem; }
.footer__col a, .footer__col span { display: block; color: var(--fog); font-size: var(--step--1); padding-block: .38rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--signal); }
.socials { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.3rem; }
.socials a {
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  font-size: .72rem; color: var(--paper); padding-bottom: 3px; box-shadow: inset 0 -1px 0 var(--line-dark);
  transition: box-shadow .2s var(--ease), color .2s var(--ease);
}
.socials a:hover { color: var(--signal); box-shadow: inset 0 -1px 0 var(--signal); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); font-size: .78rem; color: var(--fog); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: clamp(1rem,3vw,3rem); background: rgba(8,18,28,.94); }
.lightbox.is-open { display: grid; animation: fade .25s var(--ease); }
.lightbox img { max-width: 100%; max-height: 86svh; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; color: var(--paper);
  font-family: var(--f-body); background: rgba(22,50,71,.7); box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.lightbox__close { top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: var(--radius); font-size: 1.6rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; font-size: 1.9rem; line-height: 1; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.lightbox__nav.prev { left: 1rem; } .lightbox__nav.next { right: 1rem; }
@keyframes fade { from { opacity: 0; } }

/* asegurar acento en footer */
.footer__col .accent { color: var(--signal); }
