/* ==============================================================
   LAS VIANDAS DE BEATRIZ — Sitio web
   Landing + Quiz Funnel + Gracias · Paleta y tipografías de marca
   Mobile-first · Sin frameworks
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --terra: #B5533C;
  --terra-dark: #8E3D2A;
  --terra-light: #D17552;
  --cream: #FAF6F0;
  --cream-dark: #F0E8D8;
  --cream-darker: #E5DAC4;
  --olive: #5A6B3F;
  --olive-dark: #3D4A2A;
  --olive-light: #7E8E63;
  --ink: #1F1A15;
  --ink-soft: #4A4036;
  --ink-faint: #8A7F70;
  --gold: #C99A3A;
  --gold-soft: #DCB75A;
  --grey-line: #D6CFC2;
  --shadow-sm: 0 2px 8px rgba(31, 26, 21, 0.06);
  --shadow-md: 0 6px 20px rgba(31, 26, 21, 0.08);
  --shadow-lg: 0 14px 40px rgba(31, 26, 21, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 700; color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: 32px; font-weight: 900; margin-bottom: 0.4em; }
h2 { font-size: 28px; font-weight: 700; margin-bottom: 0.5em; color: var(--terra); }
h3 { font-size: 22px; font-weight: 600; margin: 1em 0 0.4em 0; color: var(--olive-dark); }
h4 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin: 1em 0 0.3em 0; color: var(--terra-dark); font-family: 'Inter', sans-serif; }

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 26px; }
}

p { margin-bottom: 0.9em; }
em { font-style: italic; }

/* ---------- Container ---------- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--grey-line);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .brand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.05em;
}

/* ---------- Hero ---------- */
.hero {
  padding: 50px 20px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.05;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .subhook {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 32px auto;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .hero { padding: 80px 40px 90px; }
  .hero .subhook { font-size: 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-primary {
  background: var(--terra);
  color: var(--cream) !important;
}
.btn-primary:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--olive);
  color: var(--cream) !important;
}
.btn-secondary:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-large { padding: 22px 44px; font-size: 19px; }
.btn-small { padding: 12px 24px; font-size: 14px; }

.btn-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
  font-style: italic;
}

/* ---------- Sections ---------- */
.section {
  padding: 60px 20px;
}
.section-cream-dark { background: var(--cream-dark); }
.section-terra { background: var(--terra); color: var(--cream); }
.section-terra h2, .section-terra h3 { color: var(--cream); }

@media (min-width: 768px) { .section { padding: 80px 40px; } }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--olive);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.checklist-cross li::before {
  content: "✕";
  background: var(--terra);
}

/* ---------- Cards ---------- */
.card {
  background: var(--cream);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-item {
  background: var(--cream);
  padding: 24px;
  border-radius: 8px;
  border-top: 4px solid var(--terra);
  box-shadow: var(--shadow-sm);
}
.feature-item .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
}
.feature-item h3 { margin-top: 8px; font-size: 19px; color: var(--ink); }
.feature-item p { font-size: 15px; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Bonus cards ---------- */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .bonus-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.bonus-card {
  background: var(--cream);
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.bonus-card .icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.bonus-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 4px 0;
}
.bonus-card .value {
  display: inline-block;
  font-size: 13px;
  color: var(--terra-dark);
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ---------- For who / not for who ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .split-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.split-card {
  padding: 28px;
  border-radius: 12px;
}
.split-card.yes { background: #EFF1E6; border-top: 4px solid var(--olive); }
.split-card.no { background: #F5E6E0; border-top: 4px solid var(--terra); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--cream);
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  border-left: 4px solid var(--terra);
}
.testimonial-card blockquote {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 16px;
}
.testimonial-card .author {
  font-size: 14px;
  color: var(--ink-soft);
}
.testimonial-card .author strong {
  display: block;
  color: var(--terra-dark);
  font-size: 15px;
  margin-bottom: 2px;
}
.testimonial-card .source {
  font-size: 12px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 6px;
}

/* ---------- Pricing block ---------- */
.pricing-block {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 28px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid var(--gold);
  margin: 40px auto;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
}
.pricing-block h3 {
  color: var(--cream);
  font-size: 22px;
  margin-bottom: 16px;
}
.pricing-block .price-old {
  text-decoration: line-through;
  color: var(--ink-faint);
  font-size: 24px;
  margin-bottom: 6px;
}
.pricing-block .price-new {
  font-family: 'Fraunces', serif;
  font-size: 64px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-block .price-currency {
  font-size: 14px;
  color: var(--cream);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.pricing-block ul.checklist {
  text-align: left;
  margin: 28px 0;
  font-size: 15px;
}
.pricing-block ul.checklist li::before {
  background: var(--gold);
  color: var(--ink);
}
.pricing-block .payment-methods {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 20px;
}

/* ---------- Guarantee box ---------- */
.guarantee {
  background: var(--cream);
  border: 2px solid var(--olive);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin: 32px auto;
  max-width: 540px;
}
.guarantee .badge {
  display: inline-block;
  font-size: 32px;
  background: var(--olive);
  color: var(--cream);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  line-height: 60px;
  margin-bottom: 12px;
}
.guarantee h3 {
  color: var(--olive-dark);
  margin: 8px 0;
  font-size: 22px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--cream);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  padding: 20px 24px;
  background: var(--cream);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--cream-dark); }
.faq-question::after {
  content: "+";
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--terra);
  font-weight: 700;
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px 24px;
}

/* ---------- CTA Final ---------- */
.cta-final {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--terra) 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--cream);
}
.cta-final h2 { color: var(--ink); }
.cta-final .paths {
  max-width: 640px;
  margin: 32px auto;
  text-align: left;
  background: rgba(31, 26, 21, 0.6);
  padding: 28px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
}
.cta-final .paths strong { color: var(--gold); }
.cta-final .paths p { margin-bottom: 14px; }
.cta-final .paths p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.site-footer a { color: var(--gold); }
.site-footer .legal {
  max-width: 700px;
  margin: 12px auto;
  font-size: 11px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- Disclaimer Resolución 446/2025 ---------- */
.legal-disclaimer {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-disclaimer a { color: var(--gold); text-decoration: underline; }

/* ============================================================== */
/* QUIZ FUNNEL                                                    */
/* ============================================================== */

.quiz-page {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-progress {
  width: 100%;
  max-width: 480px;
  margin-bottom: 32px;
}
.quiz-progress-bar {
  height: 6px;
  background: var(--cream-darker);
  border-radius: 100px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--terra);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 100px;
}
.quiz-progress-label {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.quiz-step {
  width: 100%;
  max-width: 540px;
  display: none;
  animation: fadeInUp 0.5s ease;
}
.quiz-step.active { display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step h2 {
  font-size: 26px;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.2;
}
.quiz-step .quiz-q-num {
  text-align: center;
  font-size: 12px;
  color: var(--terra);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.quiz-step p.intro {
  font-size: 16px;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.quiz-option {
  background: var(--cream);
  border: 2px solid var(--cream-darker);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--terra);
  background: var(--cream-dark);
  transform: translateY(-1px);
}
.quiz-option.selected {
  border-color: var(--terra);
  background: var(--terra);
  color: var(--cream);
}

@media (min-width: 768px) {
  .quiz-step h2 { font-size: 32px; }
  .quiz-step p.intro { font-size: 18px; }
  .quiz-option { font-size: 17px; padding: 22px 24px; }
}

/* Calculating step */
.quiz-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 20px;
}
.quiz-loader .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--cream-darker);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-loader-status {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  text-align: center;
  min-height: 28px;
}

/* Result step */
.quiz-result {
  text-align: center;
  padding: 24px 0;
}
.quiz-result .result-badge {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 16px;
}
.quiz-result h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--terra);
  line-height: 1.1;
}
.quiz-result .result-description {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  text-align: left;
  background: var(--cream);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--terra);
}
.quiz-result .result-description strong { color: var(--ink); }

@media (min-width: 768px) {
  .quiz-result h2 { font-size: 42px; }
  .quiz-result .result-description { font-size: 18px; padding: 32px; }
}

/* ---------- Block utilities ---------- */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.lead { font-family: 'Fraunces', serif; font-style: italic; font-size: 19px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Sticky CTA bar (mobile only) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--cream);
  border-top: 1px solid var(--grey-line);
  box-shadow: 0 -4px 16px rgba(31, 26, 21, 0.1);
  z-index: 40;
  display: block;
}
.sticky-cta .btn { width: 100%; padding: 14px; font-size: 15px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
.with-sticky-cta { padding-bottom: 80px; }
@media (min-width: 768px) { .with-sticky-cta { padding-bottom: 0; } }

/* ---------- Stats row (in pricing or hero) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 540px;
  margin: 32px auto;
}
.stat-box {
  text-align: center;
  padding: 16px 8px;
  background: var(--cream-dark);
  border-radius: 8px;
}
.stat-box .figure {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
}
.stat-box .label {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}
@media (min-width: 768px) {
  .stat-box .figure { font-size: 32px; }
  .stat-box .label { font-size: 12px; }
}

/* Quote big */
.big-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  text-align: center;
  max-width: 720px;
  margin: 32px auto;
  padding: 24px 20px;
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  color: var(--ink);
  line-height: 1.4;
}
.big-quote .author {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-top: 14px;
  font-weight: 700;
}
@media (min-width: 768px) { .big-quote { font-size: 26px; padding: 32px 20px; } }

/* Hide on mobile */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }
.show-mobile { display: block; }
@media (min-width: 768px) { .show-mobile { display: none; } }
