:root {
  --brown: #6b4226;
  --brown-dark: #4a2c17;
  --cream: #fdf6ec;
  --orange: #e8792c;
  --orange-dark: #c9631d;
  --green: #4c7a51;
  --text: #2f241c;
  --muted: #7a6a5c;
  --card: #ffffff;
  --border: #ecdfd0;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--brown-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}
.brand { font-weight: 700; font-size: 1.1rem; }
.lang-switch select {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.9rem;
}
.lang-switch select option { color: #222; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { text-align: center; }
.tag {
  display: inline-block;
  background: #fdece0;
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
  color: var(--brown-dark);
  max-width: 760px;
  margin-inline: auto;
}
.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.price-note { font-size: 0.85rem; color: var(--muted); }

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 6px 16px rgba(232,121,44,0.35);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost {
  background: transparent;
  color: var(--brown-dark);
  border: 2px solid var(--border);
}
.btn-large { width: 100%; font-size: 1.1rem; padding: 16px; }

/* Hero con ilustración */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
.hero-grid .hero-inner { text-align: left; }
.hero-grid .hero-inner h1, .hero-grid .subtitle { margin-inline: 0; }
.hero-grid .cta-row { justify-content: flex-start; }
.hero-illus svg { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.hero-illus img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(74,44,23,0.25);
  border: 5px solid white;
}
.lesson-illus { width: 96px; height: 96px; flex-shrink: 0; }
.lesson-illus svg { width: 100%; height: 100%; }
.lesson-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(74,44,23,0.18);
}
.badge-preview {
  background: #1B3A6B;
  color: white;
  cursor: pointer;
}

/* Zona de entrenamiento interactiva */
.tools { padding: 56px 0; background: white; border-bottom: 1px solid var(--border); }
.tools h2 { text-align: center; font-size: 1.8rem; color: var(--brown-dark); margin-bottom: 8px; }
.tools-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}
.tool-col { display: flex; flex-direction: column; gap: 18px; }
.tool-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.tool-card h3 { margin: 0 0 6px; color: var(--brown-dark); font-size: 1.05rem; }
.tool-hint { color: var(--muted); font-size: 0.88rem; margin: 0 0 14px; }
.step-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background .15s;
}
.step-check:hover { background: #fdece0; }
.step-check input { margin-top: 3px; accent-color: var(--green); width: 17px; height: 17px; flex-shrink: 0; }
.step-check.done { color: var(--green); text-decoration: line-through; }
.btn-block { width: 100%; margin-top: 12px; }
.btn-block:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-small { padding: 8px 14px; font-size: 0.85rem; }
.session-saved, .rep-done, .goal-msg {
  background: #f2f9f2;
  border: 1px solid #cfe6cf;
  color: var(--green);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 0;
}
.paw-track { display: flex; gap: 8px; margin: 6px 0 10px; }
.paw-track .paw-slot { width: 34px; height: 34px; color: #e4d5c2; }
.paw-track .paw-slot.filled { color: var(--orange); }
.paw-track .paw-slot svg { width: 100%; height: 100%; }
.sessions-count { font-weight: 700; color: var(--brown-dark); margin: 0; }
.rep-row { display: flex; align-items: center; gap: 14px; }
.paw-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: white;
  cursor: pointer;
  padding: 12px;
  box-shadow: 0 5px 14px rgba(232,121,44,0.4);
  transition: transform .1s;
}
.paw-btn:active { transform: scale(0.88); }
.paw-btn svg { width: 100%; height: 100%; }
.rep-count { font-size: 1.5rem; font-weight: 800; color: var(--brown-dark); }
.clicker-btn {
  width: 100%;
  padding: 22px;
  border-radius: 14px;
  border: 3px solid var(--brown-dark);
  background: var(--brown-dark);
  color: #60FCC6;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  transition: transform .06s;
}
.clicker-btn:active { transform: scale(0.96); background: #2f1c0e; }
.quiz-q { margin-bottom: 16px; }
.quiz-q p.q { font-weight: 600; font-size: 0.93rem; margin: 0 0 8px; color: var(--brown-dark); }
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color .15s;
}
.quiz-opt:hover { border-color: var(--orange); }
.quiz-opt.correct { border-color: var(--green); background: #f2f9f2; color: var(--green); font-weight: 700; }
.quiz-opt.wrong { border-color: #e31e24; background: #fdeaea; color: #b3151a; }
.quiz-feedback { font-size: 0.85rem; font-weight: 600; margin: 4px 0 0; }
.quiz-feedback.ok { color: var(--green); }
.quiz-feedback.no { color: #b3151a; }
.quiz-score { font-weight: 700; color: var(--brown-dark); }
.reset-row { text-align: center; margin-top: 22px; }
.link-btn {
  background: none; border: none; color: var(--muted);
  text-decoration: underline; cursor: pointer; font-size: 0.82rem;
}

/* Benefits */
.benefits { padding: 56px 0; }
.benefits h2, .curriculum h2, .pricing h2, .faq h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.benefit-card .icon { font-size: 2rem; margin-bottom: 10px; }
.benefit-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brown-dark); }
.benefit-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Curriculum */
.curriculum { background: white; padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lessons-list { display: flex; flex-direction: column; gap: 14px; }
.lesson-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.lesson-card.free { background: #f2f9f2; border-color: #cfe6cf; }
.lesson-main h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--brown-dark); }
.lesson-main p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.lesson-badge {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-free { background: var(--green); color: white; cursor: pointer; }
.badge-locked { background: #eee; color: var(--muted); }

/* Pricing */
.pricing { padding: 56px 0; }
.pricing-card { max-width: 480px; }
.price-box {
  background: var(--card);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.price-plan { font-weight: 600; color: var(--brown-dark); margin-bottom: 10px; }
.price-tag { margin-bottom: 18px; }
.price-old { text-decoration: line-through; color: var(--muted); margin-right: 10px; font-size: 1.1rem; }
.price-current { font-size: 2.2rem; font-weight: 800; color: var(--orange-dark); }
.price-includes { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.price-includes li { padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text); font-size: 0.94rem; }
.price-includes li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.pay-methods-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 16px 0 8px;
  font-weight: 700;
}
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pay-badge {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-dark);
  white-space: nowrap;
}
.price-security { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* FAQ */
.faq { padding: 56px 0 72px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.faq-item h4 { margin: 0 0 6px; color: var(--brown-dark); font-size: 1rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Footer */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,12,6,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.modal h3 { color: var(--brown-dark); margin-top: 0; }
.modal ol { padding-left: 20px; }
.modal ol li { margin-bottom: 8px; }
.modal .tip {
  background: #fdece0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--orange-dark);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  z-index: 2;
}

/* Reproductor de lecciones */
.modal.player { padding: 0; overflow: hidden; max-width: 560px; }
.player-photo { position: relative; height: 190px; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(74,44,23,0) 40%, rgba(74,44,23,0.55) 100%);
}
.player-body { padding: 22px 28px 28px; }
.player-body h3 { margin: 0 0 14px; font-size: 1.2rem; }
.player-progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.player-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border-radius: 999px;
  transition: width .35s ease;
}
.player-counter { font-size: 0.8rem; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.player-stage { min-height: 130px; }
.player-step {
  font-size: 1.08rem;
  line-height: 1.6;
  animation: stepIn .3s ease;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.player-tipbox {
  background: #fdece0;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  animation: stepIn .3s ease;
}
.player-tipbox .tiplabel { font-weight: 700; color: var(--orange-dark); display: block; margin-bottom: 4px; font-size: 0.85rem; }
.player-done { text-align: center; animation: stepIn .35s ease; padding: 10px 0; }
.player-done .paws { font-size: 2.4rem; letter-spacing: 6px; animation: pawPop .5s ease; }
@keyframes pawPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.player-done h4 { color: var(--brown-dark); font-size: 1.25rem; margin: 10px 0 8px; }
.player-done p { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }
.player-done .done-actions { display: flex; flex-direction: column; gap: 10px; }
.player-dots { display: flex; gap: 7px; justify-content: center; margin: 16px 0 14px; }
.player-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
  transition: background .25s, transform .25s;
}
.player-dots .dot.active { background: var(--orange); transform: scale(1.35); }
.player-dots .dot.past { background: var(--green); }
.player-nav { display: flex; justify-content: space-between; gap: 12px; }
.player-nav .btn { flex: 1; }
.player-nav .btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-inner { text-align: center; }
  .hero-grid .hero-inner h1, .hero-grid .subtitle { margin-inline: auto; }
  .hero-grid .cta-row { justify-content: center; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .lesson-card { flex-direction: column; }
  .lesson-illus { width: 64px; height: 64px; }
}
