#hk-res{--bg:#F6F7F4;--surface:#FFF;--ink:#1D2620;--muted:#5C6A61;--line:#D9DED8;--soft:#E7EDE8;--accent:#2F5D46;--accent-ink:#FFF;--bad:#A33A3A;--warn:#9A5418;
  --serif:"Young Serif",Georgia,serif;--sans:"Instrument Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color-scheme:light;
  box-sizing:border-box;}
#hk-res *,#hk-res *::before,#hk-res *::after{box-sizing:inherit}
#hk-res{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--sans)}
#hk-res button,#hk-res input,#hk-res textarea{font:inherit;color:inherit}
#hk-res :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#hk-res a{color:var(--accent)}
#hk-res .wrap{max-width:760px;margin:0 auto;padding:32px 20px 24px}
#hk-res h1{font-family:var(--serif);font-weight:400;font-size:clamp(2rem,6vw,2.8rem);line-height:1.1;margin:0 0 6px}
#hk-res .lede{color:var(--muted);margin:0 0 24px}
#hk-res .step{border-top:1px solid var(--line);padding:22px 0}
#hk-res .step-h{display:flex;align-items:baseline;gap:12px;margin-bottom:12px}
#hk-res .step-n{font-family:var(--serif);color:var(--accent);font-size:1.2rem}
#hk-res .step-t{font-weight:600}
#hk-res .step-v{margin-left:auto;color:var(--muted);font-size:.9rem}
#hk-res .chips{display:flex;flex-wrap:wrap;gap:8px}
#hk-res .chips.scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}
#hk-res .chip{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px 14px;cursor:pointer;min-width:50px;text-align:center;line-height:1.2}
#hk-res .chip[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
#hk-res .chip[disabled]{opacity:.38;cursor:not-allowed;text-decoration:line-through}
#hk-res .chip.day{flex:none;min-width:66px}
#hk-res .chip.day small{display:block;font-size:.75rem;opacity:.8}
#hk-res .chip.day b{display:block;font-family:var(--serif);font-weight:400;font-size:1.3rem}
#hk-res .turno{margin-bottom:12px}
#hk-res .turno-l{font-size:.85rem;color:var(--muted);margin-bottom:6px}
#hk-res .grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
#hk-res label.f{display:block;font-size:.875rem;color:var(--muted)}
#hk-res label.f span{display:block;margin-bottom:4px}
#hk-res input[type=text],#hk-res input[type=email],#hk-res input[type=tel],#hk-res input[type=date],#hk-res textarea{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
#hk-res textarea{min-height:76px;resize:vertical}
#hk-res .check{display:flex;gap:10px;align-items:flex-start;padding:6px 0;cursor:pointer}
#hk-res .check input{margin-top:4px;width:18px;height:18px;accent-color:var(--accent);flex:none}
#hk-res .box{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px}
#hk-res .box+.box{margin-top:12px}
#hk-res h3{font-size:1rem;margin:0 0 6px}
#hk-res .note{font-size:.85rem;color:var(--muted)}
#hk-res .err{color:var(--bad);font-size:.875rem;margin-top:6px}
#hk-res .legal{font-size:.8rem;color:var(--muted);background:var(--soft);border-radius:12px;padding:12px 14px;margin-top:12px}
#hk-res .legal p{margin:2px 0}
#hk-res .btn{border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);border-radius:12px;padding:12px 22px;font-weight:600;cursor:pointer}
#hk-res .btn[disabled]{opacity:.5;cursor:wait}
#hk-res .code{font-family:var(--serif);font-size:2.3rem;letter-spacing:.08em;color:var(--accent)}
#hk-res footer{text-align:center;font-size:.8rem;color:var(--muted);padding:20px 0 28px;border-top:1px solid var(--line);margin-top:24px}
#hk-res footer b{color:var(--ink);letter-spacing:.06em}
@media (prefers-reduced-motion:reduce){#hk-res *{transition:none!important}}
#hk-res{border-radius:16px}
#hk-res .wrap{padding:24px 16px}
.hk-host-extra{}
#hk-res.host .chip{padding:14px 18px;min-width:60px;font-size:1.05rem}
#hk-res .chip.mini{padding:6px 10px;min-width:0;font-size:.9rem}
#hk-res .daybar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
#hk-res .daybar .dname{font-family:var(--serif);font-size:1.5rem;margin-right:auto;text-transform:capitalize}
#hk-res .stats{display:flex;gap:28px;flex-wrap:wrap;margin-bottom:20px}
#hk-res .stats b{display:block;font-family:var(--serif);font-weight:400;font-size:1.8rem;line-height:1}
#hk-res .stats span{font-size:.85rem;color:var(--muted)}
#hk-res .hcard{display:grid;grid-template-columns:84px 1fr;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
#hk-res .hcard .h{font-family:var(--serif);font-size:1.6rem;line-height:1}
#hk-res .hcard .who{font-size:1.1rem;font-weight:600}
#hk-res .hcard.nueva{animation:hkflash 2.5s ease}
@keyframes hkflash{from{background:var(--soft)}to{background:transparent}}
#hk-res .hacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#hk-res .btn.ghost{background:transparent;color:var(--accent)}
#hk-res .btn.small{padding:8px 14px;font-size:.9rem;border-radius:10px}
#hk-res .btn.danger{background:transparent;border-color:var(--bad);color:var(--bad)}
#hk-res .st{display:inline-block;font-size:.8rem;border-radius:999px;padding:2px 10px;margin-left:6px;vertical-align:middle}
#hk-res .st.pendiente{border:1px dashed var(--warn);color:var(--warn)}#hk-res .st.confirmada{background:var(--soft);color:var(--accent)}
#hk-res .st.sentada{background:var(--accent);color:var(--accent-ink)}#hk-res .st.noshow,#hk-res .st.cancelada{border:1px solid var(--line);color:var(--muted)}
#hk-res .tag{display:inline-block;font-size:.75rem;border:1px solid var(--line);border-radius:999px;padding:1px 8px;margin:2px 4px 0 0;color:var(--muted)}
#hk-res .tag.on{border-color:var(--accent);color:var(--accent)}
#hk-res .was{background:var(--soft);border-radius:12px;padding:12px 14px;margin-bottom:8px}
#hk-res .lrow{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
#hk-res .bar{height:8px;background:var(--soft);border-radius:99px;overflow:hidden;margin-top:4px}#hk-res .bar i{display:block;height:100%;background:var(--accent)}
#hk-res .bar.over i{background:var(--bad)}
#hk-res .warn{color:var(--warn)}
#hk-res .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#hk-res .x{border:1px solid var(--line);background:var(--surface);border-radius:10px;cursor:pointer;height:38px;width:38px}
#hk-res select,#hk-res input[type=number],#hk-res input[type=time]{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
#hk-res .list-h{font-size:.875rem;color:var(--muted);margin:18px 0 8px}
#hk-res .empty{color:var(--muted);padding:24px 0}
#hk-res .sync{font-size:.8rem;color:var(--muted)}
.hk-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1D2620;color:#fff;padding:12px 18px;border-radius:12px;z-index:99999;font:15px/1.4 "Instrument Sans",system-ui,sans-serif;max-width:90vw}
/* ---------- Legibilidad: el tema de la web no altera colores ni tamaños del formulario ---------- */
#hk-res{--muted:#46524B;color:#1D2620;background:#F6F7F4}
#hk-res h1,#hk-res h2,#hk-res h3,#hk-res p,#hk-res label,#hk-res span,#hk-res small,#hk-res b,#hk-res strong,#hk-res div,#hk-res section,#hk-res footer{color:inherit;text-shadow:none;text-transform:none;letter-spacing:normal;opacity:1}
#hk-res h1{color:var(--ink)!important}
#hk-res h3{color:var(--ink)!important;font-family:var(--sans);font-size:1.08rem;font-weight:600;line-height:1.35;margin:0 0 6px}
#hk-res .box{color:var(--ink);background:var(--surface)!important;border:1px solid #C9D2CC}
#hk-res .check,#hk-res .check span{color:var(--ink)!important;font-size:1rem;line-height:1.45;font-weight:500}
#hk-res .check input{accent-color:var(--accent);width:20px;height:20px}
#hk-res .note{color:var(--muted)!important;font-size:.9rem}
#hk-res .legal{background:#E9EEEA!important;color:#26302A!important;font-size:.85rem}
#hk-res .legal p,#hk-res .legal b{color:#26302A!important}
#hk-res label.f span{color:#36423B!important;font-size:.92rem;font-weight:500}
#hk-res button.chip{color:var(--ink)!important;background:var(--surface)!important;border:1px solid #B9C4BD;font-family:var(--sans);font-size:1rem;text-transform:none;box-shadow:none}
#hk-res button.chip[aria-pressed="true"]{color:#FFFFFF!important;background:var(--accent)!important;border-color:var(--accent)}
#hk-res button.chip small:not(.warn){color:inherit!important}
#hk-res input,#hk-res textarea,#hk-res select{color:var(--ink)!important;background:var(--surface)!important;border:1px solid #B9C4BD;font-family:var(--sans);font-size:1rem}
#hk-res .btn{color:#FFFFFF!important;background:var(--accent)!important;text-transform:none}
#hk-res .btn.ghost{color:var(--accent)!important;background:transparent!important}
#hk-res .btn.danger{color:var(--bad)!important;background:transparent!important}
#hk-res a{color:var(--accent)!important;text-decoration:underline}
#hk-res .err{color:var(--bad)!important;font-weight:500}
#hk-res .step-n{color:var(--accent)!important}
#hk-res .step-t{color:var(--ink)!important}
#hk-res .warn{color:var(--warn)!important}
#hk-res footer,#hk-res footer b{color:var(--muted)!important}

#hk-res table.hk-t{width:100%;border-collapse:collapse;font-size:.92rem;margin-top:8px}
#hk-res table.hk-t th{text-align:left;font-weight:600;color:var(--muted)!important;padding:8px;border-bottom:1px solid var(--line)}
#hk-res table.hk-t td{padding:8px;border-bottom:1px solid var(--line);color:var(--ink)!important}

/* ---------- Legibilidad reforzada (0.6.0): modo claro fijo, letra mayor, más contraste ---------- */
#hk-res{color-scheme:light;font-size:17px;-webkit-text-size-adjust:100%}
#hk-res .lede{font-size:1.05rem;color:#2F3A33!important}
#hk-res .note{font-size:.95rem;color:#3A4640!important;line-height:1.5}
#hk-res .step-t{font-size:1.1rem;font-weight:700}
#hk-res h3{font-size:1.15rem!important;font-weight:700}
#hk-res .check,#hk-res .check span{font-size:1.05rem!important;font-weight:600!important;color:#16201A!important}
#hk-res label.f span{font-size:1rem!important;font-weight:600!important;color:#26302A!important}
#hk-res .legal{font-size:.95rem!important;line-height:1.55}
#hk-res .legal p,#hk-res .legal b{color:#16201A!important}
#hk-res button.chip{font-size:1.05rem;font-weight:600;border-color:#8E9C93!important}
#hk-res .chip[disabled]{opacity:1!important;color:#9AA59E!important;background:#EEF1EE!important;border-style:dashed!important}
#hk-res .box{border-color:#AEBAB2!important}
#hk-res input,#hk-res textarea,#hk-res select{border-color:#8E9C93!important;font-size:1.05rem!important}

/* ---------- Resumen del día (Hostess) ---------- */
#hk-res .hk-sum{margin-bottom:16px}
#hk-res .hk-tot{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:12px}
#hk-res .hk-tot div{background:var(--soft);border-radius:10px;padding:8px 10px}
#hk-res .hk-tot b{display:block;font-family:var(--serif);font-weight:400;font-size:1.6rem;line-height:1.1;color:var(--ink)!important}
#hk-res .hk-tot span{font-size:.8rem;color:#3A4640!important}
#hk-res .hk-turno{border-top:1px solid var(--line);padding:10px 0}
#hk-res .hk-tt{margin-bottom:8px;font-size:.98rem}
#hk-res .hk-slots{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
#hk-res .hk-slot{flex:none;min-width:62px;border:1px solid var(--line);border-radius:8px;padding:5px 6px;text-align:center;background:#fff;line-height:1.2}
#hk-res .hk-slot .h{display:block;font-weight:700;font-size:.85rem;color:var(--ink)!important}
#hk-res .hk-slot .p{display:block;font-size:1rem;font-weight:700;color:var(--ink)!important}
#hk-res .hk-slot .n{display:block;font-size:.72rem;color:#3A4640!important}
#hk-res .hk-slot.algo{background:#E3F0E6;border-color:#9CC3A6}
#hk-res .hk-slot.casi{background:#FBEBD3;border-color:#E2B26F}
#hk-res .hk-slot.lleno{background:#F6D9D6;border-color:#D58A82}
#hk-res .hk-prox{border-top:1px solid var(--line);padding-top:8px;font-size:.95rem}
#hk-res .hk-prox b{display:block;margin-bottom:4px}
#hk-res table.hk-comp td{vertical-align:middle}
#hk-res table.hk-comp tr.sentada td{background:#F1F6F2}
#hk-res table.hk-comp tr.pendiente td{background:#FDF6EC}
#hk-res .hk-acc{white-space:nowrap}#hk-res .hk-acc .btn{margin-left:4px}
@media (max-width:640px){#hk-res .hk-tot{grid-template-columns:repeat(3,1fr)}}
#hk-res table.hk-comp td,#hk-res table.hk-comp th{padding:6px 8px;font-size:.92rem}
#hk-res table.hk-comp td:nth-child(2){white-space:nowrap}
#hk-res table.hk-comp td .note{font-size:.78rem!important;display:inline;margin-left:6px}
#hk-res table.hk-comp .btn{padding:6px 10px!important;font-size:.85rem!important;border-radius:8px}
#hk-res table.hk-comp .st{margin-left:0}

/* ---------- Tablet: pantalla completa y diseño a lo ancho ---------- */
body.hkr-app{margin:0;background:#F6F7F4;-webkit-tap-highlight-color:transparent}
body.hkr-app .hk-top{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:14px;padding:12px 24px;padding-top:calc(12px + env(safe-area-inset-top,0px));background:#2F5D46;color:#fff;font-family:"Instrument Sans",system-ui,sans-serif}
body.hkr-app .hk-top-n{font-family:"Young Serif",Georgia,serif;font-size:1.35rem}
body.hkr-app .hk-top-t{opacity:.85;font-size:.95rem}
body.hkr-app .hk-top-sp{flex:1}
body.hkr-app .hk-top-u{font-size:.95rem}body.hkr-app .hk-top a{color:#fff;text-decoration:underline}
body.hkr-app #hk-res{border-radius:0;min-height:calc(100vh - 56px)}
body.hkr-app #hk-res .wrap{max-width:1280px;margin:0 auto;padding:20px 24px 32px}
body.hkr-app #hk-res .wrap>p.note:last-child{display:none}
#hk-res .hk-cards{display:block}
#hk-res .hk-form{display:block}
@media (min-width:900px){
  #hk-res.host .hk-cards{display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
  #hk-res.host .hk-cards .hcard{align-content:start}
  #hk-res.host .hk-slots{flex-wrap:wrap;overflow:visible}
  #hk-res.host .hk-form{display:grid;grid-template-columns:1fr 1fr;column-gap:36px;align-items:start}
  #hk-res.host .hk-form .hk-col:last-child{position:sticky;top:76px}
  #hk-res.host .daybar .dname{font-size:1.8rem}
}
@media (min-width:1200px){#hk-res.host .hk-cards{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:899px){#hk-res.host .hk-tot{grid-template-columns:repeat(3,1fr)}}
#hk-res .daybar .dname{text-transform:none}#hk-res .daybar .dname::first-letter{text-transform:uppercase}

#hk-res .st.finalizada{background:#E9ECEA;color:#46524B}
#hk-res .hk-tot{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important}
#hk-res .hk-tot .libres{background:#2F5D46}#hk-res .hk-tot .libres b,#hk-res .hk-tot .libres span{color:#FFFFFF!important}
#hk-res table.hk-comp tr.finalizada td{background:#F3F4F3;color:#6A756E!important}

/* ---------- Calendario y asistente ---------- */
#hk-res .hk-asis{border-color:#2F5D46!important;border-width:2px!important}
#hk-res .hk-bot{display:flex;gap:10px;align-items:flex-start;margin:10px 0 0}
#hk-res .hk-bot-a{flex:none;width:32px;height:32px;border-radius:50%;background:#2F5D46;color:#fff!important;display:flex;align-items:center;justify-content:center;font-size:1rem}
#hk-res .hk-bot>div{background:#EEF3EF;border-radius:4px 14px 14px 14px;padding:10px 14px;line-height:1.5;max-width:780px}
#hk-res .hk-ul{margin:6px 0 4px;padding-left:20px}#hk-res .hk-ul li{margin:2px 0}
#hk-res .hk-no{color:var(--bad)!important}
#hk-res .box+.box{margin-top:14px}

#hk-res .hk-sin{margin:0 0 6px;padding:12px 14px;border-radius:10px;background:#F6ECEA;border:1px solid #E2BDB7;color:#5E2A24!important;font-weight:600;font-size:1rem}

#hk-res .hk-lgrp{border-top:1px solid var(--line);padding:10px 0}

#hk-res .hk-wa{border-color:#25D366!important;border-width:2px!important;margin-top:16px}
#hk-res a.hk-wa-btn{background:#1E8E4E!important;border-color:#1E8E4E!important;color:#fff!important;text-decoration:none!important;display:inline-flex}

#hk-res .hk-avisos{border-color:#25D366!important;border-width:2px!important;margin-bottom:16px}
#hk-res .hk-badge{display:inline-block;min-width:24px;padding:1px 8px;border-radius:99px;background:#1E8E4E;color:#fff!important;font-size:.85rem;text-align:center}
#hk-res .hk-walock{border-color:#E2B26F!important;background:#FFF8EC!important;margin-top:12px}
