/* Club B landing — BEES Perú (prototipo móvil) */

:root {
  --bees-yellow: #ffff00;
  --bees-yellow-subtle: #fffb7d;
  --text: #141414;
  --text-secondary: rgba(20, 20, 20, 0.68);
  --info: #006edb;
  --positive: #009900;
  --surface-page: #f4f4f4;
  --surface-card: #ffffff;
  --black-bg: #141414;
  --black-muted: #2a2a2a;
  --black-text-muted: #9a9a9a;
  --black-border: #e6e6e6;
  --gold-deep: #c08818;
  --gold-mid: #d8a028;
  --gold-light: #f0c040;
  --gold-shine: #f8e8a0;
  --gold-surface: #fff4d6;
  --gold-text: #7a5200;
  --radius-pill: 512px;
  --radius-card: 8px;
  --shadow-soft: 0 2px 8px rgba(20, 20, 20, 0.08);
  --font-title: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --page-max: 480px;
  --space-page: 16px;
  --sticky-cta-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface-page);
}

body[data-demo="false"] [data-demo-footnote] {
  display: none;
}

.page-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--surface-card);
  padding-bottom: calc(var(--sticky-cta-height) + env(safe-area-inset-bottom, 0px) + 12px);
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--space-page) 14px;
  min-height: calc(52px + env(safe-area-inset-top, 0px));
  background: var(--bees-yellow);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}

.app-header__title-line {
  display: inline;
}

.app-header__title-line--club {
  white-space: nowrap;
}

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

.icon-btn--ghost {
  opacity: 0.85;
}

.icon-btn__glyph {
  font-size: 1.25rem;
  line-height: 1;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

.section {
  padding: 24px var(--space-page);
}

.section__lead {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--bees-yellow);
  color: var(--text);
  border-color: var(--text);
}

.btn--inverse {
  background: var(--surface-card);
  color: var(--text);
  border-color: var(--text);
}

.btn:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

@media (hover: hover) {
  .btn:hover {
    box-shadow: var(--shadow-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Hero */
.hero {
  background: var(--bees-yellow);
  padding: 8px var(--space-page) 28px;
}

.hero__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8125rem;
}

.hero__lead {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  max-width: 36ch;
}

.hero__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-chip {
  border-radius: var(--radius-card);
  padding: 12px 10px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.hero-chip--gold {
  background: var(--gold-surface);
  color: var(--gold-text);
  border: 1px solid var(--gold-mid);
}

.hero-chip--black {
  background: var(--black-bg);
  color: #fff;
}

.hero-chip__value {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.1;
}

.hero-chip__label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8125rem;
  margin-top: 4px;
}

.hero-chip__hint {
  font-size: 0.6875rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* Ladder / tiers */
.ladder {
  background: var(--surface-page);
}

.ladder__track {
  position: relative;
  padding-left: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ladder__curve {
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 32px;
  color: var(--text-secondary);
  pointer-events: none;
}

.tier-card {
  position: relative;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.tier-card--black {
  background: var(--black-bg);
  color: #fff;
}

.tier-card--gold {
  background: var(--gold-surface);
  color: var(--gold-text);
  border: 1px solid var(--gold-light);
}

.tier-card--base {
  background: var(--bees-yellow-subtle);
  color: var(--text);
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.tier-card__icon {
  position: absolute;
  left: -44px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: var(--shadow-soft);
}

.tier-card__icon--black {
  background: var(--black-muted);
  color: #fff;
  border: 2px solid var(--black-border);
}

.tier-card__icon--gold {
  background:
    linear-gradient(var(--gold-surface), var(--gold-surface)) padding-box,
    linear-gradient(135deg, var(--gold-shine), var(--gold-mid), var(--gold-deep)) border-box;
  color: var(--gold-text);
  border: 3px solid transparent;
}

.tier-card__icon--base {
  background: var(--bees-yellow);
  color: var(--text);
  border: 2px solid var(--text);
}

.tier-stars {
  letter-spacing: -1px;
}

.tier-card__name {
  margin-bottom: 4px;
}

.tier-card__points {
  font-family: var(--font-title);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.tier-card__text {
  margin: 0;
  font-size: 0.875rem;
}

.tier-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
}

.tier-card__list li {
  margin-bottom: 4px;
}

.tier-card__list--short {
  display: none;
}

.tier-card--black .tier-card__list {
  color: var(--black-text-muted);
}

@media (max-width: 374px) {
  .tier-card__list--full {
    display: none;
  }

  .tier-card__list--short {
    display: block;
  }
}

.ladder__milestone {
  position: relative;
  margin: 4px 0;
  padding: 12px 12px 12px 16px;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--bees-yellow);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.ladder__milestone-dot {
  position: absolute;
  left: -38px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bees-yellow);
  border: 2px solid var(--text);
}

.demo-footnote {
  margin: 16px 0 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.benefit-cat {
  background: var(--surface-page);
  border-radius: var(--radius-card);
  padding: 12px;
  min-height: 100%;
}

.benefit-cat h3 {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.benefit-cat ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.35;
}

.benefit-cat li {
  margin-bottom: 8px;
}

.tier-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-right: 4px;
  vertical-align: middle;
}

.tier-tag--base {
  background: var(--bees-yellow);
  color: var(--text);
}

.tier-tag--gold {
  background: var(--gold-shine);
  color: var(--gold-text);
}

.tier-tag--black {
  background: var(--black-bg);
  color: #fff;
}

@media (max-width: 359px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Steps */
.steps__intro {
  font-size: 0.9375rem;
  margin: 0 0 16px;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps-list__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bees-yellow);
  font-family: var(--font-title);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
}

.steps-list__text {
  padding-top: 4px;
  font-size: 0.9375rem;
}

/* Example */
.example {
  background: var(--surface-page);
}

.example__stamp {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.example-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.example-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.example-bar__label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8125rem;
}

.example-bar__track {
  height: 10px;
  background: rgba(20, 20, 20, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.example-bar__fill {
  display: block;
  height: 100%;
  width: var(--fill);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.example-bar--base .example-bar__fill {
  background: var(--bees-yellow-subtle);
  border: 1px solid rgba(20, 20, 20, 0.12);
}

.example-bar--gold .example-bar__fill {
  background: linear-gradient(90deg, var(--gold-shine), var(--gold-mid));
}

.example-bar--black .example-bar__fill {
  background: var(--black-bg);
}

.example-bar__value {
  font-size: 0.875rem;
  font-weight: 600;
}

.example-bar__pct {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.example__note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .example-bar__fill {
    transition: none;
  }
}

/* Rules */
.rules-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
}

.rules-list li {
  margin-bottom: 10px;
}

/* FAQ */
.faq-list {
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: none;
  background: var(--surface-card);
  text-align: left;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: -2px;
}

.faq-trigger__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.faq-trigger__icon::before,
.faq-trigger__icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.faq-trigger__icon::before {
  width: 12px;
  height: 2px;
  top: 9px;
  left: 4px;
}

.faq-trigger__icon::after {
  width: 2px;
  height: 12px;
  top: 4px;
  left: 9px;
}

.faq-trigger[aria-expanded="true"] .faq-trigger__icon::after {
  transform: scaleY(0);
}

.faq-panel {
  padding: 0 16px 16px;
  background: var(--surface-page);
  font-size: 0.875rem;
  color: var(--text);
}

.faq-panel[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .faq-trigger__icon::before,
  .faq-trigger__icon::after {
    transition: none;
  }
}

/* Final CTA */
.final-cta {
  background: var(--black-bg);
  color: #fff;
  text-align: center;
}

.final-cta .section__lead {
  color: rgba(255, 255, 255, 0.72);
}

.final-cta h2 {
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 16px var(--space-page) 8px;
  text-align: center;
}

.tc-link {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tc-link:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px var(--space-page) calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--surface-card) 70%, transparent);
  max-width: var(--page-max);
  margin: 0 auto;
  pointer-events: none;
}

.sticky-cta .btn {
  pointer-events: auto;
  box-shadow: 0 -2px 12px rgba(20, 20, 20, 0.12);
}
