/* Kitchen demo configurator (preview). Panel/stepper styles follow /propuestas/demo/ (#panel .stepper/.opt/.pfoot). */
:root{--kc-w:min(384px,38vw)}
.kc{--kc-accent:#fff;--kc-ink:#1b0f5e;--kc-soft:rgba(255,255,255,.07);--kc-asoft:rgba(255,255,255,.16);--kc-muted:rgba(255,255,255,.72);
 position:absolute;z-index:3;display:flex;flex-direction:column;background:rgba(14,11,42,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line);color:#fff;overflow:hidden;contain:layout paint}
.kc[hidden]{display:none!important}
.kc button{font:inherit;color:inherit}
.kc button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.kc-head{display:flex;align-items:center;gap:6px;padding:8px 8px 4px 16px}
.kc-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.kc-tt b{font-size:15px;line-height:1.2}
.kc-tt small{font-size:11px;line-height:1.25;color:var(--kc-muted);white-space:normal}
.kc-lang{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;flex:none}
.kc-lang button{border:0;background:transparent;min-width:44px;min-height:44px;font-size:12.5px;font-weight:700;color:var(--kc-muted)}
.kc-lang button[aria-pressed="true"]{background:var(--kc-accent);color:var(--kc-ink)}
.kc-ib{width:44px;height:44px;flex:none;border-radius:12px;border:1px solid var(--line);background:var(--kc-soft);display:grid;place-items:center;padding:0}
.kc-ib svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.kc-pre{padding:2px 16px 4px}
.kc-pre .lbl{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--kc-muted);display:block;margin-bottom:5px}
#kcPreBtns{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.kc .chip{flex:none;min-height:44px;padding:0 13px;border-radius:999px;border:1px solid var(--line);background:var(--kc-soft);font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.kc .chip[aria-pressed="true"]{background:var(--kc-asoft);border-color:#fff}
.kc .chip .dots{display:inline-flex;padding-left:6px}
.kc .chip .dots i{width:14px;height:14px;border-radius:50%;border:1.5px solid rgba(255,255,255,.85);margin-left:-6px}
.kc .stepper{display:flex;align-items:center;gap:4px;padding:6px 16px 8px}
.kc .stepper button{width:44px;height:44px;flex:none;border-radius:50%;border:1px solid var(--line);background:var(--kc-soft);font-size:13px;font-weight:700;display:grid;place-items:center;padding:0}
.kc .stepper button[aria-current="step"]{background:var(--kc-accent);color:var(--kc-ink);border-color:transparent}
.kc .stepper button.done{border-color:#fff}
.kc .stepper i{flex:1;height:2px;background:var(--line);border-radius:2px;min-width:2px}
.kc .stepper i.done{background:#fff}
.kc .qbody{flex:1;min-height:0;overflow-y:auto;padding:4px 16px 14px;outline:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.kc .qhead{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:2px 0 4px}
.kc .qhead h2{margin:0;font-size:18px;line-height:1.2}
.kc .qhead span{font-size:12px;color:var(--kc-muted);white-space:nowrap}
.kc p.h{margin:0 0 4px;font-size:12.5px;color:var(--kc-muted)}
.kc .q{padding:10px 0;border-top:1px solid var(--line)}
.kc .q:first-of-type{border-top:0}
.kc .q h3{margin:0 0 8px;font-size:14px;line-height:1.25}
.kc .opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.kc .opts.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.kc .opt{position:relative;text-align:left;padding:7px 8px 8px;border-radius:12px;border:1.5px solid var(--line);background:var(--kc-soft);display:flex;flex-direction:column;gap:5px;min-height:64px}
.kc .opt.sm{min-height:44px;justify-content:center}
.kc .opt[aria-checked="true"]{border-color:#fff;background:var(--kc-asoft);box-shadow:inset 0 0 0 1px #fff}
.kc .opt b{font-size:12.5px;line-height:1.25;font-weight:600;white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:auto}
.kc .sw{display:block;width:100%;height:28px;border-radius:8px;border:1px solid rgba(0,0,0,.25)}
.kc .sum{border:1px solid var(--line);border-radius:14px;background:var(--kc-soft);padding:12px;margin-top:6px}
.kc .sum h3{margin:0 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--kc-muted)}
.kc-dl{margin:0;display:grid;gap:4px}
.kc-dl div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;align-items:center}
.kc-dl dt{font-size:12.5px;color:var(--kc-muted)}
.kc-dl dd .v{min-width:0;overflow-wrap:break-word}
.kc-dl dd{margin:0;font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px;min-width:0}
.kc-dl .dot{width:18px;height:18px;border-radius:5px;flex:none;border:1px solid rgba(255,255,255,.4)}
.kc-edit{margin-left:auto;min-height:44px;min-width:44px;padding:0 8px;border:0;background:transparent;color:var(--kc-muted)!important;font-size:11.5px;text-decoration:underline;white-space:nowrap;flex:none}
.kc .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.kc .kbtn[hidden]{display:none}
.kc .lead{margin:14px 0 0;font-size:14px;font-weight:650}
.kc .acts .kbtn{flex:1 1 140px;text-align:center;white-space:normal;padding:8px 14px}
.kc .note{margin:10px 0 0;font-size:11.5px;color:var(--kc-muted);line-height:1.35}
.kc .pfoot{display:flex;gap:8px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.kc .kbtn{min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--line);background:var(--kc-soft);font-weight:650;font-size:14px;display:inline-flex;align-items:center;justify-content:center}
.kc .kbtn.primary{background:var(--kc-accent);color:var(--kc-ink)!important;border-color:transparent;flex:1}
.kc .kbtn:disabled{opacity:.4;cursor:default}
body.kc-open #finPanel,body.kc-open #roomPanel{display:none!important}
#finBtn{min-height:44px}
/* desktop / large tablet landscape / phone landscape: side panel on the right, above the bottom bar */
@media (min-width:1000px),(orientation:landscape) and (max-height:520px){
 .kc{right:max(14px,env(safe-area-inset-right));top:calc(max(14px,env(safe-area-inset-top)) + 54px);bottom:calc(74px + env(safe-area-inset-bottom));width:var(--kc-w);border-radius:18px}
 body.kc-open #miniWrap{display:none!important}
 body.kc-open #bar,body.kc-open #tourCtl,body.kc-open #note{left:calc((100% - var(--kc-w) - 28px) / 2)}
 body.kc-open #bar,body.kc-open #note{max-width:calc(100% - var(--kc-w) - 48px)}
 body.kc-open #bar{flex-wrap:wrap;justify-content:center;bottom:calc(34px + env(safe-area-inset-bottom))}
 body.kc-open #note{white-space:normal;text-align:center;width:max-content}
 body.kc-open #cap{max-width:min(540px,calc(100% - var(--kc-w) - 60px))}
}
@media (orientation:landscape) and (max-height:520px){
 :root{--kc-w:min(360px,46vw)}
 .kc{top:calc(max(8px,env(safe-area-inset-top)) + 46px);bottom:calc(58px + env(safe-area-inset-bottom))}
 .kc .kc-pre{display:none}
 body.kc-open #cap{display:none}
}
/* phones + portrait tablets: bottom sheet; the bar is replaced by the sheet, the sample label sits just above it */
@media (max-width:999px) and (min-height:521px){
 .kc{left:0;right:0;bottom:0;height:min(54vh,520px);height:min(54dvh,520px);border-radius:18px 18px 0 0;border-bottom:0;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 body.kc-open #bar,body.kc-open #tourCtl,body.kc-open #cap,body.kc-open #joy{display:none!important}
 body.kc-open #note{display:block!important;bottom:calc(min(54vh,520px) + 6px);bottom:calc(min(54dvh,520px) + 6px);white-space:normal;text-align:center;width:max-content;max-width:calc(100% - 24px);padding:4px 10px;border-radius:999px;background:rgba(14,11,42,.66);opacity:.9}
 body.kc-open #miniWrap{display:none!important}
}
@media (max-width:420px){
 .kc .opts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .kc .stepper{padding:4px 10px 6px;gap:2px}
 .kc .stepper button{width:44px;height:44px}
 .kc .qhead h2{font-size:16px}
}
/* presenter line (brand.t) is longer than the old brand name: keep it clear of the top-right buttons */
#brand{max-width:calc(100% - 140px)}
#brand b{white-space:normal;overflow:visible;text-overflow:clip}

/* v1b: sitewide footer (markup byte-identical to live; styling local to demo) */
html,body{height:auto;min-height:100%}
html{overflow-y:auto;overflow-x:hidden}body{overflow:visible}
#ui{bottom:44px;z-index:2}
#kcFtr{position:relative;z-index:1;margin-top:calc(100vh - 44px);margin-top:calc(100dvh - 44px)}
