/* evoShoku 0.2 — "Shokudō limpio" v2 (lienzo «evoShoku — boceto», sección v2). Claro, oscuro y auto. */
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/instrument-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/instrument-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/instrument-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Zen Old Mincho'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/zen-old-mincho-400.woff2') format('woff2'); }
@font-face { font-family: 'Zen Old Mincho'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/zen-old-mincho-700.woff2') format('woff2'); }

/* ---------- Tokens: claro (por defecto) ---------- */
body.evo-app-evoshoku {
  --bg: #F6F4F0; --card: #FFFFFF; --sheet: #F6F4F0; --line: #E4E2DD; --line2: #EFEDE9; --tile: #F0EDE8;
  --soft: #E9EDF0; --soft2: #EEF1F3; --banner: #EDEAE5; --seg: #ECEAE6;
  --text: #1C2226; --muted: #5E6B75; --kanji: #7A858E; --acero: #5E6B75; --on-acero: #FFFFFF;
  --next: #F4F7F9; --pend: #AEB6BD; --shu: #C8402F; --on-shu: #F8F8F5;
  --cta: #1C2226; --on-cta: #FFFFFF; --velo: rgba(28,34,38,.32); --tabbar: rgba(255,255,255,.94);
  --shadow: 0 1px 2px rgba(28,34,38,.04), 0 6px 18px rgba(28,34,38,.05);
  --shadow-up: 0 -10px 40px rgba(28,34,38,.16);
  --logo-ink: #3A454D; --logo-steel: #7A8C96;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mincho: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
/* ---------- Tokens: oscuro (墨 noche) ---------- */
html[data-theme="dark"] body.evo-app-evoshoku {
  --bg: #121619; --card: #1A2024; --sheet: #161B1E; --line: #2A3238; --line2: #232A2F; --tile: #232A30;
  --soft: #25303A; --soft2: #25303A; --banner: #1A2024; --seg: #1F262B;
  --text: #ECEEEF; --muted: #9AA6AF; --kanji: #7F8B94; --acero: #8FA3B1; --on-acero: #121619;
  --next: #1E262D; --pend: #4A555E; --shu: #D9553F; --on-shu: #F6F4F0;
  --cta: #ECEEEF; --on-cta: #121619; --velo: rgba(0,0,0,.55); --tabbar: rgba(18,22,25,.94);
  --shadow: none; --shadow-up: 0 -10px 40px rgba(0,0,0,.5);
  --logo-ink: #DDE2E5; --logo-steel: #8FA3B1;
}
html[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { color-scheme: dark; }
  html:not([data-theme="light"]) body.evo-app-evoshoku {
    --bg: #121619; --card: #1A2024; --sheet: #161B1E; --line: #2A3238; --line2: #232A2F; --tile: #232A30;
    --soft: #25303A; --soft2: #25303A; --banner: #1A2024; --seg: #1F262B;
    --text: #ECEEEF; --muted: #9AA6AF; --kanji: #7F8B94; --acero: #8FA3B1; --on-acero: #121619;
    --next: #1E262D; --pend: #4A555E; --shu: #D9553F; --on-shu: #F6F4F0;
    --cta: #ECEEEF; --on-cta: #121619; --velo: rgba(0,0,0,.55); --tabbar: rgba(18,22,25,.94);
    --shadow: none; --shadow-up: 0 -10px 40px rgba(0,0,0,.5);
    --logo-ink: #DDE2E5; --logo-steel: #8FA3B1;
  }
}
html:has(body.evo-app-evoshoku) { background: #F6F4F0; }
html[data-theme="dark"]:has(body.evo-app-evoshoku) { background: #121619; }
body.ek-bloqueo { overflow: hidden; }

/* ---------- Aviso de demo del shell (lo pinta evoCore; aquí solo su estilo) ---------- */
.evo-app-evoshoku .evo-shell-banner {
  position: relative; top: auto; margin: 12px auto 0; max-width: 528px; width: calc(100% - 32px); box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 10px 14px 10px 44px;
  background: var(--banner); color: var(--text); border-radius: 16px; font-size: 13px; line-height: 1.4; text-align: left;
}
.evo-app-evoshoku .evo-shell-banner::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4 3-6 7-6c0 4-3 6-7 6z'/%3E%3Cpath d='M12 14c0-3-2.5-5-6-5c0 3 2.5 5 6 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4 3-6 7-6c0 4-3 6-7 6z'/%3E%3Cpath d='M12 14c0-3-2.5-5-6-5c0 3 2.5 5 6 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.evo-app-evoshoku .evo-shell-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.evo-app-evoshoku .evo-req-btn { background: var(--cta); color: var(--on-cta); margin-left: 0; }
.evo-app-evoshoku .evo-shell-install { background: var(--cta); color: var(--on-cta); }
.evo-app-evoshoku .evo-shell-install .evo-i-go { background: var(--bg); color: var(--text); }

/* ---------- Base ---------- */
.ek { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.ek *, .ek *::before, .ek *::after { box-sizing: border-box; }
.ek :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ek :where(button) { cursor: pointer; }
.ek :where(button:disabled) { cursor: default; opacity: .45; }
.ek :where(a) { color: var(--text); }
.ek :focus-visible { outline: 2px solid var(--acero); outline-offset: 2px; }
.ek-ic { display: inline-flex; line-height: 0; flex-shrink: 0; }
.ek-marca { display: inline-flex; line-height: 0; }
.mk-ink { stroke: var(--logo-ink); } .mk-ink-f { fill: var(--logo-ink); } .mk-st { fill: var(--logo-steel); stroke: var(--logo-steel); }
.ek-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ek-peq { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.ek-vacio { color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; padding: 24px 8px; margin: 0; }
.ek-arranque { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 14px; }
.ek-noscript { padding: 24px; text-align: center; }
.ek-pantalla { position: relative; padding: 24px 16px calc(112px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.ek-pantalla.ek-asistente { padding: 24px 24px calc(120px + env(safe-area-inset-bottom)); }

/* ---------- Cabecera ---------- */
.ek-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 8px; }
.ek-cab-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ek-eyebrow, .ek-etq { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.ek-cab-tit { display: flex; align-items: baseline; gap: 10px; }
.ek-cab-tit h1 { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.ek-kanji-cab { font-family: var(--mincho); font-size: 26px; color: var(--kanji); }
.ek-redondo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--text); }
.ek-volver { align-self: flex-start; margin: -6px 8px 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--soft); color: var(--text); font-size: 13px; font-weight: 600; }

/* ---------- Piezas ---------- */
.ek-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.ek-pildora { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--soft); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.ek-pildora.on { background: var(--acero); color: var(--on-acero); }
.ek-placa { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mincho); font-size: 22px; background: var(--tile); color: var(--text); }
.ek-placa.on { background: var(--acero); color: var(--on-acero); }
.ek-sello { flex-shrink: 0; width: 48px; height: 48px; margin: -6px 2px -4px 0; background: var(--shu); border-radius: 6px; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); animation: ek-sello .5s cubic-bezier(.2,1.4,.4,1) both; }
.ek-sello span { font-family: var(--mincho); font-weight: 700; font-size: 28px; color: var(--on-shu); line-height: 1; }
@keyframes ek-sello { from { transform: rotate(-6deg) scale(1.6); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

.ek-btn { min-height: 50px; border-radius: 18px; border: 0; background: var(--cta); color: var(--on-cta); padding: 0 20px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ek-btn.peligro { background: var(--shu); color: var(--on-shu); }
.ek-btn-grande { width: 100%; min-height: 54px; font-size: 16px; }
.ek-btn-s { min-height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 14px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.ek-btn-s.peligro { color: var(--shu); }
.ek-mini { min-height: 36px; border-radius: 18px; border: 0; background: var(--soft); padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ek-txtbtn { min-height: 44px; border: 0; background: transparent; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ek-ico { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 12px; }
.ek-ico.on { color: var(--text); }
.ek-ico.on svg { fill: currentColor; }
.ek-ico-s { width: 40px; height: 44px; }

.ek-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--seg); border-radius: 14px; }
.ek-seg-b { min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); padding: 0 6px; }
.ek-seg-b.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.ek-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ek-chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.ek-chips-scroll::-webkit-scrollbar { display: none; }
.ek-chip { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ek-chip.on { background: var(--acero); border-color: var(--acero); color: var(--on-acero); }
.ek-chip:disabled { opacity: .5; }

.ek-caja { width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1.5px solid var(--pend); color: transparent; }
.on > .ek-caja, .ek-item.on .ek-caja { background: var(--acero); border-color: var(--acero); color: var(--on-acero); }
.ek-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.ek-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--acero); }
.ek-check-s { font-size: 13px; }
.ek-sec { display: flex; flex-direction: column; gap: 10px; }
.ek-sec-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 0 4px; }
.ek-sec-nota { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Hoy ---------- */
.ek-progreso { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ek-prog-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ek-prog-num { display: flex; align-items: baseline; gap: 8px; }
.ek-prog-num strong { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ek-prog-num span { font-size: 15px; color: var(--muted); }
.ek-prog-sep { width: 1px; height: 32px; background: var(--line); flex-shrink: 0; }
.ek-segmentos { display: grid; gap: 6px; }
.ek-segmentos i, .ek-eq-b i { height: 5px; border-radius: 3px; background: var(--line); display: block; transition: background .25s; }
.ek-segmentos i.on, .ek-eq-b i.on { background: var(--acero); }
.ek-nota { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }

.ek-linea { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.ek-linea::before { content: ''; position: absolute; left: 60px; top: 34px; bottom: 34px; width: 1.5px; background: var(--line); }
.ek-linea-i { display: flex; align-items: stretch; gap: 10px; position: relative; }
.ek-hora { width: 44px; flex-shrink: 0; padding-top: 25px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.ek-punto { width: 14px; flex-shrink: 0; display: flex; justify-content: center; padding-top: 29px; }
.ek-punto i { width: 9px; height: 9px; border-radius: 5px; background: var(--bg); border: 1.5px solid var(--muted); position: relative; z-index: 1; }
.ek-punto i.on { background: var(--acero); border-color: var(--acero); }
.ek-comida { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 4px 12px 4px 4px; transition: border-color .2s, background .2s; }
.ek-comida.sig { border-color: var(--acero); background: var(--next); }
.ek-comida-abrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 10px; text-align: left; border-radius: 16px; }
.ek-comida-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ek-comida-franja { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ek-sig { color: var(--on-acero); background: var(--acero); border-radius: 999px; padding: 2px 7px; letter-spacing: .06em; }
.ek-ic-fijo svg { fill: currentColor; }
.ek-comida-plato { font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ek-comida-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.ek-comida-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-hecho { width: 46px; height: 46px; flex-shrink: 0; border-radius: 23px; display: flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1.5px solid var(--pend); color: var(--pend); transition: background .2s, border-color .2s, color .2s, transform .15s; }
.ek-hecho:active { transform: scale(.94); }
.ek-hecho.on { background: var(--acero); border-color: var(--acero); color: var(--on-acero); }
.ek-cta { padding: 28px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.ek-cta h2 { margin: 4px 0 0; font-size: 20px; font-weight: 600; }
.ek-cta p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Semana ---------- */
.ek-semnav { display: flex; justify-content: space-between; margin: -8px 2px -6px; min-height: 44px; }
.ek-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ek-dia { height: 66px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text); padding: 0; position: relative; }
.ek-dia.finde { border-style: dashed; border-color: var(--pend); background: transparent; box-shadow: none; }
.ek-dia-l { font-size: 11px; font-weight: 600; }
.ek-dia-n { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ek-dia.hoy::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 2px; background: var(--acero); }
.ek-dia.on { background: var(--acero); border: 1px solid var(--acero); color: var(--on-acero); box-shadow: none; }
.ek-dia.on.hoy::after { background: var(--on-acero); }
.ek-diacard { overflow: hidden; }
.ek-diacard-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 18px; }
.ek-diacard-tit { font-size: 16px; font-weight: 600; }
.ek-diacard-tit span { font-weight: 400; color: var(--muted); }
.ek-lista { list-style: none; margin: 0; padding: 0; }
.ek-fila { display: flex; align-items: center; gap: 4px; padding: 8px 4px 8px 14px; border-top: 1px solid var(--line2); }
.ek-fila .ek-placa { width: 40px; height: 40px; font-size: 20px; }
.ek-fila-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 6px 10px; border: 0; background: transparent; text-align: left; }
.ek-fila-f { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ek-fila-t { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ek-fila-m { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ek-eq { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.ek-eq-c { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ek-eq-n { font-size: 12px; color: var(--muted); }
.ek-eq-v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ek-eq-v span { font-size: 13px; color: var(--muted); font-weight: 500; }
.ek-eq-b { display: flex; gap: 3px; }
.ek-eq-b i { flex: 1; }

/* ---------- Compra ---------- */
.ek-barra { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.ek-barra-t { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ek-barra-t i { display: block; height: 6px; background: var(--acero); transition: width .3s; }
.ek-barra-n { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ek-compra-sec { overflow: hidden; }
.ek-compra-cab { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px 10px; }
.ek-compra { list-style: none; margin: 0; padding: 0; }
.ek-item { display: flex; align-items: center; border-top: 1px solid var(--line2); padding-right: 6px; }
.ek-item-b { flex: 1; min-width: 0; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 18px; background: transparent; border: 0; text-align: left; }
.ek-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ek-item-pad { padding: 12px 18px; }
.ek-item-n { font-size: 16px; font-weight: 500; }
.ek-item-m { font-size: 12px; color: var(--muted); }
.ek-item-q { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--soft2); border-radius: 999px; padding: 5px 11px; }
.ek-item.on .ek-item-n { color: var(--muted); text-decoration: line-through; }
.ek-item.on .ek-item-q { color: var(--muted); }
.ek-encasa { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px dashed var(--pend); border-radius: 18px; background: transparent; font-size: 13px; color: var(--muted); text-align: left; line-height: 1.4; }
.ek-encasa span:nth-child(2) { flex: 1; }

/* ---------- Recetas ---------- */
.ek-buscar { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; color: var(--muted); }
.ek-buscar input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); }
.ek-buscar input::placeholder { color: var(--muted); }
.ek-recetas, .ek-cands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ek-receta { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-align: left; color: var(--text); }
.ek-receta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ek-receta-n { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ek-receta-m { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.ek-receta.noapta .ek-receta-n { color: var(--muted); }
.ek-plusrow { padding: 16px; }
.ek-plusrow-t { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ek-plusrow-m { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* ---------- Perfil ---------- */
.ek-bloque { padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.ek-bloque-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.ek-bloque-l { margin: 0; font-size: 14px; line-height: 1.5; }
.ek-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.ek-aviso-salud { background: transparent; border-style: dashed; border-color: var(--pend); box-shadow: none; }
.ek-ajustes { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; text-align: left; color: var(--text); }
.ek-ajustes > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ek-ajustes-t { font-size: 15px; font-weight: 600; }
.ek-ajustes-m { font-size: 13px; color: var(--muted); }
.ek-pie { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.ek-pie-l { display: flex; gap: 8px; flex-wrap: wrap; }
.ek-version { font-size: 12px; color: var(--muted); }
.ek-idiomas { display: flex; flex-direction: column; gap: 8px; }
.ek-idioma { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 15px; font-weight: 500; text-align: left; }
.ek-idioma.on { border-color: var(--acero); }
.ek-idioma:disabled { opacity: 1; color: var(--muted); }
.ek-idioma small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Calendario ---------- */
.ek-cal { padding: 12px 12px 14px; }
.ek-cal-cab { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.ek-cal-mes { font-size: 15px; font-weight: 600;  }
.ek-cal-sem { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding-bottom: 6px; text-transform: uppercase; }
.ek-cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.ek-cal-d { height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ek-cal-d > span { position: relative; width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-variant-numeric: tabular-nums; border: 1.5px solid transparent; }
.ek-cal-d.plan { color: var(--text); font-weight: 600; }
.ek-cal-d.plan > span::after { content: ''; position: absolute; bottom: 4px; left: 50%; margin-left: -2px; width: 4px; height: 4px; border-radius: 2px; background: var(--acero); }
.ek-cal-d.hoy > span { border-color: var(--text); }
.ek-cal-d.sel > span { background: var(--acero); color: var(--on-acero); border-color: var(--acero); }
.ek-cal-d.sel > span::after { display: none; }
.ek-cal-d.fuera { visibility: hidden; }
.ek-cal-ley { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.ek-cal-ley span { display: inline-flex; align-items: center; gap: 6px; }
.ek-cal-ley i { width: 6px; height: 6px; border-radius: 3px; background: var(--acero); }
.ek-cal-ley b { width: 12px; height: 12px; border-radius: 6px; border: 1.5px solid var(--text); }

/* ---------- Hojas y modal ---------- */
.ek-velo { position: fixed; inset: 0; z-index: 80; background: var(--velo); display: flex; align-items: flex-end; justify-content: center; animation: ek-velo .2s ease both; }
.ek-velo-c { align-items: center; padding: 24px; }
@keyframes ek-velo { from { opacity: 0; } to { opacity: 1; } }
.ek-hoja { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; background: var(--sheet); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; animation: ek-sube .28s cubic-bezier(.2,.9,.3,1) both; box-shadow: var(--shadow-up); }
@keyframes ek-sube { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ek-hoja-asa { width: 40px; height: 4px; border-radius: 2px; background: var(--pend); margin: 10px auto 0; flex-shrink: 0; }
.ek-hoja-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 2; }
.ek-hoja-c { overflow-y: auto; padding: 16px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.ek-hoja-t { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; padding-right: 40px; }
.ek-bandeja { margin-top: 18px; }
.bj-tray { fill: var(--tile); stroke: var(--line); } .bj-dish { fill: var(--card); stroke: var(--acero); } .bj-main { fill: var(--acero); } .bj-soup { fill: var(--line); } .bj-hashi { stroke: var(--text); }
.ek-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ek-alerta { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13px; color: var(--text); background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.ek-alg { margin-top: -2px; }
.ek-ings { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.ek-ings li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line2); font-size: 14px; }
.ek-ings li:first-child { border-top: 0; }
.ek-ings-q { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ek-pasos { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 10px; }
.ek-pasos li { counter-increment: p; display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.ek-pasos li::before { content: counter(p); flex-shrink: 0; width: 26px; height: 26px; border-radius: 13px; border: 1px solid var(--pend); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.ek-rev { font-style: italic; }
.ek-hoja-acc { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: sticky; bottom: calc(-28px - env(safe-area-inset-bottom)); background: var(--sheet); padding: 12px 0 4px; margin-top: 4px; }
.ek-stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 2px; }
.ek-stepper button { width: 36px; height: 36px; border-radius: 18px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ek-stepper > span { font-size: 13px; font-weight: 600; min-width: 78px; text-align: center; }
.ek-stepper-g { align-self: flex-start; }
.ek-stepper-g button { width: 44px; height: 44px; border-radius: 22px; }
.ek-stepper-g > span { font-size: 15px; min-width: 96px; }
.ek-modal { width: 100%; max-width: 380px; background: var(--sheet); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; animation: ek-sube .22s ease both; box-shadow: 0 20px 50px rgba(0,0,0,.3); color: var(--text); }
.ek-modal h2 { margin: 0; font-size: 19px; font-weight: 600; }
.ek-modal-txt { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.ek-modal-acc { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ek-toast { position: fixed; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); background: var(--cta); color: var(--on-cta); font-size: 14px; line-height: 1.4; border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: ek-velo .2s ease both; }

/* ---------- Barra inferior ---------- */
.ek-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; gap: 2px; background: var(--tabbar); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ek-tabs > * { max-width: 112px; }
.ek-tab { flex: 1; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 16px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; }
.ek-tab.on { color: var(--text); font-weight: 600; background: var(--soft); }

/* ---------- Asistente ---------- */
.ek-as-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px -10px 0; }
.ek-as-marca { width: 44px; display: inline-flex; justify-content: center; }
.ek-as-pasos { display: flex; gap: 6px; }
.ek-as-pasos i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); transition: width .25s, background .25s; }
.ek-as-pasos i.hecho { background: var(--acero); }
.ek-as-pasos i.on { width: 32px; background: var(--text); }
.ek-as-n { width: 44px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ek-as-cab h1 { margin: 6px 0 8px; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.ek-as-cab p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ek-as-c { display: flex; flex-direction: column; gap: 12px; }
.ek-as-c > .ek-etq { margin-top: 8px; }
.ek-as-pie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--line); padding: 14px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.ek-as-pie > * { max-width: 512px; }
.ek-pais { padding: 16px 18px; display: flex; align-items: baseline; justify-content: space-between; }
.ek-pais-n { font-size: 17px; font-weight: 600; }
.ek-jornada { padding: 16px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.ek-jornada > .ek-mini { align-self: flex-start; }
.ek-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ek-campo { display: flex; flex-direction: column; gap: 6px; }
.ek-campo label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ek-campo input { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--bg); width: 100%; }
.ek-r24 { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ek-r24-pista { position: relative; height: 14px; }
.ek-r24-pista i { position: absolute; display: block; }
.ek-r24-base { left: 0; right: 0; top: 2px; height: 10px; border-radius: 5px; background: var(--seg); }
.ek-r24-jor { top: 2px; height: 10px; border-radius: 3px; background: var(--acero); }
.ek-r24-p { top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; background: var(--card); border: 2px solid var(--text); }
.ek-r24-et { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ek-franja { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.ek-franja-fila { display: flex; align-items: center; gap: 8px; }
.ek-franja-k { width: 32px; flex-shrink: 0; font-family: var(--mincho); font-size: 18px; text-align: center; }
.ek-franja-n { flex: 1; min-width: 0; height: 40px; border: 0; border-bottom: 1px solid transparent; background: transparent; font-size: 16px; font-weight: 600; padding: 0 2px; }
.ek-franja-n:focus { border-bottom-color: var(--pend); outline: none; }
.ek-franja-h { width: 108px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--bg); font-size: 15px; font-variant-numeric: tabular-nums; }
.ek-select { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 8px; font-size: 15px; }
.ek-franja .ek-seg-b { min-height: 36px; font-size: 13px; }
.ek-anadir { min-height: 48px; border-radius: 18px; border: 1px dashed var(--pend); background: transparent; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); }
.ek-opcion { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; text-align: left; cursor: pointer; transition: border-color .2s; color: var(--text); }
.ek-opcion.on { border-color: var(--acero); }
.ek-opcion.on .ek-caja { background: var(--acero); border-color: var(--acero); color: var(--on-acero); }
.ek-opcion > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.ek-opcion-t { font-size: 15px; font-weight: 600; }
.ek-opcion-d { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ek-consent { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  .ek *, .ek *::before, .ek *::after { animation: none !important; transition: none !important; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .ek *, .ek *::before, .ek *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
