/* === PILATES JAPONES 40+ — DESIGN SYSTEM ZEN UNIFICADO === */
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-soft: #F4EFE6;
  --border: #E7DDD0;
  --primary: #9E3B56;
  --primary-dark: #7E2B42;
  --primary-soft: #F9EDF0;
  --zen: #3E6B58;
  --zen-dark: #2E5243;
  --zen-soft: #EAF3EE;
  --gold: #C69749;
  --gold-soft: #FBF4E4;
  --ink: #241E1C;
  --muted: #665B56;
  --danger: #B93838;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(36, 30, 28, 0.06);
  --shadow-lg: 0 18px 42px rgba(36, 30, 28, 0.10);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

.serif { font-family: var(--font-serif); letter-spacing: -0.01em; }

.shell {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 40px;
  position: relative;
}

.shell-wide {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px 48px;
}

/* Header & Brand */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
  gap: 10px;
}

.topbar-centered {
  justify-content: center;
  position: relative;
}

.topbar-centered #btnBack {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 8px;
  font-size: 13px;
}

.hero-banner {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 960 / 420;
  height: auto;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.brand-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pill-primary { background: var(--primary-soft); color: var(--primary); }
.pill-zen { background: var(--zen-soft); color: var(--zen); }
.pill-gold { background: var(--gold-soft); color: #8A621C; }

/* Progress Bar */
.progress-wrap {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 2px 0 12px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-soft {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

/* Headings */
.h1-zen {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 8px;
  color: var(--ink);
}
@media (min-width: 520px) {
  .h1-zen { font-size: 32px; }
}

.h2-zen {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--ink);
}

.lead-copy {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.52; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(158, 59, 86, 0.28);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 28px rgba(158, 59, 86, 0.36); }

.btn-zen {
  background: linear-gradient(135deg, var(--zen), var(--zen-dark));
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(62, 107, 88, 0.28);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  padding: 6px 10px;
  width: auto;
  font-size: 14px;
  font-weight: 600;
}

/* Quiz Option Buttons */
.opt-list {
  display: grid;
  gap: 10px;
}

.opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 15px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.opt-btn:hover { border-color: var(--primary); background: #FFFDFB; }
.opt-btn.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(158, 59, 86, 0.14);
}
.opt-left { display: flex; align-items: center; gap: 12px; }
.opt-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.opt-btn.selected .opt-icon { background: #FFFFFF; }
.opt-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.opt-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
  flex-shrink: 0;
}
.opt-btn.selected .opt-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Visual Mode Cards */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.mode-card.selected {
  border-color: var(--zen);
  box-shadow: 0 0 0 3px rgba(62, 107, 88, 0.18);
}
.mode-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mode-card-body { padding: 12px; }
.mode-card-title { font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.mode-card-sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Inputs */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(158, 59, 86, 0.12); }

/* Badges & Trust */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 10px;
}
.review-stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.review-text { font-size: 14.5px; color: var(--ink); margin: 6px 0 8px; line-height: 1.5; }
.review-author { font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.28s ease both; }

/* Sticky CTA Mobile */
.sticky-cta {
  position: sticky;
  bottom: 10px;
  z-index: 30;
  padding-top: 8px;
}

/* Scratch Card */
.scratch-box {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 170px;
  margin: 16px auto;
  border-radius: 18px;
  overflow: hidden;
  border: 2px dashed var(--gold);
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: none;
}
.scratch-under {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFFBF2, #F8E8C8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* App Preview Carousel */
.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.carousel-slide {
  flex: 0 0 82%;
  scroll-snap-align: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 30, 28, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: 22px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

/* Utilities */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.small { font-size: 13px; color: var(--muted); }
.error-msg {
  background: #FDECEC;
  color: var(--danger);
  border: 1px solid #F5C2C2;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 10px;
}

@media (max-width: 400px) {
  .h1-zen { font-size: 28px; }
  .h2-zen { font-size: 24px; }
  .mode-grid { grid-template-columns: 1fr; }
}
