/* Tienda para entrenadores · WAPerformance (páginas sueltas, sin la app) */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url('fonts/poppins-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 900; font-display: swap; src: url('fonts/poppins-latin-900-normal.woff2') format('woff2'); }

:root {
  --ink: #202930;
  --panel: #28333b;
  --cream: #ffe9d7;
  --soft: rgba(255, 233, 215, 0.78);
  --mute: rgba(255, 233, 215, 0.6);
  --red: #f3456b;
  --pink: #ff8da6;
  --violet: #7c5cff;
  --accent: #2f6bff;
  --accent-dark: #2557d6;
  --steel: #33404a;
  --lilac: #b9a8ff;
  --card: rgba(255, 255, 255, 0.05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cream); }
a:hover { color: #fff; }
h1, h2, p { margin: 0; }

.page { position: relative; overflow: hidden; min-height: 100vh; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(150px); }
.blob.red { background: var(--red); }
.blob.violet { background: var(--violet); }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* Cabecera */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--red); display: flex; align-items: center; justify-content: center; font-style: italic; font-weight: 900; font-size: 23px; color: #fff; }
.brand-name { font-weight: 500; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; color: rgba(255, 233, 215, 0.75); min-height: 40px; display: inline-flex; align-items: center; }
.nav a.on { color: var(--cream); font-weight: 600; }
.nav a.pill { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; padding: 0 20px; border-radius: 999px; }
.nav a.pill:hover { background: var(--accent); }

/* Botones: los mismos de la landing de WAP (Landing.tsx: btnPrimary / btnSecondary y .lp-btn) */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-red { background: var(--accent); color: var(--cream); }
.btn-red:hover { background: var(--accent-dark); color: var(--cream); box-shadow: 0 10px 30px rgba(47, 107, 255, 0.35); }
.btn-red::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%); transform: translateX(-120%); }
.btn-red:hover::after { transform: translateX(120%); transition: transform .75s ease; }
.btn-ghost { background: var(--panel); color: var(--cream); font-weight: 600; }
.btn-ghost:hover { background: var(--steel); color: var(--cream); }
.btn-block { width: 100%; }

/* Textos */
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--pink); text-transform: uppercase; }
.h1 { font-weight: 900; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -2px; }
.h2 { font-weight: 900; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -1px; }
.red { color: var(--red); }
.lead { font-size: 19px; line-height: 1.55; color: var(--soft); }
.muted { color: var(--mute); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section { padding-top: 110px; }
.section-head { margin: 12px 0 36px; max-width: 780px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Portada del ebook (estilo C) */
.hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-top: 12px; padding-bottom: 20px; }
.hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; padding-top: 16px; }
.price { display: flex; flex-direction: column; }
.price b { font-weight: 800; font-size: 28px; line-height: 1.1; }
.price span { font-size: 13px; color: var(--mute); }
.buy-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.hero-art { flex: 1 1 420px; position: relative; height: 640px; min-width: 300px; }
.hero-art img { position: absolute; left: 50%; top: 0; transform: translateX(-46%); width: 520px; max-width: 115%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect; }
.stat { position: absolute; background: rgba(32, 41, 48, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; padding: 14px 20px; display: flex; flex-direction: column; }
.stat b { font-weight: 800; font-size: 26px; line-height: 1.1; color: #fff; }
.stat span { font-size: 13px; color: rgba(255, 233, 215, 0.75); }
.stat.s1 { left: 0; top: 400px; }
.stat.s1 b { font-size: 30px; }
.stat.s2 { right: 0; top: 150px; }
.stat.s3 { right: 10px; top: 520px; }

.quote { font-weight: 800; font-size: clamp(26px, 3.8vw, 44px); line-height: 1.2; letter-spacing: -1px; }

/* Tarjetas y grillas */
.grid { display: grid; gap: 14px; }
.g-5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card .n { font-weight: 900; font-size: 34px; color: var(--red); }
.card .t { font-weight: 700; font-size: 18px; }
.card .d { font-size: 15px; line-height: 1.55; color: rgba(255, 233, 215, 0.72); }
.card .k { font-size: 13px; font-weight: 700; color: var(--red); }
.card .w { font-weight: 800; font-size: 22px; }
.shot { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }

.part { background: var(--card); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.part img { width: 100%; height: 170px; object-fit: cover; }
.part ol { margin: 0; padding: 24px 26px 28px; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: rgba(255, 233, 215, 0.82); }

.case { background: var(--card); border-radius: 28px; padding: 40px; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.case img { flex: 1 1 360px; max-width: 520px; border-radius: 18px; }
.case > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }

.bonus { border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.bonus.b1 { background: linear-gradient(160deg, rgba(243, 69, 107, 0.28), rgba(255, 255, 255, 0.04) 60%); }
.bonus.b2 { background: linear-gradient(160deg, rgba(124, 92, 255, 0.32), rgba(255, 255, 255, 0.04) 60%); }
.bonus .k { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--pink); }
.bonus.b2 .k { color: var(--lilac); }
.bonus .t { font-weight: 800; font-size: 24px; line-height: 1.2; }
.bonus .d { font-size: 15px; line-height: 1.6; color: rgba(255, 233, 215, 0.78); }

.fit { display: flex; gap: 16px; flex-wrap: wrap; }
.fit > div { flex: 1 1 420px; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.55; }
.fit .yes { background: rgba(255, 255, 255, 0.06); }
.fit .no { background: rgba(255, 255, 255, 0.03); color: rgba(255, 233, 215, 0.75); }
.fit b { font-weight: 800; font-size: 24px; color: var(--cream); }

/* Compra */
.buy { border-radius: 32px; padding: 44px; display: flex; gap: 40px; flex-wrap: wrap; align-items: center;
  background: radial-gradient(500px 360px at 0% 100%, rgba(124, 92, 255, 0.35), transparent 70%), radial-gradient(500px 360px at 100% 0%, rgba(243, 69, 107, 0.35), transparent 70%), var(--panel); }
.buy-info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.5; }
.buy-opts { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.opt { background: var(--ink); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.opt-head span { font-weight: 600; font-size: 16px; }
.opt-head b { font-weight: 900; font-size: 32px; }
.opt small { font-size: 13px; line-height: 1.5; color: var(--mute); }
.opt .err { color: #ff9aa9; font-size: 14px; }

/* Preguntas */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(255, 233, 215, 0.75); }

.closing { border-radius: 32px; overflow: hidden; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(520px 380px at 85% 40%, rgba(243, 69, 107, 0.45), transparent 70%), radial-gradient(500px 360px at 0% 100%, rgba(124, 92, 255, 0.35), transparent 70%), var(--panel); }
.closing > div { flex: 1 1 480px; padding: 48px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.closing img { flex: 0 1 360px; align-self: flex-end; width: 360px; height: 420px; object-fit: cover; object-position: top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }

/* Pie */
.foot { margin-top: 80px; padding-top: 30px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: rgba(255, 233, 215, 0.55); }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: rgba(255, 233, 215, 0.55); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot .legal { font-size: 12px; color: rgba(255, 233, 215, 0.42); }

/* Portada de la tienda */
.product { background: var(--card); border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.product-art { position: relative; flex: 1 1 380px; min-width: 0; min-height: 460px; overflow: hidden;
  background: radial-gradient(380px 320px at 55% 45%, rgba(243, 69, 107, 0.5), transparent 72%), radial-gradient(340px 300px at 10% 100%, rgba(124, 92, 255, 0.4), transparent 70%); }
.product-art img { position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); height: 104%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 64%, transparent 96%), linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 64%, transparent 96%), linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect; }
.product > div:not(.product-art) { flex: 1 1 380px; padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.chip.hot { background: rgba(243, 69, 107, 0.18); color: var(--pink); }
.app-strip .btn-ghost, .closing .btn-ghost { background: var(--ink); }
.app-strip .btn-ghost:hover { background: var(--steel); }
.app-strip { margin-top: 20px; background: var(--card); border-radius: 28px; padding: 30px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Gracias */
.thanks { max-width: 640px; margin: 40px auto 0; background: var(--panel); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--red); animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .section { padding-top: 80px; }
  .hero-art { height: 520px; }
  .hero-art img { width: 420px; }
  .stat.s1 { top: 330px; }
  .stat.s3 { top: 430px; }
  .buy, .case { padding: 26px; }
  .closing > div { padding: 30px; }
  .closing img { height: 320px; }
  .product > div:not(.product-art) { padding: 28px; }
  .product-art { min-height: 380px; }
  .app-strip { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
  .btn-red::after { display: none; }
  .spinner { animation-duration: 3s; }
}
