:root {
  --bg: #FFF8F0;
  --card: #FFFFFF;
  --ink: #2B2118;
  --muted: #7A6A5C;
  --line: #F0E2D2;
  --primary: #E8692C;
  --primary-dark: #C9531B;
  --primary-soft: #FDE9DC;
  --green: #2F8F5B;
  --green-soft: #E3F4EA;
  --yellow: #E9A422;
  --yellow-soft: #FDF2D8;
  --red: #D9443A;
  --red-soft: #FBE3E1;
  --radius: 18px;
  --shadow: 0 6px 22px rgba(120, 72, 30, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; cursor: pointer; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(6px);
}
.topbar[hidden] { display: none; }
.back-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; flex-shrink: 0;
}
.progress-wrap { flex: 1; }
.progress-track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #F39A4E); border-radius: 99px; transition: width .35s ease; }
.brand-mini { font-size: 20px; }

/* ---------- screens ---------- */
.screen { display: none; padding: 8px 16px 32px; }
.screen.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- intro ---------- */
.intro { text-align: center; padding-top: 18px; }
.logo { font-weight: 900; font-size: 20px; color: var(--primary-dark); letter-spacing: -0.3px; }
.logo-paw { margin-right: 2px; }
.pill {
  display: inline-block; margin-top: 14px; padding: 6px 12px;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 99px; font-weight: 800; font-size: 13px;
}
.intro-title { font-size: 28px; line-height: 1.15; font-weight: 900; margin: 14px 0 10px; letter-spacing: -0.5px; }
.hl { color: var(--primary); }
.intro-sub { color: var(--muted); margin: 0 auto 20px; max-width: 400px; }
.intro-ask { font-weight: 800; font-size: 18px; margin: 0 0 12px; }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease;
}
.size-card:hover { border-color: var(--primary); }
.size-card:active { transform: scale(.97); }
.size-card strong { font-size: 17px; font-weight: 800; }
.size-card small { color: var(--muted); font-size: 13px; }
.size-emoji { line-height: 1; display: block; height: 56px; display: flex; align-items: flex-end; }
.s1 { font-size: 30px; } .s2 { font-size: 38px; } .s3 { font-size: 46px; } .s4 { font-size: 54px; }
.trust-row { list-style: none; padding: 0; margin: 20px 0 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--green); font-weight: 800; }
.disclaimer { text-align: center; font-size: 12px; color: var(--muted); margin: 28px 0 0; }

/* ---------- question ---------- */
.question-slide { transition: opacity .22s ease, transform .22s ease; }
.question-slide.out { opacity: 0; transform: translateX(-24px); }
.question-slide.in-start { opacity: 0; transform: translateX(24px); }
.q-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .6px; margin-top: 10px; }
.q-title { font-size: 23px; line-height: 1.22; font-weight: 900; margin: 8px 0 6px; letter-spacing: -0.3px; }
.q-help { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  padding: 14px 14px; font-size: 16px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(120, 72, 30, .06);
  transition: border-color .12s ease, background .12s ease, transform .1s ease;
}
.option:active { transform: scale(.985); }
.option .o-emoji { font-size: 24px; width: 32px; text-align: center; flex-shrink: 0; }
.option .o-label { flex: 1; }
.option .o-sub { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.option .o-check {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; color: transparent; background: #fff;
}
.option.round .o-check { border-radius: 50%; }
.option.selected { border-color: var(--primary); background: var(--primary-soft); }
.option.selected .o-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.option.correct { border-color: var(--green); background: var(--green-soft); }
.option.wrong { border-color: var(--red); background: var(--red-soft); }

.text-input {
  width: 100%; font: inherit; font-size: 20px; font-weight: 800; text-align: center;
  padding: 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  margin-top: 16px; outline: none;
}
.text-input:focus { border-color: var(--primary); }
.link-skip { display: block; margin: 14px auto 0; background: none; border: none; color: var(--muted); text-decoration: underline; font-size: 14px; }

.weight-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; margin-top: 16px; text-align: center; }
.weight-value { font-size: 52px; font-weight: 900; line-height: 1; color: var(--primary-dark); }
.weight-value small { font-size: 20px; color: var(--muted); font-weight: 800; }
.weight-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.step-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 22px; font-weight: 900; flex-shrink: 0; }
input[type=range] { flex: 1; accent-color: var(--primary); height: 28px; }

.info-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; margin-top: 18px; }
.info-emoji { font-size: 44px; line-height: 1; }
.info-card h3 { font-size: 21px; line-height: 1.25; margin: 12px 0 8px; font-weight: 900; }
.info-card p { margin: 0 0 10px; color: #4a3d31; }
.transition-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.transition-steps div { border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 800; }
.transition-steps b { display: block; font-size: 15px; }

.feedback { margin-top: 14px; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.feedback.good { background: var(--green-soft); color: #1f6440; }
.feedback.bad { background: var(--yellow-soft); color: #7a5410; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 16px; padding: 17px 20px; font-size: 17px; font-weight: 900;
  transition: transform .1s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(232, 105, 44, .35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; box-shadow: none; pointer-events: none; }
.q-actions { margin-top: 20px; }

/* ---------- loading ---------- */
.loading { text-align: center; padding-top: 48px; }
.bowl { font-size: 64px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.loading-title { font-size: 22px; font-weight: 900; margin: 12px 0 18px; }
.loading-track { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.loading-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #F39A4E); transition: width .2s linear; }
.loading-pct { display: block; margin-top: 8px; font-weight: 900; color: var(--primary-dark); }
.loading-steps { list-style: none; padding: 0; margin: 24px 0 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.loading-steps li { background: var(--card); border-radius: 14px; padding: 12px 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; opacity: .45; transition: opacity .3s ease; }
.loading-steps li.done { opacity: 1; }
.loading-steps li .ls-icon { width: 22px; text-align: center; }

/* ---------- result ---------- */
.reserve-bar { position: sticky; top: 0; z-index: 9; margin: 0 -16px; background: var(--ink); color: #fff; text-align: center; padding: 9px 12px; font-size: 14px; font-weight: 700; }
.reserve-bar strong { color: #FFC08F; font-variant-numeric: tabular-nums; }
.result { padding-top: 16px; }
.r-tag { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 900; font-size: 13px; padding: 6px 12px; border-radius: 99px; }
.r-title { font-size: 26px; line-height: 1.18; font-weight: 900; margin: 12px 0 14px; letter-spacing: -0.4px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-grid div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.profile-grid span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.profile-grid strong { font-size: 15px; }
.portion { text-align: center; }
.portion-num { font-size: 36px; font-weight: 900; color: var(--primary-dark); line-height: 1.1; }
.portion-num small { font-size: 16px; color: var(--muted); }
.portion p { margin: 6px 0 0; color: #4a3d31; }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px !important; }
.semaforo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.semaforo div { border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 13px; font-weight: 700; }
.semaforo b { display: block; font-size: 14px; margin-bottom: 4px; }
.sem-g { background: var(--green-soft); color: #1f6440; }
.sem-y { background: var(--yellow-soft); color: #7a5410; }
.sem-r { background: var(--red-soft); color: #8e2a22; }
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .pl-icon { font-size: 20px; width: 26px; flex-shrink: 0; text-align: center; }

.offer { border: 3px solid var(--primary); position: relative; padding-top: 26px; }
.offer-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-weight: 900; font-size: 13px; padding: 5px 14px; border-radius: 99px; white-space: nowrap; }
.mock { background: linear-gradient(135deg, #F7B27B, #E8692C); border-radius: 16px; padding: 18px; color: #fff; display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.mock-book { width: 74px; height: 96px; background: #fff; border-radius: 6px 10px 10px 6px; box-shadow: 4px 6px 0 rgba(0,0,0,.15); display: grid; place-items: center; font-size: 34px; flex-shrink: 0; border-left: 7px solid #2F8F5B; }
.mock h4 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.15; }
.mock p { margin: 4px 0 0; font-size: 13px; opacity: .95; }
.includes { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.includes .ok { color: var(--green); font-weight: 900; flex-shrink: 0; }
.includes .bonus-tag { display: inline-block; background: var(--yellow-soft); color: #7a5410; font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 6px; margin-right: 4px; vertical-align: 1px; }
.price-box { text-align: center; background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 700; }
.price-now { font-size: 40px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.price-note { font-size: 13px; color: var(--muted); font-weight: 700; }
.secure-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.guarantee { display: flex; gap: 12px; align-items: center; }
.guarantee .g-seal { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 12px; line-height: 1.05; flex-shrink: 0; }
.guarantee p { margin: 0; font-size: 14px; color: #4a3d31; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 900; color: var(--primary); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 8px 0 0; color: #4a3d31; font-size: 15px; }

.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,248,240,0), var(--bg) 35%); max-width: 480px; margin: 0 auto; }
.sticky-cta[hidden] { display: none; }
.result-bottom-space { height: 84px; }

@media (min-width: 600px) {
  .app { padding-top: 12px; }
  .intro-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- capa: grilla de razas ---------- */
.intro-ask em { font-style: normal; color: var(--primary-dark); font-size: 15px; }
.breed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.breed-card {
  background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 0 0 8px;
  overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 3px 10px rgba(120, 72, 30, .08); transition: transform .12s ease, border-color .12s ease;
}
.breed-card:hover { border-color: var(--primary); }
.breed-card:active { transform: scale(.97); }
.breed-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--line); }
.breed-card span { font-size: 13px; font-weight: 800; line-height: 1.15; padding: 0 4px; }
.breed-card .other { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 40px; background: var(--primary-soft); }

/* ---------- pantallas de conciencia ---------- */
.q-pre { font-weight: 800; color: var(--muted); font-style: italic; margin: 10px 0 0; font-size: 15px; }
.q-note { background: var(--green-soft); color: #1f6440; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; margin: 10px 0 0; }
.news { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 16px; }
.news-head { background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .5px; padding: 8px 14px; text-transform: uppercase; }
.news-body { padding: 16px; }
.news-body h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; font-weight: 900; }
.news-body p { margin: 0 0 10px; color: #4a3d31; }
.news-body ol { margin: 6px 0 0; padding-left: 20px; font-weight: 800; }
.news-body li { margin-bottom: 4px; }
.empathy { text-align: center; }
.empathy .big { font-size: 56px; line-height: 1; }
.empathy h3 { font-size: 22px; }
.empathy .accent { color: var(--primary-dark); font-weight: 900; font-size: 18px; margin-top: 8px; }

/* ---------- análisis de perfil ---------- */
.analysis { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.an-row { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; }
.an-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 800; }
.an-top b { font-size: 20px; color: var(--primary-dark); }
.an-bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.an-fill { height: 100%; width: 0; border-radius: 99px; transition: width 1.1s ease; }
.an-row small { color: var(--muted); font-weight: 700; }
.loading-sub { color: var(--muted); margin: -8px 0 16px; font-weight: 700; }

/* ---------- página de ventas ---------- */
.hero-sub { color: #4a3d31; margin: 0 0 16px; font-size: 16px; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.profile-head img, .profile-head .ph-emoji { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-soft); flex-shrink: 0; }
.profile-head .ph-emoji { display: grid; place-items: center; font-size: 32px; background: var(--primary-soft); }
.profile-head h3 { margin: 0; }
.profile-head small { color: var(--muted); font-weight: 700; }
.sec-title { font-size: 22px; line-height: 1.2; font-weight: 900; margin: 26px 0 12px; letter-spacing: -0.3px; }
.sec-p { margin: 0 0 12px; color: #4a3d31; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: '✓'; color: var(--green); font-weight: 900; flex-shrink: 0; }
.pillars { display: flex; flex-direction: column; gap: 12px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; }
.pillar-num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.pillar h4 { margin: 2px 0 4px; font-size: 17px; font-weight: 900; }
.pillar p { margin: 0; color: #4a3d31; font-size: 15px; }
.gets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.gets li { display: flex; gap: 10px; align-items: flex-start; }
.gets li .g-ico { flex-shrink: 0; }
.bonus { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px dashed var(--line); padding: 12px 0; }
.bonus:last-child { border-bottom: none; }
.bonus-ico { font-size: 30px; flex-shrink: 0; }
.bonus h4 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.bonus p { margin: 0 0 4px; font-size: 14px; color: #4a3d31; }
.bonus .b-price { font-size: 13px; font-weight: 800; }
.bonus .b-price s { color: var(--muted); }
.bonus .b-price b { color: var(--green); }
.fx-note { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.final-cta { text-align: center; background: var(--ink); color: #fff; }
.final-cta h3 { color: #fff; font-size: 21px; }
.final-cta p { color: #e9dccd; margin: 0 0 14px; }
