/* Tienda online Soul Simancas: misma estética que la web (crema, negro y amarillo) */
:root { --y: #FFDE00; --ink: #171916; --paper: #f4efe6; --card: #fff; --line: #e4ddcf; --muted: #6d6a60; --ok: #2f7d4a; --err: #d23c41; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.45 "Baloo Chettan 2", system-ui, sans-serif; }
body.fijo { overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: left; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2 { font-family: "Kavoon", "Baloo Chettan 2", cursive; font-weight: 400; margin: 0; line-height: 1.1; }
#app { min-height: 100vh; padding-bottom: 96px; }
.cargando { padding: 80px 20px; text-align: center; color: var(--muted); }

.top { background: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; position: sticky; top: 0; z-index: 10; }
.top .logo img { height: 40px; display: block; }
.socio { background: var(--y); color: var(--ink); font-weight: 700; padding: 7px 14px; border-radius: 999px; font-size: .92rem; }
.hero { background: var(--ink); color: #fff; padding: 6px 18px 22px; text-align: center; }
.hero h1 { font-size: 2.3rem; }
.hero h1 em { color: var(--y); font-style: normal; }
.hero p { margin: 4px 0 12px; opacity: .85; }
.estado { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.estado.on { background: #e7f5ec; color: #17402a; } .estado.off { background: #fbe4e4; color: #7a1f22; }
.aviso { margin: 12px auto 0; max-width: 620px; background: var(--y); color: var(--ink); border-radius: 12px; padding: 8px 14px; font-weight: 700; }

.chips { position: sticky; top: 60px; z-index: 9; display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; }
.carta, .pedido { max-width: 760px; margin: 0 auto; padding: 8px 14px 30px; }
.cat { scroll-margin-top: 120px; }
.cat h2 { font-size: 1.6rem; margin: 22px 2px 8px; }
.cd { color: var(--muted); margin: -4px 2px 10px; }
.prod { position: relative; display: flex; gap: 14px; width: 100%; background: var(--card); border-radius: 18px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); align-items: center; }
.prod .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prod b { font-size: 1.05rem; line-height: 1.2; }
.prod .d { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .pr { font-weight: 700; }
.prod .pr small { color: var(--muted); font-weight: 400; }
.prod img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; flex: none; background: #eee; }
.prod .en { position: absolute; top: 8px; left: 8px; background: var(--y); font-weight: 800; border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: .85rem; box-shadow: 0 0 0 2px #fff; }
.alerg { color: var(--muted); font-size: .9rem; text-align: center; margin: 20px 0; }

.barra { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%); z-index: 15; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 760px; margin: 0 auto; min-height: 56px; padding: 12px 20px; border-radius: 16px; background: var(--y); color: var(--ink); font-weight: 800; font-size: 1.05rem; text-align: center; text-decoration: none; }
.btn.dark { background: var(--ink); color: var(--y); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn.light { background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin-top: 10px; }
.btn[disabled] { opacity: .45; }
.barra .n { background: var(--y); color: var(--ink); border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; }
.barra .t { margin-left: auto; }

.pedido h1 { font-size: 2rem; margin: 6px 2px 12px; }
.volver { color: var(--muted); padding: 10px 2px; font-weight: 700; }
.bloque { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.bloque h3 { margin: 0 0 8px; font-size: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pts { background: var(--ink); color: var(--y); font-size: .85rem; padding: 3px 12px; border-radius: 999px; }
.lin { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.lin:first-child { border-top: 0; }
.lin .g { flex: 1; min-width: 0; } .lin small { display: block; color: var(--muted); font-size: .88rem; }
.lin .v { font-weight: 700; min-width: 72px; text-align: right; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.step button { width: 38px; height: 38px; font-size: 1.2rem; font-weight: 700; text-align: center; }
.step b { min-width: 22px; text-align: center; }
.radio { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-weight: 700; }
.radio input { width: 20px; height: 20px; accent-color: var(--ink); }
.radio small { color: var(--muted); font-weight: 400; }
.radio select { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; font-weight: 700; }
.f { display: block; margin: 10px 0 0; }
.f span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 3px; }
.f input, .f textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fffdf8; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--ink); }
.f input.mal { border-color: var(--err); }
.club p { margin: 4px 0 10px; color: var(--muted); }
.opt { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #fff; }
.opt.on { border-color: var(--ink); background: #fffbe0; }
.opt .box { width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 6px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.opt.r .box { border-radius: 50%; }
.opt.on .box { background: var(--ink); color: var(--y); }
.opt .g { flex: 1; min-width: 0; } .opt small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.25; } .opt small.cost { color: var(--ink); font-weight: 700; }
.opt .v { font-weight: 700; color: var(--ok); white-space: nowrap; }
.tot .r { display: flex; justify-content: space-between; padding: 3px 0; }
.tot .r.ok { color: var(--ok); font-weight: 700; }
.tot .r.big { font-size: 1.4rem; font-weight: 800; }
.msg { min-height: 1.4em; margin: 6px 2px; text-align: center; }
.msg.err { color: var(--err); font-weight: 700; }
.pagar { margin-top: 6px; }
.muted { color: var(--muted); font-size: .9rem; } .center { text-align: center; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; background: var(--paper); width: 100%; max-width: 640px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: sube .2s ease-out; }
.sheet.small { max-width: 480px; }
@keyframes sube { from { transform: translateY(30px); opacity: .6; } }
.sheet .foto { height: 210px; background: #ddd center/cover; flex: none; }
.sheet .x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.5rem; text-align: center; z-index: 2; }
.sheet .body { padding: 18px; overflow-y: auto; }
.sheet h2 { font-size: 1.6rem; margin-bottom: 4px; padding-right: 40px; }
.sheet .d { color: var(--muted); margin: 6px 0; }
.al span { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .82rem; margin: 0 4px 4px 0; }
.grp { margin-top: 14px; } .grp h3 { margin: 0; font-size: 1.05rem; } .grp .req { margin: 0 0 6px; color: var(--muted); font-size: .88rem; }
.grp.falta .req { color: var(--err); font-weight: 700; }
.sheet .foot { display: flex; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); align-items: center; }
.sheet .foot .btn { flex: 1; }
.sheet .body .btn { margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: var(--y); padding: 10px 20px; border-radius: 999px; font-weight: 700; z-index: 40; max-width: 90vw; text-align: center; }
.pie { text-align: center; color: var(--muted); font-size: .88rem; padding: 20px 14px 10px; }
.pie p { margin: 4px 0; }
@media (min-width: 720px) { .modal { align-items: center; } .sheet { border-radius: 22px; } }
