/* ChefQuest 2.0 — Palette Spectrum Pastel: energía suave, contraste real, jerarquía sobria. */
:root{
  --forest:#263953;--dark:#202d43;--ink:#29334d;--cream:#fafbff;--paper:#fff;
  --sage:#a8f1d7;--mint:#a8f1d7;--gold:#fff59d;--burnt:#9372d4;
  --muted:#64718b;--line:#e8ebf5;
  --yellow:#fff59d;--mint-live:#aaf4d8;--sky:#b6e9f7;--blue:#a8c8ff;--lilac:#d9bfff;
  --shadow:0 2px 8px rgba(43,62,101,.025),0 18px 42px -27px rgba(38,58,99,.25);
}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse 50% 350px at 72% -80px,rgba(182,233,247,.25),transparent),var(--cream);color:var(--ink)}
h1,h2,h3{color:#28354f}
h1{letter-spacing:-.06em}p{line-height:1.62}
:focus-visible{outline:3px solid #5a8de1!important;outline-offset:3px!important}
::selection{background:var(--lilac);color:#28354f}
a:hover{transition:color .18s ease}
.side{border-right:1px solid #e5ecfa;background:linear-gradient(175deg,#fff 0%,#fff 72%,#f8f6ff 100%)}
.brand{color:#2a3854}.brand span em{color:#7057b3;font-style:normal}
.brand img{box-shadow:0 7px 20px -12px #436ab7}
.side-section{color:#8592ad}
.nav-link{color:#62718b}.nav-link:hover{background:#f2f7ff;color:#263953}
.nav-link.active{background:#c8f8e8;color:#203b42;box-shadow:inset 0 0 0 1px #a9ead6}
.nav-link.active .nav-ico{color:#274e69}
.side-cta{background:linear-gradient(155deg,#e5d1ff 0%,#f1e7ff 47%,#fff6b9 100%);border:1px solid #ddd1f2;color:#34314e}
.side-cta .emoji{color:#7660b4;background:rgba(255,255,255,.8)}
.side-cta h3{color:#34314e}.side-cta p{color:#5a5476}
.side-cta a{background:#273a55;color:#fff;border-color:#273a55;border-radius:14px;min-height:44px}
.top{background:rgba(255,255,255,.83);border-bottom:1px solid #ebeff8;backdrop-filter:blur(18px) saturate(140%)}
.top small{color:#74829e}.top-title{color:#293854}
.top-right{gap:10px}.account-chip{font-size:.72rem;font-weight:760;color:#2a5b52;background:#cbf8e8;padding:8px 10px;border-radius:100px;white-space:nowrap}
.xp-chip{background:#fff59d;border:1px solid #f9e88f;color:#42425b;padding:9px 13px}
.avatar{background:#d9bfff;border-color:white;color:#4e3b79;box-shadow:0 0 0 1px #c8b0f5}
.content{max-width:1460px}
.eyebrow{color:#6864b7;font-weight:850;letter-spacing:.14em}
.section-head p,.muted{color:#73809b}
.btn{background:#293a58;border:1px solid transparent;color:#fff;border-radius:15px;box-shadow:0 13px 25px -20px #344d91;font-weight:760;min-height:44px;transition:transform .2s,background .2s,box-shadow .2s}
.btn:hover:not(:disabled){background:#192b49;transform:translateY(-2px);box-shadow:0 17px 30px -17px #293958}
.btn.gold{background:#fff19d;color:#343a4f;border:1px solid #eee197}.btn.gold:hover:not(:disabled){background:#ffe979;color:#29344a}
.btn.mint,.btn.light{background:#acf2da;color:#243b48;border:1px solid #9ae9cf;box-shadow:none}
.btn.mint:hover:not(:disabled),.btn.light:hover:not(:disabled){background:#8cebc9}
.btn.white,.btn.outline{color:#344668;border:1px solid #dfe8fa;background:#fff;box-shadow:none}
.btn.white:hover:not(:disabled),.btn.outline:hover:not(:disabled){background:#f6f8ff}
.btn.danger{color:#9d415c;background:#fff0f3;border-color:#f8dce4}
.btn.small{min-height:43px}
.chip{color:#5f6b83;border-color:#e6eaf7;background:white}.chip.active{background:#bbf4e0;border:1px solid #9ce9cf;color:#284954;box-shadow:0 4px 14px -13px #306278}
.chip:hover{background:#f0f6ff}
.searchbar{border-color:#e0e9f7;box-shadow:0 10px 25px -25px #41629a}.searchbar:focus-within{outline:2px solid var(--blue)}
.card{border-color:#e7ecf7;background:#fff;box-shadow:var(--shadow)}
.recipe-card:hover{box-shadow:0 19px 48px -27px rgba(48,73,129,.34)}
.recipe-image{background:#f2f6fe}.recipe-image .tag{background:rgba(255,255,255,.95);color:#4e5983}
.fav{color:#9670ce;border-color:#eee7fc}
.recipe-info h3{color:#2b3851}.recipe-info p{color:#72809a}.recipe-meta{color:#70819a}.recipe-meta .dot{background:#bbc9e1}
.tag{background:#eaf6ff;color:#4d6b99}.tag.gold{background:#fff5c2;color:#615831}.tag.sage{background:#d2f7e9;color:#2f665b}.tag.burnt{background:#ead9ff;color:#624892}
.hero{border:1px solid #caefe4;background:#d6f8ec;box-shadow:0 19px 38px -32px rgba(35,102,119,.5)}
.hero:after{background:linear-gradient(90deg,#d7f9ed 0%,#d7f9ed 41%,rgba(215,249,237,.91) 55%,transparent 78%)}
.hero-body{position:relative}.hero .eyebrow{color:#50649a}.hero-dot{background:#9471d9;box-shadow:0 0 0 5px rgba(219,191,255,.48)}
.hero h1{color:#243a57}.hero h1 em{color:#6a50af}.hero p{color:#52667c}
.stat{border-color:#e3ebf8}.stat-ico{background:#fff59d;color:#3d5275}
.stat:nth-child(2) .stat-ico{background:#b5eafa;color:#395e88}.stat:nth-child(3) .stat-ico{background:#dec7ff;color:#604793}
.stat strong{color:#2b3a57}.stat span{color:#72819b}
.quick-panel{display:flex;gap:16px;align-items:center;border-radius:20px;background:linear-gradient(105deg,#e5edff,#f1e6ff 57%,#fdf1bd);margin-top:17px;padding:16px 20px;border:1px solid #e1e5fa}
.quick-panel .quick-ico{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:14px;background:#fff;color:#6c59b6;font-size:1.3rem}
.quick-panel>div:nth-child(2){display:flex;flex-direction:column;flex:1;gap:3px}
.quick-panel b{color:#354364;font-size:.95rem}.quick-panel span{font-size:.8rem;color:#5c6b8c}
.icon-square{background:#decbff;color:#513e8f}
.detail-hero{border-color:#e4eefa}.ingredient input,.shopping-item input{accent-color:#6a79ce}
.count-selector{background:#e5f8f4}.count-selector button{color:#405a88}
.progress-track{background:#ecf0fa}.progress-track i{background:linear-gradient(90deg,#91e8ce,#95b9ff,#c0a1f5)}
.cook-step{border-color:#e7eefa}.cook-step .large-number{color:#e0ebff}.timer{background:#f1f4ff}.timer .digits{color:#3c4a77}
.challenge .badge-ico{background:#dec6ff}.challenge:nth-child(2n) .badge-ico{background:#c9f7e6}.challenge:nth-child(3n) .badge-ico{background:#fff4b8}
.challenge.done{background:#f2fff9;border-color:#afedda}.challenge.done:after{background:#d1f9e6;color:#28544d}
.mesa-feature{background:linear-gradient(124deg,#eee1ff 0%,#e1f4ff 52%,#d7f7eb 100%);border:1px solid #dedaf5}
.mesa-feature h1{color:#2b3b5b}.mesa-feature h1 em{color:#7355b9!important}.mesa-feature p{color:#576882}
.share-link{background:#f3f6ff;border-color:#e0e7f8}.star.selected{background:#fff49e;color:#5a4b2e;border-color:#f5e783}
.fancy-number{color:#3e4f78}.aggregate .avg-item i{background:#9bbcff}
.notice{background:#ebf7ff;color:#496881}.notice.warning{background:#fff7ce;color:#685d38}
.footer-note{color:#939eb6}.toast{background:#2c3b5b;color:white}.dashboard-hero{background:linear-gradient(100deg,#dcf8e9,#ebebff,#fff7c8)}
.quick-panel a{white-space:nowrap}
.account-banner{margin:20px 0;padding:25px;border-radius:24px;border:1px solid #dcd3f8;background:linear-gradient(110deg,#e0d1ff,#e2efff 55%,#e4fdf4);display:flex;gap:20px;align-items:center}
.account-banner .account-symbol{font-size:2rem;display:grid;place-items:center;width:65px;height:65px;flex:none;border-radius:21px;background:rgba(255,255,255,.79);color:#7950bd}
.account-banner h3{font-size:1.25rem}.account-banner p{font-size:.89rem;color:#566888;margin-top:7px}
.account-connected{margin:18px 0 15px;background:#dcfbef;border:1px solid #b9f2db;border-radius:19px;padding:16px 18px;display:flex;gap:12px;align-items:center}
.account-connected strong{color:#2b5055}.account-connected p{font-size:.8rem;color:#55717d;margin-top:3px;overflow-wrap:anywhere}.account-connected .state-dot{height:10px;width:10px;border-radius:50%;background:#3ebf93;flex:none}
.account-connected>div{flex:1}
.organizer-teaser{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:26px;border-radius:24px;border:1px solid #dbe4ff;background:linear-gradient(110deg,#ddebff,#e4f9fb 60%,#ebddff)}
.organizer-teaser h3{font-size:1.5rem}.organizer-teaser p{color:#647494;font-size:.85rem;margin-top:7px}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e3e9f7;border-radius:27px;background:#fff;overflow:hidden;min-height:650px;box-shadow:var(--shadow)}
.auth-photo{position:relative;background:#c4f6e5;min-height:440px;overflow:hidden}.auth-photo>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.auth-photo:after{content:"";position:absolute;inset:36% 0 0;background:linear-gradient(0deg,rgba(34,44,78,.87),transparent)}
.auth-caption{position:absolute;z-index:1;left:clamp(24px,3vw,50px);right:clamp(24px,3vw,50px);bottom:34px;color:#fff}
.auth-caption span{font-size:.69rem;letter-spacing:.15em;font-weight:800}.auth-caption h2{color:#fff;line-height:1.1;font-size:clamp(1.75rem,3vw,2.7rem);margin:14px 0}.auth-caption p{color:#eff3ff;font-size:.9rem}
.auth-panel{display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,4vw,66px);max-width:550px;width:100%;margin:auto}
.auth-panel h1{font-size:clamp(2rem,3.2vw,3rem);margin-bottom:9px}.auth-panel>p{font-size:.9rem}
.auth-symbol{width:49px;height:49px;border-radius:16px;background:#e0cbff;color:#6642a9;display:grid;place-items:center;font-size:1.6rem;margin-bottom:19px}
.auth-switch{display:flex;background:#f2f4fc;padding:5px;border-radius:14px;margin:27px 0 18px}
.auth-switch a{width:50%;padding:11px 8px;border-radius:11px;text-align:center;font-size:.85rem;font-weight:740;color:#69758d}
.auth-switch a.active{color:#293a55;background:white;box-shadow:0 2px 8px -5px #48618b}
.form-stacked{display:flex;flex-direction:column;gap:17px;margin-top:20px}.form-stacked label{display:flex;flex-direction:column;gap:9px;color:#45516c;font-size:.83rem;font-weight:740}
.form-stacked input{width:100%;border:1px solid #dfe6f3;background:#fcfdff;min-height:49px;padding:12px 15px;border-radius:13px;color:#283854;outline:none}
.form-stacked input:focus{border-color:#829ae4;box-shadow:0 0 0 3px #e7eafa}
.auth-disclaimer{font-size:.76rem!important;line-height:1.6;color:#8a94a7;margin-top:18px}.auth-guest{text-align:center;color:#586bc0;font-size:.82rem;font-weight:700;margin-top:18px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.planning-header,.shopping-head{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;margin:24px 0 18px}
.planning-header h3{font-size:1.35rem}.planner-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:11px}
.plan-card{min-width:0;background:#fff;border:1px solid #e5e9f7;border-radius:18px;padding:9px;display:flex;flex-direction:column;gap:8px;min-height:249px;box-shadow:0 8px 28px -24px #4b6597}
.plan-card .day-label{font-size:.76rem;font-weight:850;padding:9px 9px;border-radius:10px;background:#fff4bb;color:#55506b}
.plan-1 .day-label,.plan-6 .day-label{background:#c6f5e6}.plan-2 .day-label{background:#bbeaf8}.plan-3 .day-label{background:#c6d9ff}.plan-4 .day-label{background:#e2d0ff}
.plan-card img{width:100%;height:77px;object-fit:cover;border-radius:9px}.plan-card h3{font-size:.78rem;line-height:1.3;letter-spacing:-.02em;min-height:32px}
.plan-placeholder{height:77px;display:grid;place-items:center;font-size:2rem;color:#8e9dc3;background:#f3f7fd;border-radius:10px}
.plan-card select{width:100%;max-width:100%;padding:9px 5px;border:1px solid #e4eafa;border-radius:9px;background:#fff;font-size:.72rem;color:#43516e}
.text-link{font-size:.69rem;color:#5369af;font-weight:790;text-align:left;padding:2px 0}
.shopping-head h2{font-size:1.6rem}.shopping-head p{font-size:.85rem;margin-top:7px}.list-count{display:inline-grid;place-items:center;padding:4px 9px;min-width:30px;border-radius:30px;font-size:.82rem;background:#c0f5e1;color:#2e5b5f;vertical-align:middle}
.shopping-board{padding:10px 19px}.shopping-item{display:flex;align-items:center;gap:13px;border-bottom:1px solid #edf0f8;padding:13px 8px}.shopping-item:last-child{border-bottom:0}
.shopping-item label{flex:1;display:flex;align-items:center;gap:12px;font-size:.9rem;font-weight:600;color:#34435f}.shopping-item label input{height:19px;width:19px;flex:none}
.shopping-item .shopping-qty{font-size:.8rem;color:#6f7e99;text-align:right}.shopping-item.done label span{text-decoration:line-through;color:#a2acc1}
.remove-item{font-size:1.5rem;color:#897ba7;border:0;background:#f1edfc;width:32px;height:32px;border-radius:10px;display:grid;place-items:center}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1170px){.planner-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:930px){.account-chip{display:none}}
@media(max-width:760px){.auth-layout{grid-template-columns:1fr}.auth-photo{min-height:235px}.auth-caption{bottom:19px}.auth-caption h2{font-size:1.6rem}.auth-panel{padding:27px 25px}.settings-grid{grid-template-columns:1fr}.planner-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){
  .hero-body{background:#d9f9ec}.hero:before{background-position:center 35%}.hero h1{font-size:2.15rem}
  .mobile-bar{background:rgba(255,255,255,.94);border-color:#e2eaf5}.mobile-bar a{color:#7f91aa}.mobile-bar a.active{background:#c5f7e8;color:#315168}
  .quick-panel{flex-wrap:wrap;gap:12px;padding:15px}.quick-panel .btn{width:100%}
  .account-banner{padding:18px;align-items:flex-start;gap:12px}.account-banner .account-symbol{width:43px;height:43px;font-size:1.4rem}.account-banner .pillrow{gap:7px}.account-banner .btn{font-size:.78rem;flex:1}
  .account-connected{flex-wrap:wrap}.account-connected .btn{width:100%}.organizer-teaser{display:block;padding:19px}.organizer-teaser .btn{margin-top:15px;width:100%}
  .planning-header,.shopping-head{align-items:stretch}.planner-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plan-card{min-height:230px}.plan-card img,.plan-placeholder{height:86px}
  .shopping-head .pillrow{width:100%}.shopping-head .pillrow .btn{flex:1;font-size:.73rem;padding:10px}
  .shopping-board{padding:6px 10px}.shopping-item{gap:8px}.shopping-item .shopping-qty{max-width:110px}
  .auth-panel{padding:27px 19px}.auth-caption{left:21px;right:21px}
}
@media(max-width:390px){.planner-grid{grid-template-columns:1fr 1fr}.top-right{gap:5px}.xp-chip{padding:8px 9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
