/* CarniDiet — estilos del quiz (copia del original) */
:root {
  --maroon: #6c1313;
  --maroon-deep: #4d0d0d;
  --gold: #e1a243;
  --cream: #fdf9f5;
  --surface: #f6f0ee;
  --surface-2: #f7f3f2;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --sel-bg: #fbe9e9;
  --green: #4f8a5b;
  --red: #c0453a;
  --amber-bg: #fdf3e4;
  --amber-bd: #e9c27c;
  --ok-bg: #f1f8ef;
  --ok-bd: #9cc596;
  --bad-bg: #fdf0ef;
  --bad-bd: #d79a95;
  --bmi-blue: #6aa3e8;
  --bmi-green: #5fae6e;
  --bmi-yellow: #e8c54a;
  --bmi-red: #d9534f;
  --col: 360px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #fff; color: var(--ink); overflow-x: hidden; }
body { font-family: 'Manrope', system-ui, sans-serif; font-size: 16px; min-height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--maroon); height: 56px; }
.hdr-in { max-width: var(--col); margin: 0 auto; height: 100%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px; }
.hdr-title { font-family: 'Sora', sans-serif; font-weight: 700; color: #fff; font-size: 17px; }
.hdr-back { position: absolute; left: 4px; top: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; opacity: .85; transition: opacity .2s; }
.hdr-back img { width: 18px; height: 18px; filter: brightness(0) invert(1); transform: rotate(-90deg); }
.hdr-back[hidden] { display: none; }
.prog { display: flex; gap: 6px; width: 100%; margin-top: 7px; }
.prog span { flex: 1; height: 3px; background: rgba(255,255,255,.9); border-radius: 2px; overflow: hidden; position: relative; }
.prog span i { position: absolute; inset: 0; width: 0; background: var(--gold); transition: width .45s ease; }

/* Contenedor de pantalla */
.app { max-width: var(--col); margin: 0 auto; padding: 22px 16px 120px; }
.screen { animation: enter .35s ease both; }
.screen.leaving { animation: leave .2s ease both; }
@keyframes enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateX(-18px); } }
.center-v { min-height: calc(100vh - 56px - 160px); display: flex; flex-direction: column; justify-content: center; }

h1.q { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 22px; line-height: 1.25; text-align: center; margin: 0 0 8px; }
.sub { text-align: center; font-size: 14px; color: var(--ink); margin: 0 0 16px; }
.quote { text-align: center; font-size: 13px; color: var(--ink); margin: 0 0 16px; }
.mt { margin-top: 18px; }

/* Género */
.gender { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.gender button { width: 46%; background: var(--surface); border-radius: 10px; padding: 8px 8px 10px; transition: transform .15s, box-shadow .2s; }
.gender button:active { transform: scale(.97); }
.gender button:hover { box-shadow: 0 0 0 2px var(--maroon) inset; }
.gender img { border-radius: 8px; aspect-ratio: 1 / 1.25; object-fit: cover; width: 100%; background: #eee; }
.gender span { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; }

/* Opciones */
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 14px; background: var(--surface); border-radius: 8px; text-align: left; font-size: 14px; font-weight: 500; border: 1.5px solid transparent; transition: background .2s, border-color .2s, transform .12s; }
.opt:active { transform: scale(.985); }
.opt .em { font-size: 18px; width: 22px; text-align: center; }
.opt .lb { flex: 1; }
.opt .car { width: 16px; height: 16px; opacity: .6; transform: rotate(90deg); }
.opt.on { background: var(--sel-bg); border-color: var(--maroon); }
.chk { width: 18px; height: 18px; border: 1.5px solid #9a9a9a; border-radius: 3px; display: flex; align-items: center; justify-content: center; flex: none; background: #fff; transition: background .15s, border-color .15s; }
.opt.on .chk, .zone.on .chk { background: var(--maroon); border-color: var(--maroon); }
.chk img { width: 12px; height: 12px; opacity: 0; }
.opt.on .chk img, .zone.on .chk img { opacity: 1; }
.otra-wrap { display: flex; flex-direction: column; gap: 0; }
.otra-in { margin: 0 10px 10px; padding: 10px 12px; border-radius: 6px; border: 1px solid #ddd; font: inherit; font-size: 13px; width: calc(100% - 20px); }
.opt-box { background: var(--surface); border-radius: 8px; border: 1.5px solid transparent; }
.opt-box.on { background: var(--sel-bg); border-color: var(--maroon); }
.opt-box .opt { background: transparent; border: 0; }
.aviso { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; background: var(--amber-bg); border: 1px solid var(--amber-bd); border-radius: 8px; font-size: 13px; animation: enter .3s ease both; }

/* Botón continuar */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px 16px 28px; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); z-index: 15; }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 292px; margin: 0 auto; height: 52px; background: var(--maroon); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; transition: opacity .2s, transform .12s; }
.cta img { width: 16px; height: 16px; filter: brightness(0) invert(1); transform: rotate(90deg); }
.cta:active { transform: scale(.98); }
.cta[disabled] { opacity: .4; cursor: default; }
.skip-link { display: block; margin: 10px auto 0; font-size: 12px; text-decoration: underline; color: var(--ink); }

/* Escalas / sliders */
.scale { margin-top: 26px; text-align: center; }
.scale .big-em { font-size: 34px; margin: 26px 0 16px; transition: transform .2s; }
.track { position: relative; height: 32px; margin: 0 8px; touch-action: none; cursor: pointer; }
.track .bar { position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 3px; background: #eee; }
.track .fill { position: absolute; left: 0; top: 13px; height: 6px; border-radius: 3px; background: var(--gold); }
.track .fill.grad { background: linear-gradient(90deg, #b8d86b, var(--gold)); }
.track .thumb { position: absolute; top: 4px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(225,162,67,.35); transition: box-shadow .2s; }
.track.drag .thumb { box-shadow: 0 0 0 7px rgba(225,162,67,.3); }
.ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink); margin: 6px 0 0; }
.ends4 { display: flex; justify-content: space-between; font-size: 11px; margin-top: 6px; }
.ends4 span { flex: 1; text-align: center; }
.ends4 span:first-child { text-align: left; } .ends4 span:last-child { text-align: right; }
.val { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 22px; margin-top: 12px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.fb { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--surface); border-radius: 8px; padding: 14px; margin-top: 18px; font-size: 13px; }
.fb b { font-size: 13px; }

.circ { width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--maroon); overflow: hidden; background: #fff; }
.circ img { width: 100%; height: 100%; object-fit: cover; }

/* Interstitials */
.inter { background: var(--surface-2); border-radius: 12px; padding: 24px 20px; }
.inter h2 { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 20px; line-height: 1.25; margin: 14px 0 10px; }
.inter p { font-size: 14px; margin: 0; line-height: 1.45; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--maroon); margin-left: -8px; object-fit: cover; background: #ddd; }
.avatars img:first-child { margin-left: 0; }
.hero-c { width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--maroon); overflow: hidden; }
.hero-c img { width: 100%; height: 100%; object-fit: cover; }
.review { background: #fff; border-radius: 8px; padding: 12px; margin-top: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .who img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.review .who b { font-size: 13px; color: var(--maroon); }
.stars { display: flex; gap: 2px; margin-top: 2px; }
.stars img, .review .who .stars img { width: 13px; height: 13px; border-radius: 0; }
.review p { font-size: 13px; margin-top: 10px; }
.timer-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 54px; width: 292px; height: 4px; background: #e8e8e8; border-radius: 2px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.timer-skip { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; font-size: 12px; text-decoration: underline; }
.icons4 { display: flex; justify-content: space-around; margin-top: 18px; }
.icons4 div { text-align: center; font-size: 13px; }
.icons4 span { display: block; font-size: 24px; margin-bottom: 6px; }

/* Explainer */
.explain { position: relative; width: 100%; max-width: 300px; margin: 18px auto; aspect-ratio: 1; }
.explain .main { position: absolute; inset: 4%; overflow: hidden; }
.explain .main img { width: 100%; height: 100%; object-fit: contain; }
.explain .fl { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.15); animation: float 3.5s ease-in-out infinite; }
.explain .fl img { width: 100%; height: 100%; object-fit: cover; }
.explain .fl.tl { left: 0; top: 8%; }
.explain .fl.tr { right: 0; top: 14%; animation-delay: .8s; }
.explain .fl.bt { right: 6%; bottom: 2%; animation-delay: 1.6s; }
@keyframes float { 50% { transform: translateY(-7px); } }
.hl { color: var(--maroon); font-weight: 500; text-align: center; font-size: 14px; }

/* Body scale */
.body-c { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--maroon); overflow: hidden; background: #fff; }
.body-c img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .25s; }

/* Mapa corporal */
.bmap { position: relative; margin-top: 18px; min-height: 340px; }
.bmap .fig { position: absolute; right: -100px; top: -24px; width: 330px; height: 330px; pointer-events: none; }
.bmap .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.zones { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.zone { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; background: var(--surface); border-radius: 8px; font-size: 14px; font-weight: 500; text-align: left; border: 1.5px solid transparent; }
.bmap-help { text-align: center; font-size: 12px; color: var(--muted); margin: 36px 0 10px; }

/* Swipe de comidas */
.swipe { text-align: center; margin-top: 22px; }
.stack { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.stack .card { position: absolute; inset: 0; border-radius: 50%; background: #fff; border: 2px solid var(--maroon); overflow: hidden; transition: transform .35s ease, opacity .35s ease; }
.stack .card img { width: 100%; height: 100%; object-fit: cover; }
.stack .card.back1 { transform: translate(10px, 4px); background: var(--red); border-color: var(--maroon); }
.stack .card.back2 { transform: translate(18px, 8px); background: #b74a43; }
.stack .card.out-l { transform: translateX(-140%) rotate(-18deg); opacity: 0; }
.stack .card.out-r { transform: translateX(140%) rotate(18deg); opacity: 0; }
.swipe .name { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 18px; margin: 22px 0 18px; }
.thumbs { display: flex; justify-content: center; gap: 36px; }
.thumbs button { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.15); transition: transform .12s; }
.thumbs button:active { transform: scale(.92); }
.thumbs .yes { background: var(--green); } .thumbs .no { background: var(--red); }
.thumbs svg { width: 24px; height: 24px; fill: #fff; }

/* Reloj */
.clock { position: relative; width: 120px; height: 120px; margin: 10px auto 18px; }
.clock img { position: absolute; inset: 0; width: 100%; height: 100%; }
.clock .hand { transition: transform .4s ease; transform-origin: 50% 50%; }

/* Altura */
.units { display: flex; justify-content: center; margin: 14px 0 6px; }
.units button { width: 54px; height: 32px; font-size: 12px; background: var(--surface); }
.units button:first-child { border-radius: 6px 0 0 6px; } .units button:last-child { border-radius: 0 6px 6px 0; }
.units button.on { background: var(--maroon); color: #fff; }
.ruler-wrap { display: flex; align-items: center; gap: 24px; justify-content: center; margin-top: 10px; }
.ruler { position: relative; width: 70px; height: 330px; touch-action: none; cursor: pointer; }
.ruler .line { position: absolute; left: 50px; top: 0; bottom: 0; width: 2px; background: #e6e6e6; }
.ruler .tick { position: absolute; left: 0; width: 40px; text-align: right; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.ruler .thumb { position: absolute; left: 40px; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(225,162,67,.35); }
.num-in { display: flex; align-items: baseline; gap: 8px; }
.num-in input { width: 92px; border: 0; border-bottom: 1.5px solid var(--gold); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 30px; color: var(--maroon); text-align: center; background: transparent; outline: none; }
.num-in input::placeholder { color: #cdbcbc; }
.num-in span { font-size: 13px; color: var(--muted); }
.nota { font-size: 12px; text-align: center; color: var(--ink); margin-top: 18px; line-height: 1.45; }

/* Peso */
.wt { text-align: center; }
.wt .num-in { justify-content: center; margin: 12px 0 6px; }
.bmi-scale { margin-top: 26px; position: relative; }
.bmi-scale .bars { display: flex; gap: 2px; height: 5px; border-radius: 3px; overflow: hidden; }
.bmi-scale .bars i { display: block; height: 100%; }
.bmi-scale .marker { position: absolute; top: -10px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #222; margin-left: -5px; transition: left .25s; }
.bmi-scale .lbls { display: flex; font-size: 9px; color: var(--muted); margin-top: 5px; }
.bmi-scale .lbls span { text-align: center; }
.wmsg { text-align: left; border-radius: 8px; padding: 12px 14px; margin-top: 16px; font-size: 12px; border: 1px solid; }
.wmsg b { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.wmsg b img { width: 18px; height: 18px; flex: none; }
.wmsg.bajo { background: var(--amber-bg); border-color: var(--amber-bd); }
.wmsg.normal { background: var(--ok-bg); border-color: var(--ok-bd); }
.wmsg.sobre, .wmsg.alto { background: var(--bad-bg); border-color: var(--bad-bd); }

/* Camino */
.path-imgs { display: flex; justify-content: center; margin-top: 18px; position: relative; height: 210px; }
.path-imgs img { height: 210px; width: auto; position: absolute; transition: opacity 1.2s ease; }
.chart { background: var(--surface-2); border-radius: 12px; padding: 14px; margin-top: -4px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart text { font-family: 'Manrope', sans-serif; }
.fade-in-late { opacity: 0; animation: fadein .5s ease forwards 1.6s; }
@keyframes fadein { to { opacity: 1; } }

/* Edad */
.age { text-align: center; }
.age .num-in { justify-content: center; margin-top: 18px; }
.age .small { font-size: 10px; color: var(--muted); margin-top: 6px; }
.age .t1 { font-size: 13px; margin-top: 20px; }
.age .t2 { font-size: 13px; color: var(--maroon); margin-top: 12px; }

/* Fecha (ruedas) */
.datecard { background: var(--surface-2); border-radius: 12px; padding: 18px 10px; }
.wheels { display: flex; position: relative; margin-top: 10px; }
.wheels::before { content: ''; position: absolute; left: 0; right: 0; top: 80px; height: 40px; background: rgba(108,19,19,.08); border-radius: 4px; pointer-events: none; }
.wheel { flex: 1; text-align: center; }
.wheel .hd { font-size: 10px; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.wheel .list { height: 200px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wheel .list::-webkit-scrollbar { display: none; }
.wheel .list div { height: 40px; line-height: 40px; scroll-snap-align: center; font-size: 15px; color: #999; }
.wheel .list div.sel { color: var(--maroon); font-weight: 700; font-size: 17px; }
.wheel .pad { height: 80px !important; }

/* Ritmo */
.pace-card { background: var(--surface-2); border-radius: 12px; padding: 18px 16px; }
.pace-card h2 { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 18px; text-align: center; margin: 0 0 10px; }
.pace-msg { border-radius: 8px; padding: 12px 14px; margin-top: 14px; font-size: 12px; border: 1px solid; }
.pace-msg b { display: flex; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pace-msg b img { width: 18px; height: 18px; }
.pace-msg.warn { background: var(--amber-bg); border-color: var(--amber-bd); }
.pace-msg.ok { background: var(--ok-bg); border-color: var(--ok-bd); }
.pace-txt { text-align: center; font-size: 13px; margin: 14px 0 10px; }
.pace-btns { display: flex; gap: 6px; }
.pace-btns button { flex: 1; height: 44px; background: var(--surface); border-radius: 6px; font-size: 12px; border: 1.5px solid transparent; }
.pace-btns button.on { background: var(--sel-bg); border-color: var(--maroon); }

/* Perfil */
.prof-fig { position: relative; width: 260px; height: 260px; margin: 6px auto 0; }
.prof-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.prof-area { text-align: center; font-size: 11px; color: var(--maroon); margin-top: 4px; }
.bmi-big { margin-top: 26px; position: relative; }
.bmi-big .row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.bmi-big .bars { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.bmi-big .bars i { flex: 1; }
.bmi-big .you { position: absolute; top: -6px; transform: translateX(-50%); background: var(--maroon); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.bmi-big .idl { position: absolute; top: 26px; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 9px; font-weight: 600; padding: 3px 6px; border-radius: 4px; display: flex; gap: 4px; align-items: center; }
.bmi-big .idl img { width: 10px; height: 10px; }
.prof-txt { font-size: 14px; margin: 40px 0 14px; }
.stats { border: 1px solid #eee; border-radius: 10px; padding: 4px 14px; }
.stats div { display: flex; justify-content: space-between; font-size: 13px; padding: 12px 0; border-bottom: 1px solid #f1f1f1; }
.stats div:last-child { border: 0; }
.stats b { color: var(--maroon); }
.prof-end { background: var(--surface-2); border-radius: 12px; padding: 18px; margin-top: 16px; }
.prof-end h3 { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 20px; margin: 0 0 10px; line-height: 1.3; }
.prof-end p { font-size: 13px; color: var(--muted); margin: 0; }
.prof-end p span { color: var(--maroon); }

/* Loader */
.loader { background: var(--surface-2); border-radius: 12px; padding: 22px 18px; }
.loader h2 { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 20px; margin: 14px 0 14px; }
.lstep { font-size: 13px; margin-bottom: 12px; }
.lstep .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lstep .ok { width: 20px; height: 20px; flex: none; opacity: 0; transform: scale(.4); transition: all .3s; }
.lstep.done .ok { opacity: 1; transform: none; }
.lstep .pb { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11px; }
.lstep .pb div { flex: 1; height: 5px; background: #e6e0de; border-radius: 3px; overflow: hidden; }
.lstep .pb i { display: block; height: 100%; width: 0; background: var(--maroon); }

/* Email */
.email-wrap { position: relative; min-height: 460px; display: flex; align-items: center; }
.email-card { background: var(--surface-2); border-radius: 12px; padding: 20px; width: 100%; position: relative; z-index: 1; }
.email-card h2 { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--maroon); font-size: 20px; margin: 0 0 6px; }
.email-card p { font-size: 13px; margin: 0 0 14px; }
.email-card input { width: 100%; height: 56px; border-radius: 8px; border: 1.5px solid var(--maroon); padding: 0 16px; font: inherit; color: var(--maroon); }
.email-card small { display: block; text-align: center; font-size: 10px; color: var(--muted); margin-top: 8px; }
.food-dot { position: absolute; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.15); overflow: hidden; animation: float 4s ease-in-out infinite; }
.food-dot img { width: 100%; height: 100%; object-fit: cover; }
