:root {
  --red: #e10613;
  --red-dark: #a8000c;
  --black: #000;
  --ink: #0d0d0d;
  --panel: #151515;
  --line: #2a2a2a;
  --white: #fff;
  --muted: #a6a6a6;
  --radius: 14px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.text-red { color: var(--red); }

h1, h2, h3, .nav__brand, .btn, .eyebrow, .stats strong, .plan__price {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.eyebrow {
  color: var(--red);
  font-size: .9rem;
  letter-spacing: .2em;
  margin-bottom: .75rem;
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: var(--white);
  border: 2px solid var(--red);
  padding: .85rem 1.6rem;
  border-radius: 8px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transform: skewX(-8deg);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { box-shadow: 0 8px 24px rgba(225, 6, 19, .45); transform: skewX(-8deg) translateY(-2px); }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--red); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0,0,0,.92); backdrop-filter: blur(8px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { font-size: 1.6rem; font-weight: 700; font-style: italic; }
.brand-fit { color: var(--red); }
.brand-place { color: var(--white); margin-left: .3rem; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { font-weight: 500; font-size: .95rem; color: #ddd; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--red); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 110px 0 60px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 30%),
    radial-gradient(ellipse at 80% 20%, rgba(225,6,19,.35), transparent 55%),
    url("assets/hero-gimnasio.jpg") center 65% / cover no-repeat,
    var(--black);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__copy { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; margin-bottom: 1.2rem; }
.lead { color: #cfcfcf; font-size: 1.1rem; max-width: 34rem; margin-bottom: 1.6rem; }
.hero__perks { list-style: none; display: grid; gap: .6rem; }
.hero__perks li { padding-left: 1.8rem; position: relative; font-weight: 500; }
.hero__perks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 10px; background: var(--red);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}

/* ===== Join card ===== */
.join-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.join-card__logo { width: 130px; height: 80px; object-fit: cover; margin: -.5rem auto .5rem; mix-blend-mode: lighten; }
.join-card h2 { text-align: center; font-size: 1.8rem; }
.join-card__sub { text-align: center; color: var(--muted); margin-bottom: 1.4rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select {
  width: 100%; padding: .8rem 1rem;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,6,19,.25); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.error { display: block; color: #ff5a63; font-size: .78rem; min-height: 1em; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--red); margin-top: .25rem; }
.join-card .btn { margin-top: 1rem; }

.join-card__success {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; gap: .8rem;
  animation: fade .4s ease;
}
.join-card__success[hidden] { display: none; }
.check-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; }
.join-card__success p { color: var(--muted); }
@keyframes fade { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ===== Stats ===== */
.stats { background: linear-gradient(90deg, var(--red-dark), var(--red)); padding: 2.2rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 1rem; }
.stats strong { display: block; font-size: 2.6rem; line-height: 1; }
.stats span { font-size: .9rem; opacity: .9; }

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section--dark { background: var(--ink); }
.section__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; line-height: 1.1; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--red); }
.card__icon { font-family: var(--font-display); font-size: 2.4rem; color: var(--red); font-weight: 700; margin-bottom: .5rem; }
.card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.card p { color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column; transition: transform .25s, border-color .25s;
}
.product:hover { transform: translateY(-6px); border-color: var(--red); }
.product__media {
  position: relative; aspect-ratio: 1; border-radius: 10px; margin-bottom: 1rem;
  overflow: hidden; background: #0a0a0a; border-bottom: 4px solid var(--red);
}
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product__media img { transform: scale(1.06); }
.product__media--pack { background: var(--white); }
.product__media--pack img { object-fit: contain; padding: 2.2rem 1rem 1rem; }
.product__tag {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 4px;
  transform: skewX(-8deg);
}
.product h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.product .product__ref { color: var(--white); font-size: .8rem; font-weight: 600; flex: 0; margin-bottom: .5rem; opacity: .85; }
.product p { color: var(--muted); font-size: .9rem; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--red); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--red); transform: scale(1.04); box-shadow: 0 20px 50px rgba(225,6,19,.25); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); padding: .25rem .9rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase;
}
.plan h3 { font-size: 1.5rem; }
.plan__price { font-size: 2.4rem; font-weight: 700; margin: .4rem 0 1.2rem; }
.plan__price span { font-size: 1rem; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.8rem; flex: 1; }
.plan li { padding-left: 1.5rem; position: relative; color: #ddd; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Quotes */
.quote { background: var(--panel); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 2rem; }
.quote p { font-size: 1.05rem; margin-bottom: 1rem; }
.quote cite { color: var(--red); font-style: normal; font-weight: 600; }

/* CTA */
.cta { background: linear-gradient(115deg, var(--red-dark), var(--red)); padding: 5rem 0; text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta p { margin: .6rem 0 1.8rem; font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--red); }
.footer__copy { color: var(--muted); font-size: .85rem; width: 100%; }

/* Reveal animation */
.reveal { transform: translateY(16px); transition: transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__bg {
    bottom: auto; height: 100vh;
    background:
      linear-gradient(0deg, var(--black) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.25) 100%),
      radial-gradient(ellipse at 80% 20%, rgba(225,6,19,.35), transparent 55%),
      url("assets/hero-gimnasio.jpg") center top / cover no-repeat,
      var(--black);
  }
  .products { grid-template-columns: repeat(2, 1fr); }
  .cards, .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .stats__grid { row-gap: 1.6rem; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 1.2rem; padding: 1.5rem;
    background: rgba(0,0,0,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .3s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav { background: rgba(0,0,0,.92); }
  .section { padding: 4rem 0; }
  .join-card { padding: 1.5rem; }
}
@media (max-width: 520px) {
  .products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Título con texto de apoyo */
.section__title--tight { margin-bottom: 1rem; }
.section__lead { color: #cfcfcf; font-size: 1.1rem; max-width: 40rem; margin-bottom: 3rem; }

/* Logo en menú y pie de página */
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 44px; width: auto; mix-blend-mode: lighten; }
.footer .nav__logo { height: 40px; }

/* Fondo zona cardio en la sección comunidad */
#comunidad {
  background:
    linear-gradient(180deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.88) 100%),
    url("assets/zona-cardio.jpg") center / cover no-repeat,
    var(--black);
}
#comunidad .card { background: rgba(21,21,21,.85); backdrop-filter: blur(4px); }

/* Fondo comunidad en testimonios */
#testimonios {
  background:
    linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.75) 100%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, transparent 35%, rgba(0,0,0,.7) 100%),
    url("assets/comunidad-selfie.jpg") center 35% / cover no-repeat,
    var(--ink);
}
#testimonios .quote { background: rgba(21,21,21,.85); backdrop-filter: blur(4px); }

/* Fondo de tienda en suplementos */
#productos {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(225,6,19,.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.65) 45%, rgba(0,0,0,.9) 100%),
    url("assets/tienda.jpg") center / cover no-repeat,
    var(--ink);
}
#productos .product { background: rgba(21,21,21,.88); backdrop-filter: blur(4px); }

/* Botón de WhatsApp en la confirmación de registro */
.btn--wa { margin-top: .6rem; }

/* ===== Calculadora ===== */
.calc { --ok: #2fbf71; --warn: #f2a516; --low: #4aa3df; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: start; }
.calc__form {
  background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1.1rem;
}
.calc__field { border: 0; min-width: 0; }
.calc__field label, .calc__field legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.calc__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.calc__form select, .unit input {
  width: 100%; padding: .75rem .9rem; background: var(--ink); color: var(--white);
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .95rem;
}
.calc__form select:focus, .unit input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,6,19,.25); }
.unit { position: relative; }
.unit input { padding-right: 3.2rem; font-variant-numeric: tabular-nums; }
.unit span { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; pointer-events: none; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 4px; gap: 4px; }
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; text-align: center; padding: .6rem .4rem; border-radius: 6px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.segmented input:checked + label { background: var(--red); color: var(--white); }
.segmented input:focus-visible + label { outline: 2px solid var(--white); outline-offset: 2px; }
.calc__error { color: #ff5a63; font-size: .85rem; min-height: 1em; }
.calc__error:empty { display: none; }
.calc__note { color: var(--muted); font-size: .78rem; }

.calc__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.calc__sample { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.calc__sample[hidden] { display: none; }
.result { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.result h3 { font-size: .95rem; color: var(--muted); letter-spacing: .08em; }
.result__value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1.1; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.result__value small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.result__hint { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.result--imc { grid-column: 1 / -1; }
.result__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result__badge { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .7rem; border-radius: 999px; background: var(--ok); color: #0b0b0b; }
.result__badge[data-cat="bajo"] { background: var(--low); }
.result__badge[data-cat="sobre"] { background: var(--warn); }
.result__badge[data-cat="obes"] { background: var(--red); color: var(--white); }
.imc-bar { position: relative; display: grid; grid-template-columns: 14fr 26fr 20fr 40fr; gap: 3px; margin-top: .9rem; height: 10px; }
.imc-bar__seg { border-radius: 3px; opacity: .85; }
.imc-bar__seg--bajo { background: var(--low); }
.imc-bar__seg--normal { background: var(--ok); }
.imc-bar__seg--sobre { background: var(--warn); }
.imc-bar__seg--obes { background: var(--red); }
.imc-bar__marker {
  position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px;
  background: var(--white); border-radius: 2px; box-shadow: 0 0 0 2px var(--black);
  transition: left .4s ease;
}
/* Escala de 15 a 40: 18,5 cae en 14 %, 25 en 40 %, 30 en 60 % */
.imc-bar__labels { position: relative; height: 1.2em; margin-top: .35rem; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.imc-bar__labels span { position: absolute; transform: translateX(-50%); }
.imc-bar__labels span:nth-child(1) { left: 14%; }
.imc-bar__labels span:nth-child(2) { left: 40%; }
.imc-bar__labels span:nth-child(3) { left: 60%; }

.calc__cta { grid-column: 1 / -1; display: grid; gap: .9rem; padding-top: .5rem; }
.calc__tip { color: #ddd; font-size: .95rem; }
.calc__tip strong { color: var(--white); }
.calc__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 960px) {
  .calc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .calc__row { grid-template-columns: 1fr 1fr; }
  .calc__row .calc__field:last-child { grid-column: 1 / -1; }
  .calc__results { grid-template-columns: 1fr; }
  .result__value { font-size: 2rem; }
  .calc__actions .btn { width: 100%; }
}

/* ===== Escala de letra para celular ===== */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .eyebrow { font-size: .75rem; letter-spacing: .16em; }
  .nav__logo { height: 36px; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 1.95rem; margin-bottom: .9rem; }
  .lead { font-size: .95rem; margin-bottom: 1.2rem; }
  .hero__perks li { font-size: .92rem; }
  .join-card h2 { font-size: 1.4rem; }
  .join-card__sub { font-size: .88rem; }
  .stats { padding: 1.6rem 0; }
  .stats strong { font-size: 1.9rem; }
  .stats span { font-size: .78rem; }
  .section { padding: 3.25rem 0; }
  .section__title { font-size: 1.6rem; margin-bottom: 2rem; }
  .section__title--tight { margin-bottom: .8rem; }
  .section__lead { font-size: .95rem; margin-bottom: 2rem; }
  .card { padding: 1.5rem; }
  .card__icon { font-size: 1.8rem; }
  .card h3 { font-size: 1.1rem; }
  .card p, .product p, .plan li { font-size: .9rem; }
  .result__value { font-size: 1.7rem; }
  .product h3 { font-size: 1rem; }
  .price { font-size: 1rem; }
  .plan { padding: 1.8rem 1.5rem; }
  .plan h3 { font-size: 1.25rem; }
  .plan__price { font-size: 1.9rem; }
  .quote { padding: 1.5rem; }
  .quote p { font-size: .95rem; }
  .cta { padding: 3.5rem 0; }
  .cta h2 { font-size: 1.6rem; }
  .cta p { font-size: .95rem; }
  .btn { font-size: .9rem; padding: .75rem 1.3rem; }
}

/* ===== Menú: página activa y redes sociales ===== */
.nav__links a.is-active { color: var(--red); }
.nav__social { display: flex; align-items: center; gap: .9rem; }
.nav__social a { display: grid; place-items: center; color: #ddd; transition: color .2s, transform .2s; }
.nav__social a:hover { color: var(--red); transform: translateY(-1px); }
.nav__social a[hidden] { display: none; }
.nav__social svg { width: 20px; height: 20px; }
.footer__social svg { width: 22px; height: 22px; }
.check a { color: var(--white); text-decoration: underline; }
.link-more { margin-top: 2rem; text-align: center; }
.link-more a { color: var(--white); font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link-more a:hover { color: var(--red); }

/* ===== Páginas internas ===== */
.page-hero {
  position: relative; padding: 9rem 0 4rem;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.75) 70%, var(--black) 100%), var(--page-hero-img, none) center / cover no-repeat, var(--ink);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; margin-bottom: 1rem; max-width: 22ch; text-wrap: balance; }
.page-hero .lead { max-width: 40rem; margin-bottom: 1.5rem; }
.page-hero--planes { --page-hero-img: url("assets/hero-gimnasio.jpg"); }
.page-hero--comunidad { --page-hero-img: url("assets/comunidad-selfie.jpg"); }
.page-hero--calc { --page-hero-img: url("assets/zona-cardio.jpg"); }
.page-hero--plain { padding-bottom: 2rem; background: radial-gradient(ellipse at 80% 0%, rgba(225,6,19,.25), transparent 55%), var(--black); }

.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Pasos numerados */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.step__num {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem;
  background: var(--red); border-radius: 8px; transform: skewX(-8deg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); }

/* Tabla comparativa */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; background: var(--panel); }
.compare tbody th { text-align: left; font-weight: 500; color: #ddd; }
.compare td { font-weight: 600; font-variant-numeric: tabular-nums; }
.compare .is-featured { background: rgba(225,6,19,.1); }
.compare thead .is-featured { background: var(--red); }
.compare .is-no { color: var(--muted); font-weight: 400; }
.compare__price td, .compare__price th { font-family: var(--font-display); font-size: 1.15rem; border-bottom: 0; }
.compare__price th { font-family: var(--font-body); font-size: .95rem; }

/* Preguntas frecuentes */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.faq details[open] { border-color: var(--red); }
.faq summary { cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.2rem; color: #cfcfcf; }
.faq a { color: var(--white); text-decoration: underline; }

/* Metodología de la calculadora */
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.method article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.method h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.method p { color: var(--muted); }

/* Política de privacidad */
.policy { max-width: 46rem; }
.policy h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.policy p, .policy li { color: #d4d4d4; }
.policy ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin-bottom: .8rem; }
.policy p + p { margin-top: .7rem; }
.policy__date { color: var(--muted); font-size: .9rem; }
.ph { background: #ffd84d; color: #111; padding: 0 .25rem; border-radius: 3px; font-weight: 600; }

@media (max-width: 960px) {
  .cards--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__social { padding-top: .3rem; }
}
@media (max-width: 600px) {
  .page-hero { padding: 7rem 0 2.5rem; }
  .page-hero h1 { font-size: 1.95rem; }
  .cards--4, .steps, .method { grid-template-columns: 1fr; }
  .compare { min-width: 0; table-layout: fixed; font-size: .78rem; }
  .compare th, .compare td { padding: .65rem .3rem; }
  .compare tbody th { width: 40%; padding-left: .7rem; }
  .compare thead th { font-size: .85rem; }
  .compare thead th:first-child { width: 40%; }
  .compare__price td { font-size: .9rem; }
}

/* Menú en pantallas medianas: sin cortes de línea */
.nav__links a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1024px) {
  .nav__links { gap: .8rem; }
  .nav__links a:not(.btn) { font-size: .82rem; }
  .nav__social { gap: .55rem; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .nav .nav__social { display: none; }
}
.policy a { color: var(--white); text-decoration: underline; }

/* ===== Contacta a tu coach ===== */
.page-hero--coach { --page-hero-img: url("assets/hero-gimnasio.jpg"); }
.wizard {
  max-width: 44rem; margin-inline: auto; background: var(--panel); border: 1px solid var(--line);
  border-top: 4px solid var(--red); border-radius: var(--radius); padding: 2rem;
}
.wizard__progress { height: 6px; background: var(--ink); border-radius: 999px; overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 25%; background: var(--red); transition: width .3s ease; }
.wizard__count { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: .8rem 0 1.2rem; }
.wizard__step { border: 0; min-width: 0; }
.wizard__step legend { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; margin-bottom: 1.2rem; }
.wizard__q { font-weight: 600; margin: 1rem 0 .6rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.options--days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label {
  display: grid; gap: .2rem; padding: 1rem 1.1rem; cursor: pointer; border-radius: 10px;
  background: var(--ink); border: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.options label strong { font-size: 1rem; }
.options label span { color: var(--muted); font-size: .82rem; }
.options--days label { text-align: center; }
.options--days label strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.options label:hover { border-color: #555; }
.options input:checked + label { border-color: var(--red); background: rgba(225,6,19,.12); }
.options input:focus-visible + label { outline: 2px solid var(--white); outline-offset: 2px; }
.wizard__error { color: #ff5a63; font-size: .88rem; margin-top: 1rem; }
.wizard__error:empty { display: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.wizard__nav .btn:only-child, .wizard__nav #wizardBack[hidden] + .btn { margin-left: auto; }

.plan-result { max-width: 60rem; margin-inline: auto; display: grid; gap: 1.5rem; }
.plan-result__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; font-weight: 600; }
.plan-tips { background: var(--panel); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: .5rem; color: #d4d4d4; }
.plan-tips strong { color: var(--white); }
.sessions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.session { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.session__head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .8rem; flex-wrap: wrap; }
.session__day { background: var(--red); font-family: var(--font-display); text-transform: uppercase; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 4px; }
.session h3 { font-size: 1.05rem; }
.session__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.session__table th { color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding-bottom: .4rem; }
.session__table th:not(:first-child), .session__table td:not(:first-child) { text-align: center; width: 4.5rem; font-variant-numeric: tabular-nums; }
.session__table td { padding: .55rem 0; border-top: 1px solid var(--line); }
.plan-alert { background: var(--panel); border: 1px solid var(--red); border-radius: var(--radius); padding: 1.5rem; }
.plan-alert h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.plan-alert p { color: #d4d4d4; }
.send-box { background: linear-gradient(115deg, rgba(168,0,12,.35), rgba(225,6,19,.15)); border: 1px solid var(--red); border-radius: var(--radius); padding: 1.5rem; }
.send-box h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.send-box > p { color: #d4d4d4; margin-bottom: 1rem; }
.send-box__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.send-box__row .field { flex: 1 1 16rem; margin-bottom: 0; }
.send-box__row .btn { margin-top: 1.6rem; }
.plan-result__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__actions { margin-top: 1.6rem; }

@media (max-width: 760px) {
  .sessions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wizard { padding: 1.4rem; }
  .wizard__step legend { font-size: 1.3rem; }
  .options { grid-template-columns: 1fr; }
  .options--days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .send-box__row .btn { margin-top: 0; width: 100%; }
}

/* Guardar en PDF / imprimir: solo la rutina, en fondo blanco */
@media print {
  .nav, .footer, .page-hero, .send-box, .plan-result__actions, .cta { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding: 0; }
  .plan-result__head h2, .session h3, .plan-tips strong { color: #111; }
  .chip, .session, .plan-tips { background: #fff; border-color: #ccc; color: #111; }
  .plan-tips, .session__table td { color: #222; }
  .session { break-inside: avoid; }
  .session__day { color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .calc__note { color: #555; }
}

/* ===== Valoración gratuita: plan de suplementación ===== */
.options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wizard__hint { color: var(--muted); font-size: .88rem; margin: -.6rem 0 1rem; }
.checks { display: grid; gap: .6rem; }
.checks label {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; cursor: pointer;
  background: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-weight: 500;
}
.checks input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.checks label:has(input:checked) { border-color: var(--red); background: rgba(225,6,19,.12); }
.checks__none { margin-top: .3rem; }

.supps { display: grid; gap: 1rem; }
.supp { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.supp__img { background: var(--white); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; padding: .6rem; align-self: start; }
.supp__img img { max-height: 100%; object-fit: contain; }
.supp__info { display: grid; gap: .45rem; align-content: start; }
.supp__info h3 { font-size: 1.2rem; }
.supp__info p { color: #d4d4d4; font-size: .95rem; }
.supp__info strong { color: var(--white); }
.supp__brand { color: var(--muted) !important; font-size: .85rem !important; margin-top: -.3rem; }
.supp__price { font-family: var(--font-display); font-size: 1.3rem !important; color: var(--red) !important; font-weight: 700; }
.supp__tag { justify-self: start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .65rem; border-radius: 999px; background: #333; }
.supp__tag--esencial { background: var(--red); }
.supp__tag--recomendado { background: var(--white); color: var(--black); }
.supp-total { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; display: grid; gap: .3rem; }
.supp-total p { color: #d4d4d4; }
.supp-total strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); }
.supp-total a { color: var(--white); text-decoration: underline; }

@media (max-width: 600px) {
  .options--3 { grid-template-columns: 1fr; }
  .supp { grid-template-columns: 1fr; }
  .supp__img { max-width: 140px; }
}
@media print {
  .supp, .supp-total { background: #fff; border-color: #ccc; }
  .supp__info p, .supp-total p { color: #222; }
  .supp__info h3, .supp__info strong, .supp-total strong { color: #111; }
}

/* Botón compartir resultados */
.btn--share { gap: .5rem; }
.btn--share svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.calc__share-msg { color: #2fbf71; font-size: .9rem; font-weight: 600; }

/* ===== Qué nos inspira (Comunidad) ===== */
.story .section__title { margin-bottom: 1.6rem; }
.story .lead { margin-bottom: 1rem; }
.story .lead:last-child { margin-bottom: 0; }
.section--inspira {
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 55%, rgba(0,0,0,.55) 100%),
    url("assets/comunidad-inspira.jpg") center / cover no-repeat,
    var(--ink);
}
@media (max-width: 600px) {
  .section--inspira { background: linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.82)), url("assets/comunidad-inspira.jpg") center / cover no-repeat, var(--ink); }
}

/* ===== Tienda (Suplementos) ===== */
.page-hero--tienda { --page-hero-img: url("assets/tienda.jpg"); }
.tienda { padding-top: 2rem; }
.tienda__filtros { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filtro {
  font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--white); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem;
  transition: border-color .2s, background .2s;
}
.filtro:hover { border-color: #555; }
.filtro.is-active { background: var(--red); border-color: var(--red); }
.tienda__vacio { color: var(--muted); padding: 2rem 0; }
.product .btn[disabled] { opacity: .5; }

.cart-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  background: linear-gradient(180deg, var(--red), var(--red-dark)); color: var(--white);
  border: 0; border-radius: 999px; padding: .8rem 1.2rem .8rem 1rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; box-shadow: 0 10px 30px rgba(225,6,19,.45);
}
.cart-fab svg { width: 24px; height: 24px; }
.cart-fab__count { background: var(--white); color: var(--black); border-radius: 999px; min-width: 1.5rem; height: 1.5rem; display: grid; place-items: center; font-size: .8rem; padding: 0 .35rem; }
.cart-fab.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }

.no-scroll { overflow: hidden; }
.cart { position: fixed; inset: 0; z-index: 100; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); opacity: 0; transition: opacity .25s; }
.cart__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(460px, 100%);
  background: var(--ink); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
.cart.open .cart__backdrop { opacity: 1; }
.cart.open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 1.4rem; }
.cart__close { background: none; border: 0; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.cart__view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__view[hidden] { display: none !important; }
.cart__items, .cart__scroll { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; list-style: none; margin: 0; }
.cart__item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart__item img { width: 64px; height: 64px; object-fit: contain; background: var(--white); border-radius: 8px; padding: 4px; }
.cart__info { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.cart__info span { color: var(--muted); font-size: .8rem; }
.cart__sub { text-align: right; display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.cart__remove { background: none; border: 0; color: var(--muted); font-size: .78rem; text-decoration: underline; cursor: pointer; padding: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: .3rem; width: max-content; }
.qty button { background: none; border: 0; color: var(--white); width: 2rem; height: 2rem; font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 1.6rem; text-align: center; font-weight: 700; }
.cart__empty { color: var(--muted); padding: 0 1.4rem; }
.cart__foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); background: var(--black); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.cart__total strong { color: var(--red); font-size: 1.5rem; }
.cart__hint { color: var(--muted); font-size: .8rem; margin: .3rem 0 1rem; }
.cart__actions { display: grid; grid-template-columns: 1fr 2fr; gap: .7rem; margin-top: .8rem; }
.cart__resumen { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.cart__label { font-size: .85rem; font-weight: 600; margin: .4rem 0 .5rem; }
.options--pago { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--pago label { padding: .7rem .9rem; background: var(--panel); }
.cart .check { margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.cart__done { align-items: center; justify-content: center; text-align: center; padding: 2rem 1.6rem; gap: .6rem; }
.cart__done h3 { font-size: 1.6rem; margin-top: .8rem; }
.cart__done p { color: #cfcfcf; }
.cart__done .btn { margin-top: 1rem; }
.cart__pedido strong { color: var(--white); letter-spacing: .05em; }
#orderError a { color: var(--white); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .options--pago { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-fab { right: 1rem; bottom: 1rem; }
}

/* Carrito fijo al lado de los productos en computador */
@media (min-width: 1025px) {
  .tienda__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
  .tienda .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tienda .cart, .tienda .cart[hidden] { display: block !important; position: sticky; top: 90px; inset: auto; z-index: 1; height: calc(100vh - 110px); max-height: 760px; }
  .tienda .cart__backdrop, .tienda .cart__close, .cart-fab { display: none !important; }
  .tienda .cart__panel { position: static; transform: none; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .tienda .cart__foot { border-radius: 0 0 var(--radius) var(--radius); }
}
.tienda .product__foot { gap: .6rem; }
.tienda .product__foot .btn { white-space: nowrap; }
.cart__line { display: flex; justify-content: space-between; color: #cfcfcf; font-size: .9rem; margin-bottom: .3rem; }
.options--zona { margin-bottom: .2rem; }

/* Minimizar el carrito (solo en computador) */
.cart__min { display: none; margin-left: auto; width: 2.2rem; height: 2.2rem; border-radius: 8px; border: 1px solid var(--line); background: none; cursor: pointer; place-items: center; }
.cart__min span { display: block; width: 14px; height: 2px; background: var(--white); }
.cart__min:hover { border-color: var(--red); }
@media (min-width: 1025px) {
  .tienda .cart__min { display: grid; }
  body.cart-minimizado .tienda__layout { grid-template-columns: minmax(0, 1fr); }
  body.cart-minimizado .tienda .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.cart-minimizado .tienda .cart { display: none !important; }
  body.cart-minimizado .cart-fab { display: flex !important; }
}

/* ===== Tienda: tarjetas compactas para el catálogo completo ===== */
.tienda .products { gap: .9rem; }
.product--mini { padding: .7rem; border-radius: 12px; }
.product--mini:hover { transform: translateY(-3px); }
.product--mini .product__media { margin-bottom: .6rem; border-bottom-width: 3px; border-radius: 8px; }
.product--mini .product__media--pack img { padding: 1.6rem .6rem .5rem; }
.product--mini .product__tag { top: .45rem; left: .45rem; font-size: .62rem; padding: .15rem .45rem; }
.product--mini h3 {
  font-size: .92rem; line-height: 1.2; margin-bottom: .15rem; min-height: 2.4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product--mini .product__ref { font-size: .72rem; margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product--mini p:not(.product__ref) {
  font-size: .74rem; line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product--mini .product__foot { margin-top: .6rem; gap: .4rem; }
.product--mini .price { font-size: .95rem; }
.product--mini .btn--sm { padding: .4rem .7rem; font-size: .78rem; }

/* Empaque dibujado para productos sin foto */
.pack { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.7rem 0 .6rem; }
.pack__body {
  position: relative; width: 58%; height: 78%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: .25rem; text-align: center; padding: .5rem .35rem; color: var(--white);
  background: linear-gradient(90deg, #050505 0%, #2b2b2b 45%, #0b0b0b 100%);
  border-radius: 8px 8px 12px 12px; box-shadow: 0 8px 14px rgba(0,0,0,.25);
}
.pack__body::before { /* tapa */
  content: ""; position: absolute; top: -9%; left: -4%; right: -4%; height: 12%;
  background: linear-gradient(90deg, #111, #3a3a3a 45%, #111); border-radius: 6px;
}
.pack__body::after { /* franja roja de la etiqueta */
  content: ""; position: absolute; left: 0; right: 0; bottom: 16%; height: 7%; background: var(--red);
}
.pack__marca { font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); line-height: 1.1; }
.pack__nombre {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .78rem; line-height: 1.05;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18%;
}
.pack--frasco .pack__body { width: 42%; height: 70%; border-radius: 10px; }
.pack--frasco .pack__body::before { left: 18%; right: 18%; top: -11%; height: 13%; background: linear-gradient(90deg, #8a0008, var(--red) 45%, #8a0008); }
.pack--lata .pack__body { width: 36%; height: 80%; border-radius: 6px; background: linear-gradient(90deg, #070707, #3b3b3b 40%, #0b0b0b); }
.pack--lata .pack__body::before { top: -4%; left: 6%; right: 6%; height: 5%; background: linear-gradient(90deg, #888, #ddd 45%, #888); }
.pack--lata .pack__nombre { font-size: .7rem; }
.pack--barra .pack__body { width: 84%; height: 34%; border-radius: 6px; transform: rotate(-8deg); padding: .3rem .6rem; }
.pack--barra .pack__body::before { display: none; }
.pack--barra .pack__body::after { bottom: auto; top: 0; left: auto; width: 14%; height: 100%; border-radius: 0 6px 6px 0; }
.pack--barra .pack__nombre { margin: 0 14% 0 0; -webkit-line-clamp: 2; }
.pack--sobre .pack__body { width: 56%; height: 72%; border-radius: 4px; clip-path: polygon(0 4%, 8% 0, 16% 4%, 24% 0, 32% 4%, 40% 0, 48% 4%, 56% 0, 64% 4%, 72% 0, 80% 4%, 88% 0, 96% 4%, 100% 0, 100% 100%, 0 100%); }
.pack--sobre .pack__body::before { display: none; }
.pack--chico { padding: .4rem 0 .2rem; }
.pack--chico .pack__body { gap: 0; padding: .1rem; }
.pack--chico .pack__marca, .pack--chico .pack__nombre { display: none; }

/* Buscador y filtros */
.tienda__barra { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tienda__buscar { position: relative; flex: 1; max-width: 420px; }
.tienda__buscar svg { position: absolute; left: .9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.tienda__buscar input {
  width: 100%; padding: .75rem 1rem .75rem 2.6rem; border-radius: 999px; font: inherit; font-size: .9rem;
  background: var(--panel); color: var(--white); border: 1px solid var(--line);
}
.tienda__buscar input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,6,19,.25); }
.tienda__conteo { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.tienda__filtros { margin-bottom: 1rem; }
.tienda__filtros--tipos { margin-top: -.3rem; }
.tienda__filtros--tipos[hidden] { display: none; }
.tienda__main > .tienda__filtros:last-of-type { margin-bottom: 1.5rem; }
.filtro--sm { padding: .35rem .9rem; font-size: .8rem; }
.cart__thumb { position: relative; width: 64px; height: 64px; background: var(--white); border-radius: 8px; overflow: hidden; }
.cart__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart__item > .cart__thumb img { background: none; border-radius: 0; }

/* Columnas del catálogo */
.tienda .products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 1025px) {
  .tienda .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.cart-minimizado .tienda .products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1024px) { .tienda .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tienda .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tienda .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .product--mini { padding: .55rem; }
  .product--mini .product__foot { flex-direction: column; align-items: stretch; }
  .product--mini .btn--sm { text-align: center; }
  .tienda__barra { flex-wrap: wrap; }
  .tienda__buscar { max-width: none; flex-basis: 100%; }
}
/* Encabezado más bajo en la tienda para ver los productos antes */
.page-hero--tienda { padding: 7.5rem 0 1.5rem; }
.page-hero--tienda h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.page-hero--tienda .lead { margin-bottom: 0; }
@media (max-width: 600px) { .page-hero--tienda { padding: 6.5rem 0 1rem; } }
@media (min-width: 1280px) {
  .tienda .products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.cart-minimizado .tienda .products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.supp__img { position: relative; overflow: hidden; }
.product--mini p:not(.product__ref) { flex: none; height: 2.7em; }
.product--mini .product__foot { margin-top: auto; padding-top: .6rem; }
.options input:disabled + label { opacity: .4; cursor: not-allowed; }

/* Formulario de datos de entrega más compacto */
.cart__scroll { padding-top: .8rem; }
.cart__scroll .field { margin-bottom: .55rem; }
.cart__scroll .field label { font-size: .78rem; margin-bottom: .25rem; }
.cart__scroll .field input { padding: .6rem .8rem; font-size: .9rem; }
.cart__scroll .error { min-height: 0; }
.cart__scroll .error:empty { display: none; }
.cart__scroll .cart__label { margin: .5rem 0 .4rem; font-size: .8rem; }
.cart__scroll .options { gap: .45rem; }
.cart__scroll .options label { padding: .5rem .7rem; gap: .1rem; }
.cart__scroll .options label strong { font-size: .88rem; }
.cart__scroll .options label span { font-size: .7rem; }
.cart__scroll .check { margin-top: .7rem; }
.cart__resumen { margin-bottom: .6rem; font-size: .8rem; }
#orderForm .cart__foot { padding: .8rem 1.4rem 1rem; }
#orderForm .cart__line { margin-bottom: .15rem; font-size: .85rem; }
#orderForm .cart__actions { margin-top: .5rem; }
#orderForm .error:empty { display: none; }
.cart__scroll .options--pago { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 400px) { .cart__scroll .options--pago { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* En computador, con el formulario abierto el recuadro crece hasta mostrarlo completo */
@media (min-width: 1025px) {
  .tienda .cart { scroll-margin-top: 90px; }
  .tienda .cart.is-form { position: relative; top: auto; height: auto; max-height: none; }
  .tienda .cart.is-form .cart__panel { height: auto; }
  .tienda .cart.is-form .cart__scroll { overflow: visible; }
}
@media (max-width: 600px) {
  .cart__scroll .form-row { grid-template-columns: 1fr 1fr; gap: 0 .6rem; }
  .cart__scroll .field input { font-size: 16px; padding: .55rem .7rem; } /* 16px evita el zoom automático en iPhone */
}
/* Foto real de la tienda Fit Place en el encabezado de Tienda Fit */
.page-hero--tienda {
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,.15) 75%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 30%, transparent 70%, var(--black) 100%),
    url("assets/tienda-fitplace.jpg") center 68% / cover no-repeat, var(--ink);
  padding: 10rem 0 6rem;
}
@media (max-width: 600px) {
  .page-hero--tienda {
    background:
      linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 60%, var(--black) 100%),
      url("assets/tienda-fitplace.jpg") center 55% / cover no-repeat, var(--ink);
    padding: 7rem 0 2rem;
  }
}

/* Detalle del producto */
.product__ver { display: block; width: 100%; padding: 0; border: 0; border-bottom: 3px solid var(--red); cursor: zoom-in; font: inherit; color: inherit; }
.product__lupa {
  position: absolute; left: 50%; bottom: .5rem; transform: translateX(-50%); white-space: nowrap;
  background: rgba(0,0,0,.78); color: var(--white); font-size: .68rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
  opacity: 0; transition: opacity .2s;
}
.product__ver:hover .product__lupa, .product__ver:focus-visible .product__lupa { opacity: 1; }
@media (hover: none) { .product__lupa { opacity: .9; } }
.product__nombre { cursor: pointer; }
.product__nombre:hover { color: var(--red); }

.detalle { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; }
.detalle[hidden] { display: none !important; }
.detalle__fondo { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.detalle__caja {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.detalle__cerrar { position: absolute; top: .4rem; right: .6rem; z-index: 2; background: none; border: 0; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.detalle__img { position: relative; background: var(--white); min-height: 320px; display: grid; place-items: center; padding: 1.5rem; }
.detalle__img img { width: 100%; max-height: 380px; object-fit: contain; }
.detalle__info { padding: 1.8rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.detalle__info .product__tag { position: static; display: inline-block; }
.detalle__info h3 { font-size: 1.5rem; line-height: 1.1; margin-top: .3rem; }
.detalle__marca { color: var(--white); opacity: .85; font-weight: 600; font-size: .9rem; }
.detalle__desc { color: #cfcfcf; font-size: .95rem; line-height: 1.55; }
.detalle__precio { font-size: 1.6rem; margin-top: .3rem; }
.detalle__acciones { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .3rem; }
.detalle__acciones .qty { margin-top: 0; }
.detalle__nota { color: var(--muted); font-size: .8rem; min-height: 1em; }
@media (max-width: 600px) {
  .detalle { padding: .6rem; align-items: end; }
  .detalle__caja { grid-template-columns: 1fr; }
  .detalle__img { min-height: 0; height: 240px; padding: 1rem; }
  .detalle__img img { max-height: 210px; }
  .detalle__info { padding: 1.2rem; }
  .detalle__info h3 { font-size: 1.25rem; }
}
.detalle__cerrar { top: .6rem; right: .6rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(0,0,0,.8); font-size: 1.5rem; display: grid; place-items: center; }
