/* ============================================================
   ORDENA TU CASA EN 10 DÍAS — Demo
   Mobile first · paleta salvia / crema / coral / sol
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --sage:        #2f9e74;
  --sage-dark:   #1f7d5a;
  --sage-deep:   #155c43;
  --sage-soft:   #e2f5ec;
  --sage-soft-2: #c3ecd8;
  --cream:       #fbf3e7;
  --cream-2:     #fdf8ef;
  --white:       #ffffff;
  --coral:       #ff6f52;
  --coral-dark:  #ef5230;
  --coral-soft:  #ffe5dd;
  --sun:         #ffb43e;
  --sun-soft:    #fff0d6;
  --ink:         #2b2a26;
  --ink-soft:    #5f594f;
  --muted:       #938b7d;
  --line:        #ece2d2;
  --line-2:      #ddd2bd;

  --radius:    22px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(43,42,38,.06), 0 1px 3px rgba(43,42,38,.05);
  --shadow-md: 0 16px 38px -16px rgba(31,125,90,.32), 0 5px 14px rgba(43,42,38,.07);
  --shadow-lg: 0 34px 70px -22px rgba(31,125,90,.45), 0 10px 26px rgba(43,42,38,.10);
  --shadow-coral: 0 16px 36px -16px rgba(239,82,48,.55);

  --font: "Google Sans", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.3,1);
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream-2); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -0.015em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }

.hl { color: var(--sage-dark); }
.hl-coral { color: var(--coral-dark); }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 800; padding: 15px 24px; border-radius: 999px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); }
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--sage), var(--sage-dark)); box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--coral { color: #fff; background: linear-gradient(135deg, var(--coral), var(--coral-dark)); box-shadow: var(--shadow-coral); }
.btn--coral:hover { transform: translateY(-2px); }
.btn--coral:hover svg { transform: translateX(3px); }
.btn--lg { font-size: 16.5px; padding: 17px 30px; }
.btn--block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--sage-dark); background: var(--sage-soft); border: 1px solid var(--sage-soft-2); padding: 8px 15px; border-radius: 999px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(47,158,116,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,158,116,.5);} 70%{box-shadow:0 0 0 9px rgba(47,158,116,0);} 100%{box-shadow:0 0 0 0 rgba(47,158,116,0);} }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--cream); padding: 8px 13px; border-radius: 999px; }
.chip svg { width: 15px; height: 15px; color: var(--sage); }

/* ---------- Screens ---------- */
.screen { display: none; }
.screen.is-active { display: block; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   BIENVENIDA
   ============================================================ */
.welcome { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); overflow: hidden;
  background:
    radial-gradient(680px 420px at 50% -10%, rgba(47,158,116,.26), transparent 62%),
    radial-gradient(520px 360px at 100% 100%, rgba(255,111,82,.20), transparent 60%),
    radial-gradient(420px 320px at 0% 80%, rgba(255,180,62,.18), transparent 60%),
    var(--cream-2); }
.blob { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .5; pointer-events: none; }
.blob--a { width: 320px; height: 320px; top: -90px; right: -70px; background: radial-gradient(circle at 35% 35%, rgba(47,158,116,.5), transparent 70%); animation: blob 15s ease-in-out infinite; }
.blob--b { width: 280px; height: 280px; bottom: -90px; left: -60px; background: radial-gradient(circle at 50% 50%, rgba(255,111,82,.42), transparent 70%); animation: blob 18s ease-in-out infinite reverse; }
@keyframes blob { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(20px,-16px) scale(1.08);} 66%{transform:translate(-16px,14px) scale(.94);} }
.welcome-card { position: relative; z-index: 1; width: 100%; max-width: 470px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(26px, 7vw, 38px); text-align: center; animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.welcome-title { font-size: clamp(26px, 7vw, 34px); margin: 20px 0 0; line-height: 1.12; }
.welcome-text { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
.welcome-note { margin: 20px 0; display: flex; gap: 11px; align-items: flex-start; text-align: left; padding: 14px 16px; background: var(--sage-soft); border-radius: var(--radius-sm); }
.welcome-note svg { flex: none; width: 20px; height: 20px; color: var(--sage-dark); margin-top: 1px; }
.welcome-note span { font-size: 13.5px; color: var(--ink); font-weight: 600; }

/* ============================================================
   DIAGNÓSTICO
   ============================================================ */
.diag { min-height: 100vh; min-height: 100dvh; max-width: 540px; margin-inline: auto; padding: 18px 20px calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.diag-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 24px; }
.diag-back { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink-soft); }
.diag-back svg { width: 20px; height: 20px; }
.diag-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--sage-soft); overflow: hidden; }
.diag-bar-fill { display: block; height: 100%; width: 33%; border-radius: 999px; background: linear-gradient(90deg, var(--sage), var(--sage-dark)); transition: width .45s var(--ease); }
.diag-count { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 34px; text-align: right; }
.diag-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.diag-q { animation: fade .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.diag-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); }
.diag-title { font-size: clamp(22px, 6vw, 29px); margin: 10px 0 22px; }
.diag-options { display: grid; gap: 11px; }
.opt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--white); border: 2px solid var(--line); box-shadow: var(--shadow-sm); font-size: 15.5px; font-weight: 600; color: var(--ink); transition: border-color .2s var(--ease), transform .15s var(--ease), background .2s var(--ease); }
.opt:hover { transform: translateY(-2px); border-color: var(--sage-soft-2); }
.opt.sel { border-color: var(--sage); background: var(--sage-soft); }
.opt-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: all .2s var(--ease); }
.opt.sel .opt-tick { background: var(--sage); border-color: var(--sage); color: #fff; }
.opt-tick svg { width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: all .2s var(--ease); }
.opt.sel .opt-tick svg { opacity: 1; transform: none; }

.diag-result { text-align: center; animation: fade .5s var(--ease) both; }
.diag-result-ico { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); animation: pop .5s var(--ease) both; }
@keyframes pop { 0%{transform:scale(.6); opacity:0;} 60%{transform:scale(1.08);} 100%{transform:scale(1); opacity:1;} }
.diag-result-ico svg { width: 38px; height: 38px; }
.diag-result-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); }
.diag-result h2 { font-size: clamp(22px, 5.4vw, 28px); margin: 8px auto 14px; max-width: 420px; }
.diag-result p { font-size: 15.5px; color: var(--ink-soft); max-width: 400px; margin: 0 auto 26px; }

/* ============================================================
   APP / DEMO
   ============================================================ */
.appbar { position: sticky; top: 0; z-index: 40; background: rgba(253,248,239,.9); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.appbar-inner { max-width: 720px; margin-inline: auto; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--sage), var(--sage-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-size: 15.5px; font-weight: 800; line-height: 1; }
.brand-name small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.help-link { font-size: 13px; font-weight: 700; color: var(--sage-dark); text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--sage-soft); }
.help-link:hover { background: var(--sage-soft-2); }

.content { max-width: 720px; margin-inline: auto; padding: 20px 18px 30px; }
.content > section { margin-bottom: 22px; }

.sec-head { text-align: center; max-width: 540px; margin: 0 auto 22px; }
.sec-title { font-size: clamp(22px, 4.4vw, 30px); }
.sec-sub { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Panel parcial ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.panel-row { margin-top: 12px; display: flex; align-items: center; gap: 16px; }
.panel-ring { position: relative; width: 64px; height: 64px; flex: none; }
.panel-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--sage-soft); stroke-width: 3.4; }
.ring-fill { fill: none; stroke: var(--sage); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 87.7; transition: stroke-dashoffset .8s var(--ease); }
.panel-ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--sage-dark); }
.panel-msg h2 { font-size: 18px; }
.panel-msg p { margin-top: 5px; font-size: 13.5px; color: var(--ink-soft); }
.panel-days { margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pday { position: relative; border-radius: 12px; padding: 10px 6px; text-align: center; background: var(--cream); border: 1px solid var(--line); }
.pday.open { background: linear-gradient(150deg, var(--sage-soft), var(--white)); border-color: var(--sage-soft-2); }
.pday-n { font-size: 14px; font-weight: 800; color: var(--ink); }
.pday.locked .pday-n { color: var(--muted); }
.pday-ico { margin-top: 4px; height: 16px; display: grid; place-items: center; color: var(--sage-dark); }
.pday.locked .pday-ico { color: var(--muted); }
.pday-ico svg { width: 14px; height: 14px; }

/* ---------- Día 1 ---------- */
.day1 { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md); }
.day1-head { display: flex; align-items: center; gap: 14px; }
.day1-num { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sage), var(--sage-dark)); color: #fff; box-shadow: var(--shadow-sm); line-height: 1; }
.day1-num small { display: block; font-size: 8.5px; font-weight: 700; opacity: .85; letter-spacing: .08em; margin-bottom: 2px; }
.day1-num b { font-size: 22px; font-weight: 800; }
.day1-zone { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--coral-dark); }
.day1-title { font-size: clamp(20px, 5vw, 25px); margin-top: 3px; }
.day1-meta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.day1-objective { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.day1-objective b { color: var(--ink); }
.day1-track { margin-top: 18px; height: 9px; border-radius: 999px; background: var(--sage-soft); overflow: hidden; }
.day1-track-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--sage), var(--sun)); transition: width .5s var(--ease); }

.checklist { margin-top: 18px; display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 15px; font-weight: 600; color: var(--ink); transition: background .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease); }
.check:active { transform: scale(.99); }
.check.done { background: var(--sage-soft); border-color: var(--sage-soft-2); }
.check.done .check-text { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--sage); }
.check.bump { animation: ckbump .4s var(--ease); }
@keyframes ckbump { 0%{transform:scale(1);} 40%{transform:scale(1.025);} 100%{transform:scale(1);} }
.check-box { flex: none; width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line-2); display: grid; place-items: center; transition: all .2s var(--ease); }
.check.done .check-box { background: var(--sage); border-color: var(--sage); color: #fff; }
.check-box svg { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: all .2s var(--ease); }
.check.done .check-box svg { opacity: 1; transform: none; }

.microcopy { min-height: 22px; margin-top: 14px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--sage-dark); opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.microcopy.show { opacity: 1; transform: none; }

.day1-done { margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--sage), var(--sage-dark)); color: #fff; animation: fade .4s var(--ease) both; }
.day1-done-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); }
.day1-done-ico svg { width: 19px; height: 19px; }
.day1-done p { font-size: 14.5px; font-weight: 700; }
.day1-cta { margin-top: 18px; }

/* ---------- Locked ---------- */
.locked-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lcard { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.lcard::after { content: ""; position: absolute; inset: 0; background: rgba(251,243,231,.35); pointer-events: none; }
.lcard-lock { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--cream); color: var(--muted); z-index: 1; }
.lcard-lock svg { width: 14px; height: 14px; }
.lcard-day { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lcard-title { font-size: 15.5px; margin: 4px 0 6px; color: var(--ink); }
.lcard-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.lcard-tag { position: relative; z-index: 1; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--sage-dark); background: var(--sage-soft); padding: 5px 10px; border-radius: 999px; }
.lcard-tag svg { width: 12px; height: 12px; }

/* ---------- Comparativa ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-card { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare-card--free { background: var(--white); }
.compare-card--full { background: linear-gradient(160deg, var(--sage-soft), var(--white)); border-color: var(--sage-soft-2); }
.compare-tag { display: inline-flex; font-size: 12.5px; font-weight: 800; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.compare-tag--free { background: var(--cream); color: var(--ink-soft); }
.compare-tag--full { background: var(--sage); color: #fff; }
.compare-card ul { display: grid; gap: 10px; }
.compare-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); font-weight: 600; }
.compare-card li svg { flex: none; width: 18px; height: 18px; color: var(--sage-dark); margin-top: 1px; }
.compare-card li.muted { color: var(--muted); font-weight: 500; }
.compare-card li.muted svg { color: var(--coral-dark); }

/* ---------- CTA final ---------- */
.final { text-align: center; border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 52px) clamp(22px, 5vw, 44px); background: var(--cream); border: 1px solid var(--line); }
.final h2 { font-size: clamp(23px, 5vw, 34px); max-width: 520px; margin-inline: auto; }
.final p { margin: 14px auto 0; max-width: 460px; font-size: 15.5px; color: var(--ink-soft); }
.final-btn { margin-top: 24px; }
.final-micro { margin-top: 14px !important; font-size: 13px; color: var(--muted); }

/* ---------- Ayuda ---------- */
.help { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.help-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--coral-soft); color: var(--coral-dark); }
.help-ico svg { width: 22px; height: 22px; }
.help h3 { font-size: 16px; }
.help p { margin-top: 5px; font-size: 14px; color: var(--ink-soft); }
.help-cta { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 800; color: var(--sage-dark); text-decoration: none; }
.help-cta:hover { color: var(--sage); }

/* ---------- Sticky CTA mobile ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; gap: 12px; padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); background: rgba(253,248,239,.94); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 26px -12px rgba(43,42,38,.2); transform: translateY(130%); transition: transform .4s var(--ease); }
.sticky.show { transform: translateY(0); }
.sticky-info { line-height: 1.2; flex: none; }
.sticky-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.sticky-sub { font-size: 11px; color: var(--muted); }
.sticky .btn { margin-left: auto; padding: 12px 16px; font-size: 13.5px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 560px) { .panel-row { gap: 20px; } }
@media (max-width: 620px) {
  .locked-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sticky { display: flex; }
  .compare-grid { grid-template-columns: 1fr; }
  .panel-days { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .pday { padding: 9px 3px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
