/* ============================================================
   OPTIMUS FITNESS GYM — Design system
   Marca: rojo #d60000 / glow #ff1a1a / grafito #1a1a1a / negro
   Tipos: Bebas Neue (display) + Montserrat (cuerpo)
   ============================================================ */

:root {
  --red: #d60000;
  --red-glow: #ff1a1a;
  --red-dark: #8f0000;
  --bg: #0a0a0b;
  --bg-alt: #0e0e10;
  --graphite: #1a1a1a;
  --card: #131315;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #fafafa;
  --text-dim: #a1a1aa;
  --text-mute: #6b6b74;

  --font-display: "Bebas Neue", Oswald, Impact, sans-serif;
  --font-body: "Montserrat", Inter, system-ui, sans-serif;

  --radius: 18px;
  --radius-pill: 999px;
  --shadow-red: 0 8px 30px -8px rgba(214, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--red); color: #fff; }

/* ---------- Utilidades ---------- */
.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 92%); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red-glow);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head .kicker::after { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.section__head--left .kicker::after { display: none; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.05;
  margin-top: 14px;
  text-transform: uppercase;
}
.section__sub { color: var(--text-dim); margin-top: 14px; font-size: 15px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--red-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red-dark), var(--red-glow));
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.8);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn--sm { padding: 11px 22px; font-size: 11px; }
.btn--lg { padding: 18px 40px; font-size: 13px; }

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--red:hover {
  background: var(--red-glow);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(255, 26, 26, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* brillo que cruza el botón */
.btn--red::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-110%);
}
.btn--red:hover::after { animation: shine 0.9s var(--ease-out); }
@keyframes shine { to { transform: translateX(110%); } }

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { height: 44px; width: auto; border-radius: 6px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--red-glow);
  box-shadow: 0 0 8px var(--red-glow);
}
.nav__cta-mobile { display: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.05);
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.75) 0%, rgba(10, 10, 11, 0.55) 40%, var(--bg) 100%),
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.75));
}
.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 90vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(214, 0, 0, 0.22), transparent 65%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero__content { text-align: center; padding-top: var(--nav-h); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 34px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-glow);
  box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 26, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0); }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 26, 26, 0.6), 0 0 40px rgba(255, 26, 26, 0.3); }
  50% { text-shadow: 0 0 30px rgba(255, 26, 26, 1), 0 0 60px rgba(255, 26, 26, 0.6), 0 0 90px rgba(255, 26, 26, 0.3); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero__line { display: block; }
.hero__line em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, #fff 10%, var(--red-glow) 55%, var(--red) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__sub {
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--text-dim);
  font-size: clamp(15px, 2vw, 17px);
}
.hero__sub strong { color: var(--text); }

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero__status { margin-top: 28px; }

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}
.open-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, #22c55e);
  box-shadow: 0 0 10px var(--dot, #22c55e);
}
.open-badge.is-closed { --dot: #ef4444; }
.open-badge:empty { display: none; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero__scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--text-mute), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--red-glow);
  animation: scrollHint 1.8s var(--ease-out) infinite;
}
@keyframes scrollHint { to { top: 110%; } }

/* en pantallas bajas el indicador pisa los CTAs: ocultarlo */
@media (max-height: 760px), (max-width: 560px) {
  .hero__scroll { display: none; }
}

/* ---------- Cards genéricas ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s;
}

/* ---------- Servicios ---------- */
.service { position: relative; overflow: hidden; }
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(214, 0, 0, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 0, 0, 0.35);
  box-shadow: 0 24px 48px -24px rgba(214, 0, 0, 0.35);
}
.service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(214, 0, 0, 0.12);
  border: 1px solid rgba(214, 0, 0, 0.25);
  color: var(--red-glow);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.service:hover .service__icon { transform: scale(1.08) rotate(-4deg); background: rgba(214, 0, 0, 0.2); }
.service__icon svg { width: 26px; height: 26px; }
.service h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service p { color: var(--text-dim); font-size: 14px; }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}
.about__stat {
  position: absolute;
  right: -18px;
  bottom: 28px;
  background: rgba(19, 19, 21, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 240px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.about__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--red-glow);
  text-shadow: 0 0 24px rgba(255, 26, 26, 0.4);
}
.about__stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.about__body p { color: var(--text-dim); margin-bottom: 18px; }
.about__body p strong { color: var(--text); }
.about__body .section__head { margin-bottom: 26px; }
.about__body .btn { margin-top: 14px; }

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 22px 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(214, 0, 0, 0.15) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff1a1a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 11px no-repeat;
  border: 1px solid rgba(214, 0, 0, 0.3);
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 18px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.85));
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover figcaption { opacity: 1; transform: none; }
.gallery__item figcaption { z-index: 1; }

/* ---------- Planes ---------- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.plan__name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0 18px;
  line-height: 1;
}
.plan .checklist { grid-template-columns: 1fr; margin: 0 0 26px; }
.plan__cta { margin-top: auto; width: 100%; }
.plan:hover { transform: translateY(-6px); border-color: var(--border-hover); }

/* Promos: 4 tarjetas que se acomodan solas */
.plans--promos {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}
.plan__desc {
  color: var(--text-dim);
  font-size: 14px;
  margin: 4px 0 26px;
}

.plan--featured {
  border-color: rgba(214, 0, 0, 0.45);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(160deg, rgba(255, 26, 26, 0.6), rgba(214, 0, 0, 0.05) 60%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 70px -30px rgba(214, 0, 0, 0.45);
}
.plan--featured:hover { transform: translateY(-8px) scale(1.01); }
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  box-shadow: var(--shadow-red);
  white-space: nowrap;
}

/* ---------- Método + Wizard ---------- */
.method {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.method__media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.method__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.method__media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(10, 10, 11, 0.92));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.method__caption {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.wizard { margin-top: 8px; position: relative; min-height: 300px; }
.wizard__progress { display: flex; gap: 8px; margin-bottom: 26px; }
.wizard__dot {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.35s;
}
.wizard__dot.is-active { background: var(--red-glow); box-shadow: 0 0 10px rgba(255, 26, 26, 0.5); }

.wizard__step {
  display: none;
  animation: stepIn 0.45s var(--ease-out);
}
.wizard__step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.wizard__q {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.wizard__options { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.chip:hover {
  border-color: var(--red-glow);
  background: rgba(214, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(214, 0, 0, 0.5);
}

.wizard__result { text-align: left; }
.wizard__plan {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-glow);
  text-shadow: 0 0 30px rgba(255, 26, 26, 0.35);
  margin: 10px 0 12px;
}
.wizard__desc { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.wizard__restart {
  display: block;
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.wizard__restart:hover { color: var(--text); }
.wizard__back {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 600;
}
.wizard__back:hover { color: var(--text); }

/* ---------- Before / After ---------- */
.transform { padding: 16px; }
.transform footer {
  display: flex;
  flex-direction: column;
  padding: 16px 10px 6px;
}
.transform footer strong { font-size: 15px; }
.transform footer span { color: var(--text-mute); font-size: 13px; }

.ba {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* las fotos antes/después pueden tener encuadres distintos: anclar arriba
     para que nunca se corte el torso/cabeza */
  object-position: center top;
  pointer-events: none;
}
.ba__after, .ba__before { position: absolute; inset: 0; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
/* Tarjetas demo (misma foto en ambos lados): el "antes" va en blanco y negro
   para que el slider se note. Quitar ba--demo al cargar fotos reales. */
.ba--demo .ba__before img { filter: grayscale(1) brightness(0.72) contrast(0.95); }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}
.ba__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: var(--shadow-red);
  display: grid;
  place-items: center;
}
.ba__handle span::before {
  content: "◂ ▸";
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
}
.ba__tag {
  position: absolute;
  top: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  z-index: 1;
}
.ba__tag--before { left: 12px; background: rgba(0, 0, 0, 0.55); color: var(--text-dim); }
.ba__tag--after { right: 12px; background: rgba(214, 0, 0, 0.85); color: #fff; }

/* ---------- Opiniones (marquee) ---------- */
.marquee {
  overflow: hidden;
  padding: 10px 0 26px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.review {
  width: 330px;
  flex: none;
  padding: 26px 28px;
}
.review__stars { color: var(--red-glow); letter-spacing: 4px; margin-bottom: 12px; font-size: 14px; }
.review p { font-size: 14.5px; color: var(--text); font-style: italic; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--graphite), #2a2a2e);
  border: 1px solid var(--border-hover);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--red-glow);
}
.review footer strong { display: block; font-size: 13.5px; }
.review footer div span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 6vw, 70px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(214, 0, 0, 0.1), transparent),
    var(--card);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: #fff;
}
.stat__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(214, 0, 0, 0.35); }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hover);
  position: relative;
  transition: transform 0.35s var(--ease-out), background 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.6px;
  background: var(--text);
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: rgba(214, 0, 0, 0.2); }
.faq__body { padding: 0 26px 22px; }
.faq__body p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  text-align: center;
  padding: clamp(90px, 12vw, 150px) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(214, 0, 0, 0.28), transparent 70%),
    var(--bg-alt);
}
.cta-final .kicker {
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--red-glow);
  text-shadow: 0 0 20px rgba(255, 26, 26, 0.6);
  animation: glowPulse 2.5s ease-in-out infinite;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 18px 0 20px;
}
.cta-final h2 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--red-glow), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
}
.cta-final p { color: var(--text-dim); max-width: 480px; margin: 0 auto 36px; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field select, .field textarea {
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23a1a1aa" stroke-width="2"><path d="m6 9 6 6 6-6"/></svg>'); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--red-glow);
  box-shadow: 0 0 0 3px rgba(214, 0, 0, 0.18);
}
.field :is(input, textarea)::placeholder { color: var(--text-mute); }
.contact__form .btn { align-self: flex-start; margin-top: 6px; }
.contact__alt { font-size: 13px; color: var(--text-mute); }
.contact__alt a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.contact__alt a:hover { color: var(--red-glow); }

.contact__info { display: grid; gap: 16px; }
.info-card { padding: 24px 26px; }
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.info-card p { color: var(--text); font-size: 15px; }
.info-card p strong { font-size: 17px; }
.info-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red-glow);
}
.info-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.open-badge--inline { margin-top: 10px; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.socials a:hover {
  color: #fff;
  border-color: var(--red-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -10px rgba(214, 0, 0, 0.6);
}
.socials svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0; background: var(--bg); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer img { height: 40px; width: auto; border-radius: 6px; }
.footer p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  animation: fabIn 0.6s var(--ease-out) 1.2s backwards;
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 14px 36px -6px rgba(37, 211, 102, 0.7); }
@keyframes fabIn {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
}

/* ---------- Animaciones de aparición ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1025px) {
  #resultados .container { width: min(1600px, 96%); }
  .transforms { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .transform { padding: 18px; }
  .transform .ba { aspect-ratio: 4 / 6; }
}

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  /* si queda una card impar al final, centrarla en vez de dejarla suelta a la izquierda */
  .transforms .transform:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 11px);
  }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .method { grid-template-columns: 1fr; }
  .method__media { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(20px);
    padding: 18px 6vw 26px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-115%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), opacity 0.35s, visibility 0.45s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 6px; font-size: 14px; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 14px; justify-content: center; }
  .nav__burger { display: flex; }

  .about { grid-template-columns: 1fr; }
  .about__stat { right: 10px; }

  .contact { grid-template-columns: 1fr; }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery__item { aspect-ratio: 4 / 3; }
  .gallery__item--tall { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery__item figcaption { opacity: 1; transform: none; }
  .gallery__item::after { opacity: 1; }
}

/* ---------- Video reproductor ---------- */
.video-section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(214, 0, 0, 0.2);
}

.video-container video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-player {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: rgba(214, 0, 0, 0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 8px 32px rgba(214, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-size: 0;
}

.video-play-btn:hover {
  background: rgba(214, 0, 0, 1);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 12px 48px rgba(255, 26, 26, 0.6);
}

.video-play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.video-container.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 50px 20px 16px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-controls,
.video-container.playing .video-controls {
  opacity: 1;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 14px;
  overflow: hidden;
  transition: height 0.2s;
}

.progress-bar:hover {
  height: 5px;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(214, 0, 0, 0.6);
}

.controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.control-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
  padding: 0;
}

.control-btn:hover {
  color: var(--red);
  transform: scale(1.1);
}

.time-display {
  font-family: var(--font-body);
  font-size: 11px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.video-info {
  text-align: center;
  margin-top: 40px;
}

.video-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text);
}

.video-info p {
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .video-play-btn {
    width: 60px;
    height: 60px;
  }

  .video-play-btn::after {
    border-left-width: 12px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }

  .video-controls {
    padding: 40px 16px 12px;
  }

  .control-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  /* en mobile las cards ya van a ancho completo, anular el centrado de tablet */
  .transforms .transform:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .checklist { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .about__stat { position: static; margin-top: -60px; margin-left: auto; width: fit-content; }
  .review { width: 280px; }
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
