/* ═══════════════════════════════════════════
   BARRITAS GYM — Landing
   Paleta basada en el branding de Instagram:
   rojo del logo + negro + blanco
   ═══════════════════════════════════════════ */

:root {
  --red: #d81f26;          /* rojo del logo */
  --red-dark: #a3141a;
  --red-glow: rgba(216, 31, 38, 0.35);
  --black: #0d0d0f;
  --black-soft: #16161a;
  --gray: #232329;
  --white: #ffffff;
  --white-soft: #d7d7dc;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container--narrow { max-width: 820px; }

.accent { color: var(--red); }

/* ── Botones ─────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  text-align: center;
}

.btn--lg { padding: 16px 34px; font-size: 1rem; }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 28px var(--red-glow);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn--ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { border-color: var(--white); transform: translateY(-2px); }

.btn--outline {
  color: var(--red);
  border: 2px solid var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }

/* ── Navbar ──────────────────────────────── */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 14px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}

.navbar__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px var(--red-glow);
}

.navbar__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar__name small {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--white-soft);
}

.navbar__links {
  display: flex;
  gap: 22px;
}

.navbar__links a {
  color: var(--white-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.navbar__links a:hover { color: var(--red); }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.navbar__burger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--red-glow), transparent 60%),
    linear-gradient(180deg, rgba(13,13,15,0.72) 0%, rgba(13,13,15,0.82) 60%, var(--black) 96%),
    url('../img/barritas-bg26-podio.jpg');
  background-size: cover;
  background-position: center 28%;
  z-index: -1;
}

.hero__content { padding-block: 140px 80px; }

.hero__eyebrow {
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__subtitle {
  max-width: 560px;
  margin-top: 22px;
  color: var(--white-soft);
  font-size: 1.08rem;
}
.hero__subtitle strong { color: var(--white); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  gap: 44px;
  margin-top: 60px;
  list-style: none;
}

.hero__stats li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__stats strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--red);
}

.hero__stats span {
  font-size: 0.8rem;
  color: var(--white-soft);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--red);
  animation: bounce 1.8s infinite;
  font-size: 0.9rem;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ── Secciones ───────────────────────────── */
.section { padding-block: 96px; }
.section--dark { background: var(--black-soft); }

.section__eyebrow {
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 44px;
}

.section__note {
  color: var(--white-soft);
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: -30px;
  margin-bottom: 34px;
}

.section__center { text-align: center; }

/* ── Historia ────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.story__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  max-height: 520px;
}

.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.story__quote {
  border-left: 4px solid var(--red);
  padding-left: 22px;
}

.story__quote p {
  color: var(--white-soft);
  font-size: 1.04rem;
  font-style: italic;
  margin-bottom: 14px;
}

.story__sign {
  margin-top: 18px;
  color: var(--white-soft);
}
.story__sign strong { color: var(--white); }
.story__sign a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.story__sign a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__photo { max-height: 380px; }
}

/* ── Features ────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.feature {
  background: var(--black-soft);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: var(--red);
}

.feature__icon { font-size: 2rem; margin-bottom: 14px; }

.feature h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature p { color: var(--white-soft); font-size: 0.94rem; }

/* ── Clases ──────────────────────────────── */
.classes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.class-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 16px 0 6px;
}

.class-card p { color: var(--white-soft); font-size: 0.94rem; }

.class-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: transform 0.2s ease;
}
.class-card:hover .class-card__img { transform: scale(1.02); }

.class-card__img {
  background-size: cover;
  background-position: center 18%;
}
.class-card__img--1 {
  background-image: linear-gradient(180deg, rgba(13,13,15,0.05) 40%, rgba(13,13,15,0.6)), url('../img/barritas-principiantes.jpg');
}
.class-card__img--2 {
  background-image: linear-gradient(180deg, rgba(13,13,15,0.05) 40%, rgba(13,13,15,0.6)), url('../img/barritas-handstand.jpg');
  background-position: center 30%;
}
.class-card__img--3 {
  background-image:
    linear-gradient(180deg, rgba(13,13,15,0.1) 40%, rgba(13,13,15,0.55)),
    radial-gradient(ellipse 90% 80% at 30% 20%, rgba(216,31,38,0.55), transparent 65%),
    repeating-linear-gradient(-45deg, #1d1d22 0 18px, #17171b 18px 36px);
}
.class-card__img--3::before {
  content: "🤸‍♂️";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  padding-bottom: 20px;
}
.class-card__img { position: relative; }
.class-card__img--4 {
  background-image: linear-gradient(180deg, rgba(13,13,15,0.05) 40%, rgba(13,13,15,0.6)), url('../img/barritas-bg26-elite.jpg');
  background-position: center 30%;
}

.class-card__tag {
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ── Membresías ──────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--black-soft);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card--featured {
  border-color: var(--red);
  box-shadow: 0 12px 44px var(--red-glow);
  transform: scale(1.03);
}

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.price-card__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--red);
}
.price-card__price span {
  font-size: 1rem;
  color: var(--white-soft);
  font-weight: 600;
}

.price-card ul {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card li {
  color: var(--white-soft);
  font-size: 0.94rem;
  padding-left: 22px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ── Promociones ─────────────────────────── */
.promos {
  margin-top: 44px;
  background: var(--black-soft);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.promos__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.promos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(216, 31, 38, 0.08);
  border: 1px solid rgba(216, 31, 38, 0.35);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.promo strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.promo span {
  color: var(--white-soft);
  font-size: 0.82rem;
}

.promo__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--red);
  white-space: nowrap;
}
.promo__price em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--white-soft);
}

.promos__legal {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* ── Horarios ────────────────────────────── */
.schedule {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray);
  font-size: 0.96rem;
}
.schedule__row:last-child { border-bottom: none; }

.schedule__row--head {
  background: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.schedule__row:not(.schedule__row--head):nth-child(even) { background: rgba(255,255,255,0.02); }
.schedule__row span:first-child { font-weight: 600; }
.schedule__row span:not(:first-child) { color: var(--white-soft); }

.schedule__note {
  margin-top: 20px;
  background: rgba(216, 31, 38, 0.08);
  border: 1px solid rgba(216, 31, 38, 0.35);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white-soft);
  font-size: 0.92rem;
}
.schedule__note strong { color: var(--white); }

.schedule__cta { margin-top: 16px; color: var(--white-soft); font-size: 0.88rem; }
.schedule__cta a { color: var(--red); font-weight: 600; text-decoration: none; }
.schedule__cta a:hover { text-decoration: underline; }

/* ── Galería / Comunidad ─────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  transition: transform 0.2s ease;
}
.gallery__item:hover { transform: scale(1.02); }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.gallery__item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 560px) {
  .gallery__item--wide { grid-column: span 1; grid-row: span 1; }
}

/* ── Testimonios ─────────────────────────── */
.testimonials { margin-bottom: 40px; }
.testimonials .section__note { margin: 0 0 18px; }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.t-card {
  margin: 0;
  background: var(--black-soft);
  border: 1px solid var(--gray);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.t-card p {
  color: var(--white-soft);
  font-style: italic;
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.t-card footer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

/* ── FAQ ─────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--black-soft);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq__item[open] { border-color: var(--red); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  position: relative;
  padding-right: 48px;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq__item p {
  padding: 0 22px 20px;
  color: var(--white-soft);
  font-size: 0.95rem;
}

.faq__item a { color: var(--red); font-weight: 600; }

/* ── Ubicación ───────────────────────────── */
.location {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 34px;
  align-items: stretch;
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.location__info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.location__address { color: var(--white-soft); }

.location__phone {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.location__phone:hover { color: var(--red); }

.location__info .btn { align-self: flex-start; }

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  min-height: 340px;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

/* ── CTA final ───────────────────────────── */
.cta-final {
  padding-block: 110px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, var(--red-glow), transparent 65%),
    var(--black-soft);
}

.cta-final__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 36px;
}

/* ── Footer ──────────────────────────────── */
.footer {
  border-top: 1px solid var(--gray);
  padding-block: 56px 28px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 44px;
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer__brand strong {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.footer__brand p { color: var(--white-soft); font-size: 0.9rem; margin-top: 4px; }

.footer__col h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--red);
}

.footer__col a,
.footer__col p {
  display: block;
  color: var(--white-soft);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.footer__col a:hover { color: var(--white); }

.footer__copy {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  border-top: 1px solid var(--gray);
  padding-top: 24px;
  margin-inline: 24px;
}

/* ── WhatsApp flotante ───────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ── Animación de entrada ────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .navbar__links {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 15, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .navbar__links.is-open { transform: none; }
  .navbar__links a { font-size: 1.15rem; }
  .navbar__cta { display: none; }
  .navbar__burger { display: flex; z-index: 110; }
  .section { padding-block: 70px; }
  .price-card--featured { transform: none; }
}
