/* ============================================================
   MUSCLE GIRL — hoja de estilos pública
   Tokens tomados del diseño de Figma "MUSCLE GIRL"
   ============================================================ */
:root {
  --pink: #EC2A7E;          /* botones, cintas, acentos */
  --pink-bright: #F2478D;   /* barra de cupón */
  --pink-deep: #C22069;     /* fondos magenta (testimonios, títulos catálogo) */
  --pink-light: #F6C9DD;    /* barras claras en catálogo */
  --pink-soft: #FBE3EE;
  --black: #0B0B0B;
  --white: #FFFFFF;
  --grey-card: #E9E7E7;
  --grey-text: #8A8A8A;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-round: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --radius: 12px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- NAVBAR ---------- */
.nav {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__logo img { height: 52px; width: auto; }
.nav__menu {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav__item { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .6px;
  padding: 10px 0;
}
.nav__link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__item:hover .chev,
.nav__item.open .chev { transform: rotate(180deg); color: var(--pink); }
.nav__item:hover .nav__link,
.nav__item.open .nav__link { color: var(--pink); }
.nav__drop {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 200px;
  background: var(--black);
  border: 1px solid #222;
  display: none;
  z-index: 60;
}
.nav__item:hover .nav__drop,
.nav__item.open .nav__drop { display: block; }
.nav__drop a {
  display: block;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .6px;
  color: var(--white);
}
.nav__drop a:hover { background: var(--pink); }
.nav__icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav__icons a { color: var(--white); }
.nav__icons svg { width: 22px; height: 22px; }
.nav__icons a:hover { color: var(--pink); }
.nav__burger {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  margin-left: auto;
}
.nav__burger svg { width: 28px; height: 28px; }

/* ---------- BARRA CUPÓN ---------- */
.coupon {
  background: var(--pink-bright);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .8px;
  padding: 10px 16px;
  text-transform: uppercase;
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--black); }
.hero__slide { display: none; }
.hero__slide.is-active { display: block; animation: heroIn .6s ease both; }
.hero__slide img { width: 100%; height: auto; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }

/* hero "vivo": texto y logo en HTML (nítidos en cualquier pantalla),
   degradado en CSS y solo la modelo como fotografía */
.hero__slide--branded {
  position: relative;
  min-height: clamp(420px, 46vw, 620px);
  background:
    radial-gradient(120% 100% at 78% 40%, rgba(236,42,126,.55) 0%, rgba(160,28,90,.35) 42%, transparent 70%),
    linear-gradient(115deg, #241726 0%, #3B2138 34%, #7C2255 68%, #C22069 100%);
  overflow: hidden;
}
.hero__slide--branded::after {
  /* viñeta inferior para fundir con la sección siguiente */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(transparent, rgba(11,11,11,.55));
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) 20px clamp(40px, 5vw, 72px);
  width: 100%;
}
.hero__title {
  display: flex;
  flex-direction: column;
  gap: .08em;
  font-weight: 900;
  font-size: clamp(34px, 5.6vw, 74px);
  line-height: 1.02;
  letter-spacing: -.5px;
  color: var(--white);
  text-shadow: 0 4px 26px rgba(0,0,0,.4);
  max-width: 60%;
}
.hero__title span { animation: heroUp .7s cubic-bezier(.22,.9,.3,1) both; }
.hero__title span:nth-child(2) { animation-delay: .09s; }
.hero__title span:nth-child(3) { animation-delay: .18s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__slide .hero__emblem {
  width: clamp(130px, 15vw, 205px);
  height: auto;
  margin-top: clamp(24px, 3vw, 40px);
  filter: brightness(0) invert(1) drop-shadow(0 3px 14px rgba(0,0,0,.35));
  animation: heroUp .7s cubic-bezier(.22,.9,.3,1) .27s both;
}
.hero__model {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: clamp(280px, 42%, 560px);
  z-index: 1;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(100deg, transparent 0%, #000 26%);
}
.hero__slide .hero__model img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.28);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  opacity: .9;
  padding: 8px;
  z-index: 3;
  backdrop-filter: blur(3px);
  transition: background .2s, opacity .2s;
}
.hero__arrow:hover { opacity: 1; background: var(--pink); }
.hero__arrow svg { width: 30px; height: 30px; display: block; }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }
.hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 3;
}
.hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: background .2s, width .2s;
}
.hero__dot.is-active { background: var(--white); width: 26px; border-radius: 5px; }

/* ---------- QUIÉNES SOMOS ---------- */
.about {
  background:
    linear-gradient(160deg, rgba(236,42,126,.93) 0%, rgba(194,32,105,.9) 55%, rgba(120,22,66,.92) 100%),
    url('../img/bg-gym.png') center/cover no-repeat;
  padding: 64px 20px;
}
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.about__text h2 {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 26px;
}
.about__text p {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.about__photo img {
  width: min(420px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

/* ---------- CINTA ENVÍOS ---------- */
.shipping {
  background: var(--pink);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 12px 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: clamp(14px, 2vw, 19px);
}
.shipping svg { width: 44px; height: 30px; color: var(--white); flex: none; }
.shipping--light { background: var(--pink-light); color: #4c1230; margin-top: 60px; }
.shipping--light svg { color: var(--white); }

/* ---------- TÍTULOS DE SECCIÓN ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 1px;
  text-align: center;
}

/* ---------- CATEGORÍAS ---------- */
.cats { background: var(--black); padding: 56px 20px 72px; }
.cats .section-title { color: var(--white); margin-bottom: 44px; }
.cats__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}
.cat-card { display: flex; flex-direction: column; gap: 18px; }
.cat-card__img {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.cat-card:hover .cat-card__img img { transform: scale(1.04); }
.btn-pink {
  display: block;
  background: var(--pink);
  color: var(--white);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .8px;
  text-align: center;
  text-transform: uppercase;
  padding: 16px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(236,42,126,.35);
  transition: background .2s, transform .2s;
}
.btn-pink:hover { background: var(--pink-deep); transform: translateY(-2px); }

/* ---------- TESTIMONIOS ---------- */
.testis {
  background:
    linear-gradient(rgba(194,32,105,.88), rgba(194,32,105,.88)),
    url('../img/bg-bolsas.jpg') center/cover no-repeat;
  padding: 60px 20px 72px;
}
.testis .section-title { color: var(--white); margin-bottom: 44px; }
.testis__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testi {
  background: var(--grey-card);
  border-radius: 12px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.testi p {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--pink-deep);
  font-size: 15.5px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.testi cite {
  font-style: normal;
  font-family: var(--font-round);
  font-weight: 700;
  color: #7c1747;
  font-size: 14px;
}

/* ---------- CONTACTO ---------- */
.contact { background: var(--black); padding: 64px 20px; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 54px);
  text-align: center;
  color: var(--white);
  margin-bottom: 48px;
}
.contact__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.contact__card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  color: var(--white);
}
.contact__card svg { width: 44px; height: 44px; flex: none; }
.contact__card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.contact__card span { display: block; font-weight: 700; font-size: 14px; line-height: 1.5; }
.contact__card:hover { color: var(--pink); }
.contact--light { background: var(--white); }
.contact--light .contact__title,
.contact--light .contact__card { color: var(--pink-deep); }
.contact--light .contact__card:hover { color: var(--pink); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  border-top: 1px solid #1c1c1c;
  text-align: center;
  padding: 40px 20px 34px;
}
.footer img { height: 44px; width: auto; margin: 0 auto 18px; }
.footer nav {
  color: var(--white);
  font-size: 12.5px;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer nav a:hover { color: var(--pink); }
.footer p { color: #9a9a9a; font-size: 12px; }

/* ---------- PÁGINAS CLARAS (catálogo / producto) ---------- */
.page-light {
  background: var(--white);
  color: var(--black);
  padding: 48px 20px 0;
}
.catalog-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: 1px;
  color: var(--pink-deep);
  text-align: center;
  margin-bottom: 44px;
  text-transform: uppercase;
}
.empty-note {
  text-align: center;
  color: var(--grey-text);
  font-weight: 600;
  padding: 40px 0 20px;
}
.prod-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.prod-card__img {
  background: #F4F2F2;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.prod-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.prod-card:hover .prod-card__img img { transform: scale(1.04); }
.prod-card h3 {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .6px;
  margin: 14px 0 6px;
  text-transform: uppercase;
  color: var(--black);
}
.prod-card__price { color: var(--grey-text); font-weight: 600; font-size: 14px; }

/* ---------- DETALLE DE PRODUCTO ---------- */
.pdp__crumb {
  max-width: var(--maxw);
  margin: 0 auto 26px;
  font-size: 13px;
  color: var(--grey-text);
  font-weight: 600;
}
.pdp__crumb a { color: var(--pink-deep); }
.pdp__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.pdp__main {
  background: #F4F2F2;
  border-radius: 12px;
  overflow: hidden;
}
.pdp__main img { width: 100%; height: auto; }
.pdp__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp__thumbs button {
  width: 86px;
  height: 86px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #F4F2F2;
}
.pdp__thumbs button:hover,
.pdp__thumbs button.is-active { border-color: var(--pink); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__info h1 {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--pink-deep);
  text-transform: uppercase;
}
.pdp__price {
  font-weight: 800;
  font-size: 30px;
  margin: 10px 0 8px;
}
.pdp__price small { color: var(--grey-text); font-weight: 600; font-size: 16px; }
.pdp__info h4 {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 1px;
  margin: 22px 0 10px;
}
.pdp__sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 4px;
}
.size-btn.is-active { background: var(--pink); border-color: var(--pink); }
.pdp__colors { display: flex; gap: 10px; flex-wrap: wrap; max-width: 340px; }
.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d9d9d9;
  background: var(--sw);
}
.swatch.is-active { outline: 3px solid var(--pink); outline-offset: 1px; }
.pdp__qty { display: flex; gap: 10px; align-items: center; }
.pdp__qty button {
  width: 42px;
  height: 38px;
  background: var(--black);
  color: var(--white);
  border: 0;
  font-size: 18px;
  font-weight: 800;
  border-radius: 4px;
}
.pdp__qty span {
  min-width: 46px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid var(--black);
  border-radius: 4px;
  padding: 7px 0;
}
.pdp__desc { font-size: 13.5px; line-height: 1.6; color: #333; max-width: 480px; }
.pdp__care {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  max-width: 480px;
}
.pdp__care li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
}
.pdp__care svg { width: 22px; height: 22px; color: var(--pink); flex: none; }
.pdp__order { margin-top: 28px; max-width: 320px; }

/* guía de tallas */
.guide { max-width: 900px; margin: 64px auto 0; }
.guide h2, .guide h3 {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 14px;
}
.guide h2 { font-size: 22px; }
.guide h3 { font-size: 18px; border-top: 3px solid var(--white); }
.guide__scroll { overflow-x: auto; }
.guide table { width: 100%; border-collapse: collapse; }
.guide th, .guide td {
  background: var(--black);
  color: var(--white);
  border: 3px solid var(--white);
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  padding: 12px 10px;
  min-width: 80px;
}

/* CTA personalizar */
.custom-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  margin: 48px auto 0;
  border: 2px solid #d9d9d9;
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--pink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
}
.custom-cta svg { width: 42px; height: 42px; flex: none; }
.custom-cta:hover { border-color: var(--pink); }

/* ---------- BOTONES DE PEDIDO (producto) ---------- */
.pdp__order-btns { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 330px; }
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #06301A;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 15px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-wa svg { width: 21px; height: 21px; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.4); }
.btn-outline {
  display: block;
  text-align: center;
  border: 2px solid var(--pink);
  color: var(--pink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 12px 18px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--pink); color: var(--white); }

/* ---------- REVELADO AL SCROLL ----------
   Solo se oculta cuando el JS está activo (clase .js en <html>); si el JS
   falla o está bloqueado, el contenido se ve siempre. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.9,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cat-card.reveal { transition-delay: .04s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title span, .hero__emblem, .hero__slide.is-active { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- ACCESIBILIDAD / DETALLES ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav__logo img { transition: transform .25s; }
.nav__logo:hover img { transform: scale(1.04); }
.testi { transition: transform .25s, box-shadow .25s; }
.testi:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.26); }
.contact__card { transition: transform .2s; }
.contact__card:hover { transform: translateY(-3px); }
.prod-card__price { transition: color .2s; }
.prod-card:hover .prod-card__price { color: var(--pink); }
.swatch { transition: transform .15s; }
.swatch:hover { transform: scale(1.18); }
.size-btn { transition: background .18s, border-color .18s, transform .15s; }
.size-btn:hover { transform: translateY(-2px); }
::selection { background: var(--pink); color: var(--white); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .cats__grid, .testis__grid, .contact__grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .pdp__top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
    border-bottom: 2px solid var(--pink);
  }
  .nav__menu.open { display: flex; }
  .nav__drop { position: static; border: 0; padding-left: 20px; }
  .nav__icons { margin-left: 0; }
}
@media (max-width: 760px) {
  /* hero: texto arriba, modelo como fondo suavizado */
  .hero__slide--branded { min-height: 460px; display: flex; align-items: center; }
  .hero__title { max-width: 100%; }
  .hero__model {
    width: 100%;
    opacity: .42;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__model img { object-position: 60% 12%; }
  .hero__content { text-align: center; }
  .hero__title { align-items: center; }
  .hero__emblem { margin-left: auto; margin-right: auto; }
  .hero__arrow { display: none; }
}
@media (max-width: 620px) {
  .cats__grid, .testis__grid, .contact__grid, .prod-grid { grid-template-columns: 1fr; }
  .shipping { letter-spacing: .5px; gap: 14px; font-size: 13px; }
  .shipping svg { width: 30px; }
  .pdp__care { grid-template-columns: 1fr; }
  .cats { padding: 44px 16px 56px; }
  .about { padding: 48px 18px; }
  .contact { padding: 48px 18px; }
  .pdp__order-btns { max-width: 100%; }
  .coupon { font-size: 11px; letter-spacing: .3px; padding: 9px 12px; }
}
