/* SR Fitness Gym — negro y dorado del logo, contraste fuerte. Mobile first. */

@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --black: #0a0808;      /* fondo del logo */
  --coal: #15110e;       /* negro un poco más claro para alternar */
  --gold: #f2c94c;       /* dorado brillante del logo */
  --gold-deep: #d3a94a;  /* dorado oscuro del logo */
  --white: #f6f1e7;
  --muted: #b3aa9a;
  --line: rgba(242, 201, 76, .35);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(10, 8, 8, .94); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--gold);
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; color: var(--gold); white-space: nowrap;
}
.brand span { color: var(--white); font-weight: 500; }
.nav { display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--white);
  border: 1.5px solid transparent;
}
.nav a:first-child { border-color: var(--gold); color: var(--gold); }
.nav a:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ---------- Íconos y botones ---------- */
.wa-icon {
  display: inline-block; width: 22px; height: 22px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("img/whatsapp.svg") center / contain no-repeat;
          mask: url("img/whatsapp.svg") center / contain no-repeat;
}
.ig-icon {
  display: inline-block; width: 22px; height: 22px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("img/instagram.svg") center / contain no-repeat;
          mask: url("img/instagram.svg") center / contain no-repeat;
}
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: -6px 0 22px; }
.contact-line a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--white);
}
.contact-line a:hover { color: var(--gold); }
.contact-line .wa-icon, .contact-line .ig-icon { color: var(--gold); }
.footer-ig { display: inline-flex; vertical-align: middle; margin-left: 10px; padding: 8px; color: var(--gold); }
.footer-ig .ig-icon { width: 20px; height: 20px; }

/* Aparecer al bajar: solo se aplica cuando el JS marcó el elemento (sin JS, todo visible) */
.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity .45s ease-out, transform .45s ease-out; transition-delay: var(--d, 0s); }
.reveal-pending.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-pending { opacity: 1; transform: none; transition: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 24px;
  background: var(--gold); color: var(--black);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; text-align: left; line-height: 1.2;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #ffd95e; transform: translateY(-2px); }
.link {
  display: inline-block; padding: 6px 0; font-weight: 600; color: var(--gold);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.link:hover { color: var(--white); }
.kicker {
  font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}

/* ---------- 1. Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 28px var(--gutter) 56px;
  background: radial-gradient(ellipse 70% 45% at 50% 28%, rgba(211, 169, 74, .16), transparent 70%), var(--black);
}
.hero-logo {
  width: min(88%, 460px); margin: 0 auto 4px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.hero-text { text-align: center; }
.hero h1 { font-size: clamp(3.1rem, 15vw, 7.5rem); color: var(--white); margin-bottom: 14px; }
.hero-phrase { font-size: clamp(1.15rem, 4.6vw, 1.5rem); color: var(--muted); margin-bottom: 26px; }
.hero-phrase span { color: var(--white); font-weight: 600; white-space: nowrap; }
.hero .kicker { margin-bottom: 6px; }

/* Franja dorada en diagonal entre secciones */
.gym, .reviews { position: relative; }
.gym::before, .reviews::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px;
  background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 15%, 0 100%);
}

/* ---------- 2. El gimnasio ---------- */
.gym { background: var(--coal); padding: 64px 0 56px; }
.gym h2, .plans h2, .place h2 { font-size: clamp(2.6rem, 12vw, 5rem); }
.lead { font-size: clamp(1.15rem, 4.4vw, 1.4rem); color: var(--muted); margin: 12px 0 28px; max-width: 30ch; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .g-main { grid-column: 1 / -1; }
.gallery .g-main img { aspect-ratio: 16 / 10; }
.gallery figure { position: relative; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--black); color: var(--gold);
  font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px;
}

.hours-wrap { margin-top: 36px; }
.hours-title { font-size: 1.1rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 10px; }
.hours { margin: 0; border-top: 2px solid var(--gold); }
.hours div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: .02em; color: var(--white); }
.hours .closed dd { font-size: 1.2rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 3. Planes y precios ---------- */
.plans { padding: 64px 0; background: var(--black); }
.note { font-size: .92rem; color: var(--muted); margin: 12px 0 22px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.plan {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 20px; border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(242, 201, 76, .08), transparent 60%);
}
.plan-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--gold); }

/* ---------- 4. Reseñas ---------- */
.reviews { background: var(--coal); padding: 64px 0 52px; }
.score { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.score-num { font-size: clamp(5.5rem, 26vw, 9rem); line-height: .8; color: var(--gold); }
.score-label { font-family: var(--text); text-transform: none; font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--white); letter-spacing: 0; }
.reviews-title { color: var(--muted); margin-bottom: 12px; }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 14px; border: 1.5px solid var(--gold); color: var(--white);
}

/* ---------- 5. Lugar ---------- */
.place { padding: 64px 0 40px; background: var(--black); }
.address { font-size: clamp(1.2rem, 4.6vw, 1.5rem); font-weight: 600; margin: 14px 0 6px; }
.parking { display: inline-block; color: var(--black); background: var(--gold); font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; padding: 4px 10px; margin-bottom: 22px; }
.map { aspect-ratio: 4 / 3; background: var(--coal); border-block: 2px solid var(--gold); margin-bottom: 14px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.footer { border-top: 2px solid var(--gold); padding: 22px var(--gutter) 96px; color: var(--muted); font-size: .9rem; }
.footer p { margin: 0; }
.footer a { color: var(--gold); white-space: nowrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  transition: transform .2s;
}
.wa-float .wa-icon { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); }

a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* =================== Tablet y escritorio =================== */
@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 64px var(--gutter) 88px; max-width: none; }
  .hero-logo { width: 100%; max-width: 560px; margin: 0; justify-self: end; }
  .hero-text { text-align: left; }

  .gym, .plans, .reviews { padding: 96px 0 88px; }
  /* Los cuadros del video miden 720 px: ninguna celda los muestra más grandes que eso */
  /* 3 fotos iguales. En 4:3, una columna de hasta 538 px no agranda ninguna
     (miden 720, 570 y 540 x 404 px); con el ancho máximo de la página cada una queda en ~395 px. */
  .gallery { grid-template-columns: repeat(3, minmax(0, 538px)); justify-content: center; padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; gap: 8px; }
  .gallery .g-main { grid-column: auto; }
  .gallery img, .gallery .g-main img { aspect-ratio: 4 / 3; }
  .hours-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; margin-top: 56px; }

  .plan-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .plan { flex-direction: column; align-items: flex-start; gap: 28px; padding: 28px 24px 30px; min-height: 200px; justify-content: space-between; }
  .plan-price { font-size: 3rem; }

  .reviews-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
  .score { flex-direction: column; align-items: flex-start; margin: 0; }

  .place { padding-top: 96px; }
  .map { aspect-ratio: 16 / 6; }
  .footer { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
