/* Les 4 Saisons — estilo restaurante dominicano: madera, crema, rojo y dorado */
:root {
  /* naranja de la marca (antes marrón madera) */
  --brand-900: #9a3412;
  --brand-800: #b83e0b;
  --brand-700: #ea580c;
  --brand-500: #f97316;
  --brand-300: #fdba74;
  --cream: #fff6e0;
  --cream-2: #fde8b4;
  --paper: #fffaf0;
  --red: #c4161c;
  --red-dark: #8e0d12;
  --gold: #ffc629;
  --gold-dark: #e09a00;
  --green: #1e8e3e;
  --green-dark: #14622a;
  --blue: #0a3d91;
  --ink: #2b1a10;
  --muted: #78716c;
  --line: #ecd9ad;
  --wa: #25d366;
  --shadow: 0 10px 30px rgba(124, 45, 18, .28);
  --radius: 18px;
  --font-display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-script: 'Kaushan Script', 'Brush Script MT', cursive;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--brand-800);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: .3px; }
a { color: inherit; }
[hidden] { display: none !important; }

.wood {
  background-color: var(--brand-700);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 118px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #f2711c, #d9520b);
}
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  background: var(--red); color: #fff;
  box-shadow: 0 4px 0 var(--red-dark);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--brand-900); box-shadow: 0 4px 0 var(--gold-dark); }
.btn.gold:active { box-shadow: 0 1px 0 var(--gold-dark); }
.btn.green { background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.btn.green:active { box-shadow: 0 1px 0 var(--green-dark); }
.btn.wa { background: var(--wa); color: #06351a; box-shadow: 0 4px 0 #128c43; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:active { transform: none; box-shadow: inset 0 0 0 2px currentColor; }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line), inset 0 0 0 1px var(--line); }
.btn.light:active { box-shadow: inset 0 0 0 1px var(--line); }
.btn.sm { padding: 7px 14px; font-size: .88rem; box-shadow: 0 3px 0 var(--red-dark); }
.btn.sm.gold { box-shadow: 0 3px 0 var(--gold-dark); }
.btn.sm.green { box-shadow: 0 3px 0 var(--green-dark); }
.btn.sm.light { box-shadow: 0 2px 0 var(--line), inset 0 0 0 1px var(--line); }
.btn.sm.ghost { box-shadow: inset 0 0 0 2px currentColor; }
.btn.block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08);
  display: inline-grid; place-items: center; font-size: 1.1rem; flex: none;
}
.icon-btn:hover { background: rgba(0,0,0,.16); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- formularios ---------- */
.field { display: grid; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field > span, .label { font-weight: 800; font-size: .86rem; color: var(--brand-800); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; min-width: 0;
}
.input:focus { border-color: var(--gold-dark); outline: none; }
textarea.input { resize: vertical; min-height: 70px; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.seg { display: flex; background: var(--cream-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button {
  flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px 12px; font-weight: 800;
  color: var(--brand-800); white-space: nowrap;
}
.seg button.on { background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }

/* ---------- barra superior (tienda) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); color: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.4); border-bottom: 3px solid var(--gold); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--gold); white-space: nowrap; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 800; opacity: .9; white-space: nowrap; }
.nav a:hover { color: var(--gold); opacity: 1; }
.lang-select {
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 8px 10px; font-weight: 800;
}
.lang-select option { color: #000; }
.cart-btn { position: relative; margin-left: 0; }
.cart-count {
  background: #fff; color: var(--red); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center; font-size: .8rem; font-weight: 900;
}
@media (max-width: 980px) {
  .nav { display: none; }
  .topbar .spacer { margin-left: auto; }
  .brand b { font-size: 1.1rem; }
  .cart-btn .txt { display: none; }
}

/* ---------- portada ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 50% 62%, #fff3b0 0 7%, #ffd65a 12%, rgba(255,170,60,.55) 26%, transparent 46%),
    linear-gradient(180deg, #1583c9 0%, #49b4e6 34%, #ffd27a 60%, #ff9d47 66%, #0e86b3 66.5%, #0a5f8f 100%);
  padding: 34px 0 0;
}
.hero::before, .hero::after {
  content: ''; position: absolute; top: -40px; width: 340px; height: 340px; pointer-events: none;
  background:
    conic-gradient(from 200deg at 50% 50%, transparent 0 8deg, #17702f 8deg 20deg, transparent 20deg 34deg, #1e8e3e 34deg 47deg, transparent 47deg 62deg, #14622a 62deg 76deg, transparent 76deg 92deg, #1e8e3e 92deg 104deg, transparent 104deg);
  border-radius: 50%; opacity: .95; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
}
.hero::before { left: -150px; }
.hero::after { right: -150px; transform: scaleX(-1); }
.hero-logo { height: auto; width: min(420px, 78vw); margin: 0 auto -6px; position: relative; z-index: 2; filter: drop-shadow(0 14px 18px rgba(0,0,0,.4)); }
.hero-board { position: relative; z-index: 2; padding: 26px 0 34px; border-top: 4px solid var(--gold); margin-top: -34px; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 3rem); text-shadow: 0 3px 0 rgba(0,0,0,.45); padding-top: 26px; text-wrap: balance; }
.hero .script { font-family: var(--font-script); color: var(--gold); font-size: clamp(1.3rem, 3.4vw, 2rem); margin: 4px 0 18px; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.hero .row { justify-content: center; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.badge-pill { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.closed-banner { background: var(--gold); color: var(--brand-900); text-align: center; font-weight: 900; padding: 10px 16px; }

/* ---------- menú ---------- */
.menu-section { background: var(--cream); padding: 34px 0 60px; background-image: radial-gradient(rgba(196,22,28,.05) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.section-title { text-align: center; margin-bottom: 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--red); text-shadow: 0 2px 0 #fff, 0 3px 0 var(--gold); }
.section-sub { text-align: center; color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.chips {
  position: sticky; top: calc(67px + env(safe-area-inset-top)); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px;
  background: linear-gradient(var(--cream) 80%, transparent); scrollbar-width: none; justify-content: safe center;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 2px solid var(--red); background: #fff; color: var(--red); border-radius: 999px;
  padding: 8px 16px; font-weight: 900; text-decoration: none;
}
.chip.on, .chip:hover { background: var(--red); color: #fff; }
.cat-title {
  display: inline-block; margin: 26px 0 14px; padding: 6px 26px 8px; color: #fff; font-size: 1.6rem;
  background: var(--red); border-radius: 10px 26px 10px 26px; transform: rotate(-1.5deg);
  box-shadow: 0 4px 0 var(--red-dark); text-shadow: 0 2px 0 rgba(0,0,0,.3); scroll-margin-top: 130px;
}
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); cursor: pointer; text-align: left; padding: 0;
  transition: transform .15s, box-shadow .15s; position: relative;
}
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--line), var(--shadow); } }
.card:active { transform: scale(.985); }
.card .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--cream-2); }
.img-fallback { display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--cream-2), #ffd98a); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.3rem; color: var(--brand-800); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--red); white-space: nowrap; }
.price small { font-family: var(--font-body); font-weight: 800; font-size: .78rem; color: var(--muted); margin-right: 4px; }
.ribbon { position: absolute; top: 12px; left: -6px; background: var(--gold); color: var(--brand-900); font-weight: 900; font-size: .78rem; padding: 4px 12px; border-radius: 0 999px 999px 0; box-shadow: 0 2px 4px rgba(0,0,0,.25); text-transform: uppercase; }
.card.soldout { opacity: .6; cursor: not-allowed; }

/* ---------- pasos / contacto / pie ---------- */
.how { padding: 46px 0; color: #fff; }
.how .section-title { color: var(--gold); text-shadow: 0 3px 0 rgba(0,0,0,.4); margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.step { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px; text-align: center; }
.step .n { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--brand-900); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; margin: 0 auto 10px; }
.step h3 { font-size: 1.3rem; }
.step p { margin: 6px 0 0; opacity: .88; }
.contact { background: var(--green-dark); color: #fff; text-align: center; padding: 40px 0; background-image: radial-gradient(rgba(255,255,255,.06) 2px, transparent 2px); background-size: 26px 26px; }
.contact h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.contact p { margin: 6px 0 18px; font-weight: 700; opacity: .92; }
.footer { color: #ffe9d6; padding: 26px 0 100px; text-align: center; font-size: .9rem; }
.footer a { color: var(--gold); font-weight: 800; }

/* ---------- panel lateral / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30, 12, 4, .6); z-index: 50; display: none; }
.overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--paper); z-index: 60;
  transform: translateX(105%); transition: transform .25s ease, visibility .25s; display: flex; flex-direction: column; box-shadow: var(--shadow);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer .panel-head { padding-top: calc(14px + env(safe-area-inset-top)); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--red); color: #fff; }
.panel-head h2 { font-size: 1.4rem; flex: 1; }
.panel-head .icon-btn { background: rgba(255,255,255,.2); color: #fff; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px; }
.panel-foot { padding: 14px 16px; border-top: 2px solid var(--line); background: var(--cream); }
.modal {
  position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none;
  width: min(560px, calc(100% - 20px)); max-height: calc(100dvh - 20px); background: var(--paper); border-radius: 22px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, opacity .2s, visibility .2s;
  visibility: hidden;
}
.modal.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; visibility: visible; }
.modal.wide { width: min(760px, calc(100% - 20px)); }
.modal .ph { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; flex: none; }
.modal .close-x { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); z-index: 2; }
.opt-group { margin: 14px 0; }
.opt-group h4 { font-size: 1.05rem; color: var(--brand-800); margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 7px; background: #fff; font-weight: 700; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--red); background: #fff1f1; }
.opt input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.opt .p { margin-left: auto; color: var(--red); font-weight: 900; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font-weight: 900; font-size: 1.1rem; }
.qty b { min-width: 30px; text-align: center; }
/* extras opcionales (mini wraps, mini hamburguesas…) */
.opt.addon { cursor: default; }
.opt.addon > span { display: flex; flex-direction: column; min-width: 0; }
.opt.addon small { color: var(--muted); font-weight: 700; }
.opt.addon .qty { margin-left: auto; flex: none; }
.opt.addon .qty button { width: 32px; height: 32px; }
.opt.addon input { width: 46px; height: 32px; accent-color: auto; border: 0; background: transparent; text-align: center; font-weight: 900; font-size: 1rem; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-line .n { font-weight: 900; }
.cart-line .d { color: var(--muted); font-size: .86rem; }
.cart-line .t { font-weight: 900; color: var(--red); text-align: right; white-space: nowrap; }
.totals { display: grid; gap: 4px; margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .big { font-family: var(--font-display); font-size: 1.4rem; color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty .em { font-size: 3rem; }
.float-cart {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
  justify-content: space-between; padding: 14px 20px; font-size: 1.05rem;
}
.float-cart.show { display: flex; }
@media (min-width: 821px) { .float-cart { left: auto; right: 24px; bottom: 24px; min-width: 300px; } }

.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0; }
.tracker div { text-align: center; font-size: .78rem; font-weight: 800; color: var(--muted); }
.tracker div::before { content: ''; display: block; height: 8px; border-radius: 999px; background: var(--line); margin-bottom: 6px; }
.tracker div.done { color: var(--green-dark); }
.tracker div.done::before { background: var(--green); }
.cancelled-tag { background: #fde2e2; color: var(--red-dark); font-weight: 900; padding: 8px 12px; border-radius: 10px; text-align: center; }
.success-ico { width: 70px; height: 70px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.2rem; display: grid; place-items: center; margin: 4px auto 10px; }

#toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 200;
  background: var(--brand-900); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 800; transition: .25s; max-width: 90vw; text-align: center;
  border: 2px solid var(--gold);
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.err { border-color: var(--red); background: var(--red-dark); }

/* =================== ADMINISTRACIÓN =================== */
body.admin { background: #f6ecd6; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: calc(20px + env(safe-area-inset-top)) 20px 20px; }
.login-card { background: var(--paper); border-radius: 24px; padding: 28px; width: min(400px, 100%); text-align: center; box-shadow: var(--shadow); border-top: 8px solid var(--gold); }
.login-card img { width: 170px; height: auto; margin: 0 auto 8px; }
.login-card h1 { color: var(--red); font-size: 1.6rem; margin-bottom: 6px; }
.login-card #pin { text-align: center; font-size: 1.4rem; letter-spacing: 6px; }
.login-card .field { text-align: left; }
.login-card .link-btn { margin-top: 12px; }
.err-msg { color: var(--red); font-weight: 800; min-height: 1.4em; margin: 0 0 8px; }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100dvh; }
.side { color: #fff; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 12px 16px; gap: 4px; position: sticky; top: 0; height: 100dvh; border-right: 3px solid var(--gold); }
.side .brand { margin: 0 4px 16px; }
.side .tab {
  display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: #fff1e6; text-align: left;
  padding: 12px 14px; border-radius: 12px; font-weight: 800; font-size: 1rem; width: 100%; position: relative;
}
.side .tab .ico { font-size: 1.2rem; width: 24px; text-align: center; }
.side .tab:hover { background: rgba(255,255,255,.08); }
.side .tab.on { background: var(--gold); color: var(--brand-900); }
.side .tab .dot { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 8px; }
.side .bottom { margin-top: auto; display: grid; gap: 8px; }
.side .bottom .lang-select { width: 100%; }
.side .bottom a, .side .bottom button.link { color: #fff1e6; font-weight: 800; text-decoration: none; background: none; border: 0; text-align: left; padding: 6px 14px; }
.main { padding: calc(22px + env(safe-area-inset-top)) clamp(14px, 3vw, 30px) 60px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 1.9rem; color: var(--brand-800); flex: 1; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px; z-index: 40; border-right: 0; border-top: 3px solid var(--gold); overflow-x: auto; }
  .side .brand, .side .bottom { display: none; }
  .side .tab { flex-direction: column; gap: 2px; font-size: .68rem; padding: 6px 4px; flex: 1; min-width: 58px; text-align: center; }
  .side .tab .dot { position: absolute; top: 2px; right: 6px; margin: 0; }
  .main { padding-bottom: 110px; }
  .mobile-only { display: inline-flex !important; }
}
.mobile-only { display: none; }

.box { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 4px 0 var(--line); }
.box h2 { font-size: 1.25rem; color: var(--red); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat span { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--brand-800); }
.stat.warn b { color: var(--red); }

.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: #efdfba; border-radius: var(--radius); padding: 10px; min-height: 160px; }
.col > h3 { display: flex; justify-content: space-between; padding: 4px 6px 10px; font-size: 1.1rem; color: var(--brand-800); }
.col > h3 i { font-style: normal; background: var(--brand-700); color: #fff; border-radius: 999px; padding: 0 9px; font-family: var(--font-body); font-weight: 800; font-size: .85rem; }
.order { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; border-left: 6px solid var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.order.s-new { border-left-color: var(--red); animation: pulse 1.6s 3; }
.order.s-preparing { border-left-color: var(--gold-dark); }
.order.s-ready { border-left-color: var(--green); }
.order.s-delivered { border-left-color: var(--muted); }
.order.s-cancelled { border-left-color: #999; opacity: .7; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(196,22,28,.25); } }
.order .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 900; }
.order .meta { font-size: .84rem; color: var(--muted); margin: 2px 0 6px; }
.order ul { margin: 6px 0; padding-left: 18px; font-size: .92rem; }
.order .note { background: #fff7d6; border-radius: 8px; padding: 6px 8px; font-size: .86rem; margin: 6px 0; }
.order .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .76rem; font-weight: 900; background: var(--cream-2); color: var(--brand-800); }
.tag.red { background: #fde2e2; color: var(--red-dark); }
.tag.green { background: #dcf3e2; color: var(--green-dark); }
.tag.blue { background: #dfe9fb; color: var(--blue); }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.t th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t tr.low td { background: #fff1f1; }
.acts-cell { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.subtabs { display: inline-flex; margin-bottom: 14px; max-width: 100%; overflow-x: auto; }

/* caja */
.pos { display: grid; grid-template-columns: 1fr 350px; gap: 16px; align-items: start; }
@media (max-width: 1040px) { .pos { grid-template-columns: 1fr; } }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos-item { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.pos-item:hover { border-color: var(--red); }
.pos-item .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; font-size: 1.8rem; }
.pos-item span { padding: 8px 10px 0; font-weight: 800; font-size: .88rem; line-height: 1.2; }
.pos-item b { padding: 2px 10px 9px; color: var(--red); }
.ticket { position: sticky; top: 14px; }
.ticket-lines { max-height: 40vh; overflow-y: auto; margin-bottom: 10px; }
.tl { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.tl .q { display: inline-flex; align-items: center; gap: 4px; }
.tl .q button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--cream-2); font-weight: 900; }
.tl small { color: var(--muted); display: block; }
.change-box { background: #dcf3e2; color: var(--green-dark); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; font-weight: 900; margin-bottom: 12px; }

/* productos */
.prod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.prod-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 10px; align-items: center; }
.prod-row .ph { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; font-size: 2rem; }
.prod-row h3 { font-size: 1.05rem; }
.prod-row .acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.var-row { display: grid; grid-template-columns: 1fr 110px 40px; gap: 8px; margin-bottom: 8px; }
.opt-row { display: grid; grid-template-columns: 1fr 1.6fr 40px; gap: 8px; margin-bottom: 8px; }
@media (max-width: 560px) { .opt-row { grid-template-columns: 1fr 40px; } .opt-row .input:nth-child(2) { grid-column: 1; grid-row: 2; } }
.img-pick { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.img-pick .ph { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; font-size: 1.8rem; flex: none; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; align-items: start; }
.savebar { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; margin-top: 16px; z-index: 5; }
@media (max-width: 860px) { .savebar { bottom: 84px; } }

/* flyers */
.fl { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .fl { grid-template-columns: 1fr; } }
.fl-templates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 1180px) { .fl-templates { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }
.fl-templates button { border: 3px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: #ddd; display: flex; flex-direction: column; }
.fl-templates button.on { border-color: var(--red); }
.fl-templates canvas { width: 100%; height: auto; display: block; }
.fl-templates span { font-size: .72rem; font-weight: 800; padding: 4px; background: #fff; width: 100%; text-align: center; }
.fl-stage { background: #d9c9a3; border-radius: var(--radius); padding: 14px; display: grid; place-items: center; background-image: linear-gradient(45deg, rgba(0,0,0,.05) 25%, transparent 25% 75%, rgba(0,0,0,.05) 75%), linear-gradient(45deg, rgba(0,0,0,.05) 25%, transparent 25% 75%, rgba(0,0,0,.05) 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.fl-stage canvas { max-width: 100%; max-height: 74vh; height: auto; width: auto; box-shadow: var(--shadow); touch-action: none; cursor: grab; background: #fff; }
.fl-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.layer-list { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.layer-list button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; text-align: left; font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer-list button.on { border-color: var(--red); background: #fff1f1; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); padding: 0; }
.fl-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.fl-mine figure { margin: 0; background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.fl-mine img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; }
.fl-mine figcaption { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 8px; font-size: .8rem; font-weight: 800; }
.fl-mine figcaption span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type=range] { width: 100%; accent-color: var(--red); }
input[type=color] { width: 44px; height: 36px; border: 2px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }

/* ticket impreso */
#receipt { display: none; }
@media print {
  body > *:not(#receipt) { display: none !important; }
  #receipt { display: block; font-family: monospace; font-size: 12px; width: 72mm; color: #000; padding: 4mm; }
  #receipt h3 { font-family: monospace; font-weight: 700; text-align: center; font-size: 15px; }
  #receipt .c { text-align: center; }
  #receipt .r { display: flex; justify-content: space-between; gap: 8px; }
  #receipt hr { border: 0; border-top: 1px dashed #000; }
}
/* =================== OFERTAS =================== */
html { -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; }
.price s, .p s, .t s { color: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: .72em; margin-left: 3px; }
.ribbon.hot { background: var(--red); color: #fff; }
.chip.hot { border-color: var(--gold-dark); background: var(--gold); color: var(--brand-900); }
.chip.hot.on, .chip.hot:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cta .plus { display: none; }
.menu-section { padding-top: 6px; }
.menu-section .chips { padding-inline: 16px; }
#menu { padding-top: 22px; scroll-margin-top: 120px; }
.offers { padding: 22px 0 6px; scroll-margin-top: 120px; }
.offer-list {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(16px, calc((100% - 1160px) / 2)) 18px; scroll-padding-inline: max(16px, calc((100% - 1160px) / 2));
}
.offer-list::-webkit-scrollbar { display: none; }
.offer-card {
  flex: 0 0 min(330px, 84%); scroll-snap-align: start; background: var(--paper); border: 3px solid var(--gold);
  border-radius: 22px; overflow: hidden; padding: 0; text-align: left; display: flex; flex-direction: column;
  box-shadow: 0 5px 0 var(--gold-dark); transition: transform .12s;
}
.offer-card:active { transform: scale(.98); }
.oc-img { position: relative; aspect-ratio: 16 / 10; background: var(--brand-800); }
.oc-img img, .oc-img .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.offer-card.poster .oc-img { aspect-ratio: 4 / 5; }
.offer-card.poster .oc-img img { object-fit: contain; }
.oc-badge {
  position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font-family: var(--font-display);
  font-size: 1.25rem; padding: 6px 14px; border-radius: 999px; transform: rotate(4deg);
  box-shadow: 0 3px 0 var(--red-dark), 0 6px 14px rgba(0,0,0,.3); max-width: calc(100% - 20px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.oc-body h3 { font-size: 1.3rem; color: var(--brand-800); }
.oc-body p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.oc-foot small { font-weight: 800; color: var(--red-dark); font-size: .78rem; white-space: nowrap; }
.poster-img { object-fit: contain !important; background: var(--brand-900); max-height: 58dvh; aspect-ratio: auto !important; }
.sheet-grip { display: none; }
.fc-count { background: #fff; color: var(--green-dark); border-radius: 999px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-weight: 900; font-size: .85rem; padding: 0 7px; }
.float-cart { align-items: center; gap: 10px; }
.float-cart > span:nth-child(2) { flex: 1; text-align: left; }
.step { display: flex; flex-direction: column; align-items: center; }

/* ofertas en el panel */
.offer-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.offer-admin .oa { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.offer-admin .oa img, .offer-admin .oa .img-fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-800); }
.offer-admin .oa.poster img { object-fit: contain; }
.offer-admin .oa .b { padding: 10px 12px 12px; display: grid; gap: 6px; }
.offer-admin .oa h3 { font-size: 1.1rem; }
.offer-admin .oa .price { white-space: normal; line-height: 1.3; }
.offer-admin .oa.dim { opacity: .62; }
.pos-bar { display: none; }

/* inventario en tarjetas */
.inv-tools { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.inv-tools .input { flex: 1; }
.inv-tools .chip { padding: 10px 14px; }
.inv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.inv-card { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; display: grid; gap: 10px; box-shadow: 0 3px 0 var(--line); }
.inv-card.low { border-color: #f0a5a5; background: #fff5f5; box-shadow: 0 3px 0 #f0a5a5; }
.inv-name { border: 0; background: none; text-align: left; padding: 0; display: grid; gap: 2px; cursor: pointer; }
.inv-name b { font-size: 1.05rem; }
.inv-name b span { color: var(--muted); font-size: .8rem; }
.inv-row { display: flex; align-items: center; gap: 10px; }
.stepper {
  width: 56px; height: 56px; border-radius: 16px; border: 0; font-size: 2rem; font-weight: 900; line-height: 1; flex: none;
  background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-dark); touch-action: manipulation;
}
.stepper.out { background: var(--gold); color: var(--brand-900); box-shadow: 0 4px 0 var(--gold-dark); }
.stepper:active { transform: translateY(3px); box-shadow: none; }
.stepper:disabled { opacity: .35; }
.inv-qty { flex: 1; text-align: center; }
.inv-qty b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--brand-800); }
.inv-qty span { color: var(--muted); font-weight: 800; }
.meter { height: 7px; background: var(--cream-2); border-radius: 9px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 9px; }
.inv-card.low .meter i { background: var(--red); }
.inv-card .tag { justify-self: start; }
.mv-list { display: grid; gap: 8px; }
.mv { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.mv .tag { flex: none; min-width: 74px; text-align: center; font-size: .85rem; }
.mv small { display: block; color: var(--muted); }
.big-num { display: flex; align-items: center; gap: 10px; }
.big-num .input { font-size: 2.2rem !important; text-align: center; font-weight: 900; padding: 12px; }
.big-num span { font-weight: 900; font-size: 1.2rem; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
.quick .btn { padding: 12px 0; font-size: 1.05rem; }
.will-be { text-align: center; font-weight: 900; color: var(--green-dark); margin: 6px 0 12px; }
.will-be.bad { color: var(--red); }

/* avisos e instalación */
.notice { display: flex; gap: 12px; align-items: center; background: #fff7d6; border: 2px solid var(--gold); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.notice > span { font-size: 1.6rem; }
.notice p { margin: 0; flex: 1; font-weight: 700; font-size: .92rem; }
.install-bar { display: flex; align-items: center; gap: 10px; background: var(--paper); padding: 10px 16px; border-bottom: 2px solid var(--line); }
.install-bar img { width: 40px; height: auto; flex: none; }
.install-bar div { flex: 1; min-width: 0; line-height: 1.2; }
.install-bar small { display: block; color: var(--muted); font-weight: 700; }
.ios-steps { counter-reset: s; display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.ios-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.ios-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; font-weight: 900; }
.my-order { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.my-order .mini { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.my-order .mini i { height: 6px; border-radius: 9px; background: var(--line); }
.my-order .mini i.on { background: var(--green); }
.my-order small { color: var(--muted); }
.top-icon { position: relative; background: rgba(255,255,255,.14); color: #fff; }
.top-icon .dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--brand-700); }

/* =================== MÓVIL =================== */
@media (max-width: 860px) {
  /* 16px evita que iPhone haga zoom al tocar un campo */
  .input, select.input, textarea.input, .lang-select { font-size: 16px; }
  .side { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .side { overflow-x: hidden; }
  .side .tab { min-width: 0; flex: 1 1 0; padding: 6px 1px; font-size: .58rem; }
  .side .tab span:not(.ico):not(.dot) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .board { grid-template-columns: repeat(4, 86vw); scroll-snap-type: x mandatory; margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; }
  .board .col { scroll-snap-align: start; }
  .page-head h1 { font-size: 1.5rem; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
  .stat { padding: 10px; border-radius: 14px; }
  .stat span { font-size: .62rem; letter-spacing: 0; display: block; line-height: 1.2; }
  .stat b { font-size: 1.15rem; margin-top: 2px; }
  .subtabs { display: flex; width: 100%; }
  .subtabs button { flex: 1; font-size: .84rem; padding: 9px 6px; }
  .inv-list { grid-template-columns: 1fr; }
  .fl > div:nth-child(2) { order: -1; }
  .fl-stage { padding: 8px; }
  .fl-stage canvas { max-height: 62dvh; }
}
@media (max-width: 1040px) {
  .pos-bar {
    display: flex; position: fixed; left: 10px; right: 10px; z-index: 35; justify-content: space-between; align-items: center;
    bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px 18px;
  }
  .pos-bar[hidden] { display: none; }
  .main.has-posbar { padding-bottom: 170px; }
}
@media (min-width: 861px) and (max-width: 1040px) { .pos-bar { bottom: 16px; left: 236px; } }

@media (max-width: 700px) {
  /* hojas inferiores, como en las apps */
  .modal, .modal.wide {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92dvh;
    border-radius: 22px 22px 0 0; transform: translateY(100%); opacity: 1;
  }
  .modal.open { transform: none; }
  .modal .sheet-grip { display: block; position: absolute; top: 7px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 9px; background: rgba(255,255,255,.85); z-index: 3; box-shadow: 0 0 4px rgba(0,0,0,.3); }
  .modal .ph { aspect-ratio: 16 / 9; }
  .panel-body { overscroll-behavior: contain; }
  .panel-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .drawer { width: 100%; }
  .opt { padding: 13px; }
  .qty button { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  .topbar .wrap { height: 56px; gap: 10px; }
  .brand img { width: 38px; height: auto; }
  .chips { top: calc(59px + env(safe-area-inset-top)); }
  .cat-title { font-size: 1.35rem; margin: 20px 0 12px; scroll-margin-top: 112px; }
  .offers, #menu { scroll-margin-top: 108px; }
  .section-title { font-size: 1.75rem; }
  .section-sub { font-size: .92rem; margin-bottom: 10px; }

  /* portada compacta: el menú aparece antes */
  .hero { padding-top: 14px; }
  .hero::before, .hero::after { width: 210px; height: 210px; top: -30px; }
  .hero::before { left: -110px; }
  .hero::after { right: -110px; }
  .hero-logo { width: min(270px, 70vw); }
  .hero-board { padding: 16px 0 22px; margin-top: -26px; }
  .hero h1 { padding-top: 20px; font-size: 1.55rem; }
  .hero .script { margin: 2px 0 14px; font-size: 1.3rem; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; padding: 14px; }
  .badges { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin: 16px -16px 0; padding: 0 16px; }
  .badges::-webkit-scrollbar { display: none; }
  .badge-pill { flex: none; font-size: .82rem; }

  /* tarjetas en fila: foto a la izquierda, como PedidosYa */
  .products { grid-template-columns: 1fr; gap: 10px; }
  .card { flex-direction: row; border-radius: 16px; box-shadow: 0 3px 0 var(--line); }
  .card .ph { width: 116px; min-height: 116px; aspect-ratio: auto; flex: none; align-self: stretch; height: auto; }
  .card .ph.img-fallback { font-size: 2rem; }
  .card .body { padding: 10px 12px; gap: 3px; min-width: 0; }
  .card h3 { font-size: 1.12rem; }
  .card p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .foot { margin-top: 4px; }
  .card .price { font-size: 1.15rem; }
  .card .cta { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 1.5rem; line-height: 1; flex: none; }
  .card .cta .lbl { display: none; }
  .card .cta .plus { display: inline; }
  .ribbon { top: 6px; left: 0; font-size: .64rem; padding: 3px 8px; }

  .offer-card { flex-basis: 84%; scroll-snap-align: center; }
  .offer-list { padding-inline: 8%; scroll-padding-inline: 8%; }

  .how { padding: 32px 0; }
  .step { flex-direction: row; text-align: left; gap: 14px; padding: 14px 16px; align-items: center; }
  .step .n { margin: 0; flex: none; }
  .contact { padding: 30px 0; }
  .contact .btn { width: 100%; }

  .float-cart { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 14px 16px; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- cuentas de clientes ---------- */
.top-icon.signed { background: var(--gold); color: var(--brand-900); box-shadow: 0 0 0 2px #fff inset; }
.acc-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.acc-card > div { flex: 1; }
.acc-card small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-card.pitch { display: block; background: linear-gradient(135deg, #fff7ec, #ffe9cf); border-color: var(--brand-300); }
.acc-card.pitch p { margin: 0 0 10px; }
.acc-av { flex: none !important; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-700); color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.section-sub { text-align: left; font-family: var(--font-body); font-weight: 900; font-size: 1rem; color: var(--brand-800); margin: 6px 0 10px; }
.acc-hint { display: flex; align-items: center; gap: 10px; background: #fff7ec; border: 1px dashed var(--brand-300); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: .9rem; font-weight: 700; }
.acc-hint span { flex: 1; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.1rem; width: 40px; height: 40px; opacity: .6; }
.link-btn { border: 0; background: none; color: var(--red); font-weight: 900; text-decoration: underline; padding: 4px; }
.forgot { margin: -4px 0 6px; }
.forgot summary { cursor: pointer; color: var(--brand-800); font-weight: 800; font-size: .9rem; }
.forgot .hint { margin: 6px 0 8px; }
.addr-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.addr-row textarea { grid-column: 1; }
.addr-row .icon-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.danger-zone { margin-top: 18px; }
.danger-zone summary { cursor: pointer; color: var(--muted); font-weight: 800; font-size: .88rem; text-align: center; }
.danger-zone form { margin-top: 10px; }
.danger-zone .btn { background: var(--red-dark); }
/* panel: equipo y clientes */
.member { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.member > div { flex: 1; min-width: 0; }
.member small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.member .row { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cust-list { display: grid; gap: 10px; }
.cust { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(0,0,0,.06); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.cust small { color: var(--muted); }
.cust .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.side .who { color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 14px; opacity: .9; }
.temp-pw { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; font-weight: 900; letter-spacing: 2px; text-align: center; background: var(--cream-2); border-radius: 12px; padding: 14px; user-select: all; word-break: break-all; }
