/* ═══════════════════════════════════════════════════════════════
   PideYa — sistema visual
   Rojo ají (marca) · amarillo sol andino (acento) · tinta ciruela
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --pri: #EA1D45; --pri-2: #C3102F; --pri-3: #8E0A22; --pri-s: #FFEEF1; --pri-m: #FFD6DE;
  --acc: #FFB81C; --acc-2: #E59A00; --acc-s: #FFF6DE;
  --ink: #23101F; --bg: #F7F4F2; --card: #FFFFFF; --tx: #23101F; --tx2: #6E5F68; --tx3: #9B8C94; --ln: #EDE6E3; --ln2: #E2D8D4;
  --ok: #17A05D; --ok-s: #E6F7EE; --err: #E0263B; --warn: #E59A00;
  --r: 18px; --r-sm: 12px;
  --sh: 0 1px 2px rgba(35,16,31,.04), 0 4px 14px rgba(35,16,31,.06);
  --sh-lg: 0 2px 6px rgba(35,16,31,.05), 0 18px 40px rgba(35,16,31,.12);
  --sh-pri: 0 8px 22px rgba(234,29,69,.32);
  --f-disp: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--f-body); background: var(--bg); color: var(--tx); font-size: 15px; line-height: 1.5; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--pri-2); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-disp); margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
small, .muted { color: var(--tx2); }
code { background: var(--acc-s); color: #8A5A00; padding: 2px 7px; border-radius: 7px; font-weight: 700; font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: .9em; }
.hidden { display: none !important; }
::selection { background: var(--pri-m); }

/* ── layout ── */
.topbar { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--ln); display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)); min-height: 60px; }
.topbar > b.muted { font-weight: 600; font-size: .9rem; padding-left: 12px; border-left: 1px solid var(--ln2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none !important; flex: none; }
.brand img { width: 36px; height: 36px; display: block; border-radius: 11px; box-shadow: 0 4px 10px rgba(234,29,69,.28); }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-family: var(--f-disp); font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; color: var(--ink); }
.brand .wm b span { color: var(--pri); }
.brand .wm small { font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--tx3); margin-top: 3px; }
.topbar .sp { flex: 1; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; }
.pad { padding: 16px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
@media (max-width: 520px) { .topbar > b.muted { display: none; } }

/* ── componentes ── */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; border: 1px solid var(--ln); }
.card h3 { font-size: 1.05rem; }
.btn { appearance: none; border: 0; border-radius: 14px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; background: var(--pri); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none !important; transition: transform .12s cubic-bezier(.3,.7,.4,1.5), box-shadow .2s, background .2s, filter .2s; box-shadow: 0 4px 12px rgba(234,29,69,.22); letter-spacing: -.005em; }
.btn:hover { background: var(--pri-2); box-shadow: var(--sh-pri); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--pri-m); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.sec { background: var(--pri-s); color: var(--pri-2); box-shadow: none; }
.btn.sec:hover { background: var(--pri-m); }
.btn.ghost { background: var(--card); color: var(--tx); border: 1px solid var(--ln2); box-shadow: none; }
.btn.ghost:hover { background: #FBF8F7; border-color: var(--tx3); }
.btn.acc { background: var(--acc); color: var(--ink); box-shadow: 0 4px 12px rgba(255,184,28,.35); }
.btn.acc:hover { background: var(--acc-2); }
.btn.danger { background: #FDECEE; color: var(--err); box-shadow: none; }
.btn.sm { padding: 8px 13px; font-size: .86rem; border-radius: 11px; }
.btn.lg { padding: 16px 22px; font-size: 1.04rem; width: 100%; border-radius: 16px; }
.btn.block { width: 100%; }
label { display: block; font-size: .82rem; font-weight: 700; color: var(--tx2); margin-bottom: 6px; letter-spacing: .01em; }
input, select, textarea { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--ln2); border-radius: 13px; background: #fff; color: var(--tx); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--tx3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px var(--pri-s); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--pri); transform: scale(1.2); }
.field { margin-bottom: 14px; }
.chk { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--tx); font-size: .95rem; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: .01em; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 8px; background: var(--acc-s); color: #8A5A00; font-size: .76rem; font-weight: 800; }
.tag.g { background: var(--ok-s); color: #0E7A45; }
.tag.gray { background: #F1ECEA; color: var(--tx2); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .scroll-x::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.chip { border: 1.5px solid var(--ln2); background: var(--card); border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; font: inherit; font-size: .88rem; font-weight: 700; color: var(--tx); transition: .15s; }
.chip:hover { border-color: var(--tx3); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--ln); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 0 12px; position: sticky; top: 60px; z-index: 400; scrollbar-width: none; }
.tab { border: 0; background: none; font: inherit; font-weight: 700; font-size: .92rem; color: var(--tx2); padding: 14px 14px 12px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--tx); }
.tab.on { color: var(--pri); border-bottom-color: var(--pri); }
.stat { background: var(--card); border: 1px solid var(--ln); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--pri-s); }
.stat b { display: block; font-family: var(--f-disp); font-size: 1.7rem; letter-spacing: -.02em; position: relative; z-index: 1; }
.stat small { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; position: relative; z-index: 1; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--ln); vertical-align: middle; }
th { color: var(--tx3); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
tbody tr:hover td { background: #FCFAF9; }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.empty { text-align: center; color: var(--tx2); padding: 34px 12px; }
.empty .e { font-size: 2.6rem; margin-bottom: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #C9BEC3; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px #17A05D2E; }
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; margin: 0; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #D9CFD2; border-radius: 30px; cursor: pointer; transition: .25s; }
.switch span::before { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s cubic-bezier(.3,.7,.4,1.3); box-shadow: 0 2px 5px #0003; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(22px); }

/* ── mapas ── */
.mapa { height: 320px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--ln); z-index: 1; box-shadow: var(--sh); }
.mapa.alto { height: calc(100vh - 250px); min-height: 400px; }
.leaflet-container { font-family: var(--f-body) !important; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; box-shadow: var(--sh-lg) !important; }
.leaflet-popup-content { font-weight: 600; }
.pin { background: none; border: 0; }
.pin-b { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--pri); display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 14px rgba(35,16,31,.28); }
.pin-b.rep { border-color: var(--acc); background: var(--ink); animation: pulso 2s infinite; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,184,28,.6), 0 6px 14px rgba(35,16,31,.28); } 50% { box-shadow: 0 0 0 12px rgba(255,184,28,0), 0 6px 14px rgba(35,16,31,.28); } }

/* ── modal y toast ── */
.modal-bg { position: fixed; inset: 0; background: rgba(35,16,31,.5); backdrop-filter: blur(3px); z-index: 2000; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.modal { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); animation: sube .28s cubic-bezier(.2,.8,.3,1); }
.modal::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--ln2); margin: -10px auto 14px; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 24px; padding-bottom: 24px; } .modal::before { display: none; } }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.x { border: 0; background: #F1ECEA; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--tx); }
#toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: var(--sh-lg); font-weight: 600; animation: sube .25s cubic-bezier(.2,.8,.3,1); }
.toast.err { background: var(--err); }

/* ── landing ── */
.land-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px max(20px, calc((100% - 1160px) / 2)); }
.land-nav .brand .wm b, .land-nav .brand .wm b span { color: #fff; }
.land-nav .brand .wm small { color: #FFD6DE; }
.land-nav .brand img { box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.land-nav a.pill { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 9px 16px; border-radius: 999px; font-size: .88rem; backdrop-filter: blur(6px); }
.hero { position: relative; overflow: hidden; color: #fff; padding: 110px 20px 130px; background:
    radial-gradient(1200px 500px at 85% -10%, #FF6B57 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #8E0A22 0%, transparent 60%),
    linear-gradient(160deg, #F2264C 0%, #D6113A 55%, #A50C2C 100%); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M0 28 14 14 28 28 42 14 56 28M0 56 14 42 28 56 42 42 56 56' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent); }
.hero-in { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 18px; }
.hero .kicker i { font-style: normal; background: var(--acc); color: var(--ink); border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 800; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.045em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero p { opacity: .92; max-width: 540px; margin: 0; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.hero .pts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-weight: 700; font-size: .9rem; }
.hero .pts span { display: flex; align-items: center; gap: 7px; }
.hero .pts span::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--acc); color: var(--ink); font-size: .7rem; font-weight: 900; }
.phone { justify-self: center; width: 270px; aspect-ratio: 9 / 18.5; background: #1A0A16; border-radius: 42px; padding: 11px; box-shadow: 0 40px 80px rgba(60,0,15,.45), inset 0 0 0 2px #3A2033; transform: rotate(4deg); }
.phone .scr { width: 100%; height: 100%; border-radius: 32px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; color: var(--tx); font-size: 11px; }
.phone .ph-top { background: var(--pri); color: #fff; padding: 22px 14px 14px; }
.phone .ph-top b { display: block; font-family: var(--f-disp); font-size: 15px; }
.phone .ph-srch { background: #fff; color: var(--tx3); border-radius: 10px; padding: 7px 10px; margin-top: 9px; font-weight: 600; }
.phone .ph-bd { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.phone .ph-promo { background: linear-gradient(135deg, var(--acc), #FF8A3D); border-radius: 12px; padding: 10px; color: var(--ink); font-weight: 800; font-size: 12px; }
.phone .ph-t { background: #fff; border-radius: 11px; padding: 8px; display: flex; gap: 8px; align-items: center; box-shadow: var(--sh); }
.phone .ph-t i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: var(--pri-s); display: grid; place-items: center; font-size: 16px; }
.phone .ph-t b { display: block; font-size: 11px; }
.phone .ph-t small { font-size: 9.5px; }
.phone .ph-map { margin-top: auto; height: 92px; background: #EAF1E4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='92'%3E%3Cpath d='M0 60h240M70 0v92M160 0v92M0 20h240' stroke='%23fff' stroke-width='7'/%3E%3Cpath d='M30 70 Q70 60 90 40 T170 22' fill='none' stroke='%23EA1D45' stroke-width='3.5' stroke-dasharray='6 5'/%3E%3C/svg%3E") center / cover; position: relative; }
.phone .ph-map::after { content: '🛵'; position: absolute; left: 44%; top: 30%; background: var(--ink); border: 2px solid var(--acc); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; }
.roles { position: relative; z-index: 2; max-width: 1160px; margin: -72px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rol { background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--sh-lg); cursor: pointer; border: 2px solid transparent; transition: transform .2s, border-color .2s; text-align: left; font: inherit; color: inherit; }
.rol:hover { transform: translateY(-3px); }
.rol.on { border-color: var(--pri); }
.rol .e { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 16px; background: var(--pri-s); display: grid; place-items: center; }
.rol.on .e { background: var(--pri); }
.rol b { display: block; margin: 12px 0 3px; font-family: var(--f-disp); font-size: 1.12rem; letter-spacing: -.02em; }
.rol small { font-size: .86rem; }
.land-main { max-width: 1160px; margin: 34px auto 0; padding: 0 20px 50px; display: grid; grid-template-columns: 1fr 460px; gap: 34px; align-items: start; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat { background: var(--card); border: 1px solid var(--ln); border-radius: 20px; padding: 18px; }
.feat .e { font-size: 1.4rem; }
.feat b { display: block; font-family: var(--f-disp); font-size: 1.02rem; margin: 6px 0 2px; }
.feat small { font-size: .86rem; }
.land-h { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; }
.auth { position: sticky; top: 20px; }
.auth.card { padding: 22px; border-radius: 24px; box-shadow: var(--sh-lg); }
.demo { display: flex; flex-wrap: wrap; gap: 6px; }
.foot { text-align: center; color: var(--tx3); font-size: .82rem; padding: 10px 20px 30px; }
@media (max-width: 960px) {
  .hero { padding: 96px 20px 110px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto; }
  .hero .pts { justify-content: center; }
  .phone { display: none; }
  .roles { grid-template-columns: 1fr 1fr; margin-top: -64px; }
  .land-main { grid-template-columns: 1fr; }
  .land-main .auth { order: -1; position: static; }
}
@media (max-width: 520px) {
  .land-nav a.pill { display: none; }
  .roles { gap: 10px; padding: 0 16px; }
  .rol { padding: 14px; border-radius: 18px; }
  .rol .e { width: 44px; height: 44px; font-size: 1.35rem; border-radius: 14px; }
  .rol small { display: none; }
  .feats { grid-template-columns: 1fr; }
  .land-main { padding: 0 16px 40px; }
}

/* ── app cliente ── */
.app-cli { max-width: 680px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(150px + env(safe-area-inset-bottom)); background: var(--bg); }
.ubic { display: flex; align-items: center; gap: 12px; background: var(--pri); color: #fff; padding: 14px 16px; cursor: pointer; position: sticky; top: 0; z-index: 300; box-shadow: 0 6px 20px rgba(234,29,69,.25); }
.ubic div { flex: 1; min-width: 0; }
.ubic small { display: block; font-size: .7rem; font-weight: 800; color: #FFD6DE; text-transform: uppercase; letter-spacing: .08em; }
.ubic b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.ubic .btn, .ubic button { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; border: 0; }
.ubic > span.muted { color: #fff; background: rgba(255,255,255,.18); padding: 6px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.scroll-x { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promo { flex: 0 0 80%; max-width: 310px; min-height: 118px; scroll-snap-align: start; background: linear-gradient(135deg, #FFC21A 0%, #FF8A3D 100%); color: var(--ink); border-radius: 22px; padding: 18px; cursor: pointer; position: relative; overflow: hidden; box-shadow: var(--sh); transition: transform .2s; }
.promo:hover { transform: translateY(-2px); }
.promo::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.22); }
.promo:nth-child(3n+2) { background: linear-gradient(135deg, #F2264C, #A50C2C); color: #fff; }
.promo:nth-child(3n) { background: linear-gradient(135deg, #3A1734, #23101F); color: #fff; }
.promo b { display: block; font-family: var(--f-disp); font-size: 1.15rem; line-height: 1.15; margin-bottom: 4px; padding-right: 48px; letter-spacing: -.02em; }
.promo small { color: inherit; opacity: .85; font-weight: 600; }
.promo code { background: rgba(255,255,255,.3); color: inherit; }
.promo .pe { position: absolute; right: 14px; top: 12px; font-size: 2.1rem; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.tcard { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 12px; border: 1px solid var(--ln); cursor: pointer; margin-bottom: 10px; box-shadow: var(--sh); transition: transform .18s, box-shadow .18s; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.tcard.cerrada { opacity: .5; filter: grayscale(.6); }
.tlogo { width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(145deg, var(--pri-s), #FFE4C7); display: grid; place-items: center; font-size: 30px; flex: none; }
.tcard .info { flex: 1; min-width: 0; }
.tcard b { display: block; font-size: 1.02rem; }
#tiendas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
#tiendas .tcard { margin: 0; }
.prod { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ln); }
.prod .pimg { width: 64px; height: 64px; border-radius: 18px; background: #F4EFEC; display: grid; place-items: center; font-size: 32px; flex: none; }
.prod .info { flex: 1; min-width: 0; }
.prod .info b { font-weight: 700; }
.qty { display: flex; align-items: center; gap: 2px; background: var(--pri); border-radius: 13px; color: #fff; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 20px; font-weight: 800; color: #fff; cursor: pointer; }
.qty span { min-width: 20px; text-align: center; font-weight: 800; }
.add { width: 40px; height: 40px; border-radius: 13px; border: 0; background: var(--pri); color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(234,29,69,.3); transition: transform .12s; }
.add:active { transform: scale(.9); }
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); width: min(648px, calc(100% - 24px)); z-index: 600; animation: sube .25s; }
.cartbar .btn { box-shadow: var(--sh-pri); }
.nav { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); background: rgba(35,16,31,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; display: flex; z-index: 700; padding: 6px; box-shadow: 0 14px 34px rgba(35,16,31,.35); }
.nav button { flex: 1; border: 0; background: none; padding: 8px 4px; font: inherit; font-size: .7rem; font-weight: 700; color: #BFAFB8; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 16px; transition: .2s; }
.nav button i { font-style: normal; font-size: 1.25rem; filter: grayscale(.5); transition: .2s; }
.nav button.on { color: #fff; background: var(--pri); }
.nav button.on i { filter: none; transform: translateY(-1px); }
.opt { display: flex; gap: 12px; align-items: center; border: 2px solid var(--ln); border-radius: 15px; padding: 13px; cursor: pointer; margin-bottom: 8px; background: var(--card); transition: .15s; }
.opt:hover { border-color: var(--ln2); }
.opt.on { border-color: var(--pri); background: var(--pri-s); }
.opt.off { opacity: .5; cursor: not-allowed; }
.opt .info { flex: 1; }
.sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.sum .tot { font-family: var(--f-disp); font-size: 1.3rem; font-weight: 800; border-top: 1.5px dashed var(--ln2); margin-top: 8px; padding-top: 10px; }
.tachado { text-decoration: line-through; color: var(--tx3); margin-right: 6px; font-weight: 400; }
.seg-map { height: 46vh; min-height: 260px; }
.seg-panel { background: var(--card); border-radius: 28px 28px 0 0; margin-top: -26px; position: relative; z-index: 5; padding: 22px 18px; box-shadow: 0 -10px 30px rgba(35,16,31,.1); }
.estado-big { display: flex; gap: 14px; align-items: center; }
.estado-big .ico { font-size: 2rem; width: 58px; height: 58px; border-radius: 18px; background: var(--pri-s); display: grid; place-items: center; flex: none; }
.estado-big b { font-family: var(--f-disp); font-size: 1.2rem; }
.tl { list-style: none; padding: 0; margin: 16px 0; position: relative; }
.tl li { display: flex; gap: 12px; align-items: center; padding: 7px 0; color: var(--tx3); position: relative; }
.tl li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 31px; width: 2px; height: calc(100% - 22px); background: var(--ln); }
.tl li.ok:not(:last-child)::after { background: var(--pri); }
.tl li .c { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ln2); display: grid; place-items: center; font-size: 12px; flex: none; background: #fff; position: relative; z-index: 1; }
.tl li.ok { color: var(--tx); font-weight: 700; }
.tl li.ok .c { background: var(--pri); border-color: var(--pri); color: #fff; }
.tl li.act .c { border-color: var(--pri); box-shadow: 0 0 0 5px var(--pri-s); }
@media (min-width: 1000px) {
  .app-cli { max-width: 1080px; }
  .scroll-x { flex-wrap: wrap; overflow: visible; }
  .scroll-x .promo { flex: 1 1 260px; max-width: none; }
}

/* ── paneles ── */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; align-items: start; }
.col { background: #EFE9E6; border-radius: 22px; padding: 12px; min-height: 140px; }
.col h3 { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; margin: 0; font-size: .95rem; }
.ped { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--ln); box-shadow: var(--sh); }
.ped.nuevo { border: 2px solid var(--pri); animation: pulsoR 2s 3; }
@keyframes pulsoR { 0%, 100% { box-shadow: 0 0 0 0 rgba(234,29,69,.5); } 50% { box-shadow: 0 0 0 10px rgba(234,29,69,0); } }
.ped ul { margin: 6px 0; padding-left: 18px; font-size: .9rem; }
.live { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
.live .side { max-height: calc(100vh - 250px); overflow: auto; padding-right: 2px; }
@media (max-width: 900px) { .live { grid-template-columns: 1fr; } .live .side { max-height: none; } .mapa.alto { height: 55vh; min-height: 300px; } }
.form-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; align-items: end; }
.codebox { font-family: var(--f-disp); font-size: 1.7rem; font-weight: 800; letter-spacing: .18em; background: var(--ink); color: var(--acc); padding: 12px 18px; border-radius: 14px; display: inline-block; }
@media (max-width: 600px) { .wrap { padding: 14px 12px 30px; } .card { padding: 15px; } table { font-size: .86rem; } th, td { padding: 9px 6px; } }

/* ═══ paneles: piezas compartidas ═══ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 46%), 1fr)); gap: 12px; margin-bottom: 18px; }
.stat i { position: absolute; right: 14px; top: 14px; font-style: normal; font-size: 1.05rem; width: 38px; height: 38px; border-radius: 12px; background: var(--pri-s); display: grid; place-items: center; z-index: 1; }
.stat:has(i)::after { display: none; }
.stat:has(i) small { padding-right: 44px; display: block; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 1.12rem; margin: 6px 2px 12px; }
.cnt { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--pri); color: #fff; font: 800 .74rem var(--f-body); letter-spacing: 0; }
.sec-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-bar h2 { margin: 0 0 2px; }
.note { display: block; background: var(--acc-s); color: #7A4F00; border-radius: 10px; padding: 7px 10px; font-size: .85rem; font-weight: 600; margin-top: 8px; }
.open-pill { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 4px 4px 12px; border-radius: 999px; background: #F1ECEA; color: var(--tx2); font-weight: 800; font-size: .82rem; }
.open-pill.on { background: var(--ok-s); color: #0E7A45; }
.open-pill .switch { transform: scale(.85); }
.tab .cnt { margin-left: 4px; height: 20px; min-width: 20px; font-size: .7rem; vertical-align: 1px; }

/* ═══ tienda: tablero de pedidos ═══ */
.kanban .col { background: #F1EBE8; padding: 12px; border-radius: 22px; }
.kanban .col h3 { align-items: flex-start; padding: 4px 6px 12px; }
.kanban .col h3 small { display: block; font: 600 .76rem var(--f-body); color: var(--tx3); margin-top: 2px; }
.kanban .col.c-new { background: #FFE9EC; }
.kanban .col.c-new .cnt { background: var(--pri); }
.kanban .col.c-prep .cnt { background: var(--acc-2); }
.kanban .col.c-ready .cnt { background: #0E9AA7; }
.col-empty { text-align: center; color: var(--tx3); font-weight: 600; font-size: .88rem; padding: 26px 10px; border: 2px dashed var(--ln2); border-radius: 16px; }
.ped { padding: 14px; border-radius: 18px; }
.ped-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ped-h b { font-family: var(--f-disp); font-size: 1.1rem; display: block; }
.ped-h small { font-size: .78rem; }
.ped-cli { font-weight: 700; font-size: .9rem; margin: 8px 0 6px; }
.ped-it { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ped-it li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.ped-it .q, .items .q { display: inline-grid; place-items: center; min-width: 26px; height: 24px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: .78rem; flex: none; padding: 0 5px; }
.ped-tot { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed var(--ln2); margin-top: 10px; padding-top: 10px; }
.ped-tot b { font-family: var(--f-disp); font-size: 1.2rem; }
.ped-act { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
.ped-act .btn { width: 100%; padding: 11px; }
.ped-act .wait { background: #F7F3F1; border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: var(--tx2); }
@media (max-width: 760px) {
  .kanban { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 8px; scrollbar-width: none; }
  .kanban::-webkit-scrollbar { display: none; }
  .kanban .col { scroll-snap-align: center; }
}

/* ═══ tienda: productos, promos, alianzas ═══ */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 12px; }
.pitem { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--ln); border-radius: var(--r); padding: 12px; box-shadow: var(--sh); }
.pitem.off { opacity: .55; }
.pitem .pimg { width: 60px; height: 60px; border-radius: 16px; background: #F4EFEC; display: grid; place-items: center; font-size: 30px; flex: none; }
.pitem .info { flex: 1; min-width: 0; }
.pitem .info b { font-weight: 700; }
.pitem .info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitem .price { font-family: var(--f-disp); font-weight: 800; font-size: 1.05rem; margin-top: 3px; }
.pitem .ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.pitem .stk { margin: 0; display: flex; flex-direction: column; align-items: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tx3); gap: 2px; }
.pitem .stk input { width: 64px; padding: 6px 4px; text-align: center; font-weight: 700; border-radius: 10px; }
.pitem .vis { margin: 0; }
@media (max-width: 520px) {
  .pitem { flex-wrap: wrap; }
  .pitem .ctrl { width: 100%; justify-content: space-between; border-top: 1px solid var(--ln); padding-top: 10px; }
  .pitem .stk { flex-direction: row; gap: 8px; }
}
.promo-c { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--ln); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); }
.promo-c.off { opacity: .55; }
.promo-c .info { flex: 1; min-width: 0; }
.promo-c .info b { font-family: var(--f-disp); font-size: 1.05rem; line-height: 1.2; }
.promo-c .info small { display: block; margin-top: 3px; }
.pc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 800 1.1rem var(--f-disp); flex: none; background: linear-gradient(135deg, #FFC21A, #FF8A3D); color: var(--ink); }
.pc-ico.t-monto { background: linear-gradient(135deg, #F2264C, #A50C2C); color: #fff; }
.pc-ico.t-envio_gratis { background: linear-gradient(135deg, #3A1734, #23101F); color: #fff; }
.pc-ico.t-2x1 { background: linear-gradient(135deg, #7A3FF2, #4B1FB0); color: #fff; }
.ali-h { display: flex; gap: 12px; align-items: center; }
.ali-h b { font-family: var(--f-disp); font-size: 1.08rem; display: block; }
.ali-h small { display: block; }
.ali-av { width: 48px; height: 48px; border-radius: 15px; color: #fff; display: grid; place-items: center; font: 800 1.3rem var(--f-disp); flex: none; }

/* ═══ repartidor ═══ */
.b-rep { background: #F3EEEC; }
.rep-wrap { max-width: 1240px; margin: 0 auto; padding: 16px 14px 40px; display: grid; gap: 16px; grid-template-columns: 1fr; grid-template-areas: "estado" "mapa" "activos" "disp"; }
.rep-wrap #estado { grid-area: estado; } .rep-wrap #mapaRep { grid-area: mapa; height: 300px; } .rep-wrap #activos { grid-area: activos; } .rep-wrap #disponibles { grid-area: disp; }
.rep-wrap #activos:empty { display: none; }
@media (min-width: 980px) {
  .rep-wrap { grid-template-columns: 430px 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: "estado mapa" "activos mapa" "disp mapa"; align-items: start; }
  .rep-wrap #mapaRep { position: sticky; top: 76px; height: calc(100vh - 96px); }
}
.rep-hero { position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 18px; background: radial-gradient(400px 200px at 110% -20%, #5A2A4F 0%, transparent 70%), linear-gradient(160deg, #2E1529, #1A0A16); box-shadow: var(--sh-lg); }
.rep-hero.on { background: radial-gradient(400px 220px at 110% -20%, #FF6B57 0%, transparent 70%), linear-gradient(160deg, #EA1D45, #A50C2C); }
.rep-hero .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rep-hero .av { width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.rep-hero .who b { display: block; font-family: var(--f-disp); font-size: 1.15rem; }
.rep-hero .who small { display: block; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-hero .switch span { background: rgba(255,255,255,.25); }
.rep-hero .switch input:checked + span { background: var(--acc); }
.rep-state { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 1rem; }
.rep-hero .dot { background: rgba(255,255,255,.4); }
.rep-hero .dot.on { background: #7CF0B0; box-shadow: 0 0 0 4px rgba(124,240,176,.3); }
.rep-hero .gps { display: block; color: rgba(255,255,255,.7); margin-top: 3px; font-size: .8rem; }
.rep-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.rep-stats div { background: rgba(255,255,255,.11); border-radius: 14px; padding: 10px 12px; }
.rep-stats small { display: block; color: rgba(255,255,255,.7); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rep-stats b { font-family: var(--f-disp); font-size: 1.25rem; white-space: nowrap; }
.rep-hero .btn.lg { background: #fff; color: var(--pri-2); }
.rep-hero .sim { margin-top: 12px; background: none; border: 0; color: rgba(255,255,255,.75); font: 600 .82rem var(--f-body); cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.job { background: var(--card); border-radius: 24px; padding: 16px; box-shadow: var(--sh-lg); border: 1px solid var(--ln); margin-bottom: 12px; }
.job-h { display: flex; justify-content: space-between; align-items: center; }
.job-h small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); }
.job-h b { font-family: var(--f-disp); font-size: 1.3rem; }
.steps { margin: 14px 0 6px; position: relative; }
.st { display: flex; gap: 12px; padding: 8px 0; position: relative; color: var(--tx3); }
.st:first-child::after { content: ''; position: absolute; left: 21px; top: 52px; bottom: -8px; width: 2px; background: repeating-linear-gradient(var(--ln2) 0 5px, transparent 5px 9px); }
.st i { font-style: normal; width: 44px; height: 44px; border-radius: 14px; background: #F4EFEC; display: grid; place-items: center; font-size: 1.3rem; flex: none; position: relative; z-index: 1; }
.st > div { min-width: 0; }
.st small { display: block; font-size: .78rem; }
.st small:first-child { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }
.st b { display: block; font-size: 1rem; }
.st.act { color: var(--tx); }
.st.act i { background: var(--pri); box-shadow: 0 0 0 5px var(--pri-s); }
.st.act small:first-child { color: var(--pri); }
.st.ok i { background: var(--ok-s); }
.st.ok b { text-decoration: line-through; text-decoration-color: var(--tx3); }
.items { background: #F8F4F2; border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.items summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.items ul { list-style: none; margin: 10px 0 2px; padding: 0; display: grid; gap: 6px; }
.items li { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.pay { display: flex; justify-content: space-between; align-items: center; background: var(--pri-s); color: var(--pri-3); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: .9rem; }
.pay b { font-family: var(--f-disp); font-size: 1.25rem; }
.pay.cash { background: var(--acc-s); color: #7A4F00; border: 1.5px solid #FFD982; }
.job-act { margin-top: 12px; display: grid; gap: 8px; }
.job-act .mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.job-act .mini .btn { padding: 10px 8px; font-size: .88rem; }
.offer { background: var(--card); border-radius: 22px; padding: 14px; box-shadow: var(--sh); border: 1px solid var(--ln); margin-bottom: 10px; }
.offer-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.offer-top .tlogo { width: 52px; height: 52px; border-radius: 15px; font-size: 26px; }
.offer-top .info { flex: 1; min-width: 0; }
.offer-top .info b { font-size: 1rem; }
.earn { text-align: right; flex: none; }
.earn small { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.earn b { font-family: var(--f-disp); font-size: 1.4rem; color: var(--ok); white-space: nowrap; }
@media (max-width: 600px) {
  .stats { gap: 8px; margin-bottom: 14px; }
  .stats .stat { padding: 10px 12px; border-radius: 14px; }
  .stats .stat b { font-size: 1.25rem; }
  .stats .stat small { font-size: .64rem; padding-right: 34px; }
  .stats .stat i { width: 30px; height: 30px; font-size: .9rem; right: 10px; top: 10px; border-radius: 10px; }
}

/* ═══ empresa ═══ */
.plan-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--acc); font-weight: 800; font-size: .78rem; text-transform: capitalize; white-space: nowrap; }
.stat b .of { font-size: .95rem; color: var(--tx3); font-weight: 700; }
.live .side .ped { margin-bottom: 10px; }
.ped.alerta { border-color: #FFC2CC; box-shadow: 0 0 0 3px #FFE9EC; }
.ruta { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; font-size: .88rem; font-weight: 600; }
.ruta span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ruta span:last-child { text-align: right; }
.ruta i { font-style: normal; flex: none; font-size: .72rem; font-weight: 800; color: var(--tx3); padding: 2px 8px; border-radius: 999px; background: #F4EFEC; position: relative; }
.asig { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rep-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #F1ECEA; font-weight: 700; font-size: .82rem; }
.rep-chip.warn { background: #FDECEE; color: var(--err); }
.lnk { border: 0; background: none; color: var(--pri-2); font: 700 .82rem var(--f-body); cursor: pointer; padding: 4px 0; }
.asig-ctl { display: flex; gap: 8px; margin-top: 10px; }
.asig-ctl select { padding: 9px 10px; font-size: .86rem; border-radius: 11px; }
.rlist { display: grid; gap: 6px; }
.ritem { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--ln); background: var(--card); border-radius: 14px; padding: 9px 10px; cursor: pointer; font: inherit; color: inherit; transition: .15s; }
.ritem:hover { border-color: var(--ln2); box-shadow: var(--sh); }
.r-av { width: 38px; height: 38px; border-radius: 12px; background: #E9E2DF; color: var(--tx2); display: grid; place-items: center; font: 800 1rem var(--f-disp); flex: none; position: relative; }
.r-av.on { background: var(--ink); color: var(--acc); }
.r-av.on::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.r-tx { flex: 1; min-width: 0; }
.r-tx b { display: block; font-size: .92rem; }
.r-tx small { display: block; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-t { color: var(--tx3); font-size: .72rem; flex: none; }
.invite { border-radius: var(--r); padding: 20px; color: #fff; background: radial-gradient(380px 200px at 110% -10%, #5A2A4F, transparent 70%), linear-gradient(160deg, #2E1529, #1A0A16); box-shadow: var(--sh-lg); }
.invite > small { color: rgba(255,255,255,.65); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.invite .codebox { display: block; width: fit-content; margin: 8px 0 10px; background: rgba(255,255,255,.08); font-size: 2rem; }
.invite p { color: rgba(255,255,255,.8); margin: 0 0 14px; font-size: .9rem; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.tm, .adm-c { background: var(--card); border: 1px solid var(--ln); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); }
.tm.off, .adm-c.off { opacity: .6; }
.tm-h { display: flex; align-items: center; gap: 10px; }
.tm-h b { display: block; }
.tm-h small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; }
.tm-s div { background: #F8F4F2; border-radius: 12px; padding: 8px 10px; }
.tm-s b { display: block; font-family: var(--f-disp); font-size: 1.05rem; white-space: nowrap; }
.tm-s small { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tm > small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.com { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; }
.com input { width: 62px; padding: 7px 6px; text-align: center; font-weight: 700; border-radius: 10px; }
.fare { background: var(--pri-s); border-radius: 16px; padding: 14px; margin: 4px 0 16px; }
.fare > small { font-weight: 800; color: var(--pri-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.fare-r { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.fare-r div { background: #fff; border-radius: 12px; padding: 8px 10px; text-align: center; }
.fare-r span { display: block; font-size: .74rem; color: var(--tx2); font-weight: 700; }
.fare-r b { font-family: var(--f-disp); font-size: 1.05rem; }
@media (max-width: 420px) { .fare-r { grid-template-columns: repeat(2, 1fr); } }

/* ═══ admin ═══ */
.adm-hero { display: flex; justify-content: space-between; align-items: stretch; gap: 16px; flex-wrap: wrap; border-radius: 24px; padding: 24px; margin-bottom: 16px; color: #fff; background: radial-gradient(600px 260px at 100% -20%, #FF6B57, transparent 65%), linear-gradient(150deg, #EA1D45, #A50C2C); box-shadow: var(--sh-lg); }
.adm-hero small { color: #FFD6DE; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.adm-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 4px 0 6px; }
.adm-hero p { margin: 0; opacity: .88; max-width: 460px; }
.adm-gmv { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 16px 20px; min-width: 240px; display: flex; flex-direction: column; justify-content: center; }
.adm-gmv b { font-family: var(--f-disp); font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0; }
.adm-gmv span { font-size: .84rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.adm-gmv .dot.on { background: #7CF0B0; box-shadow: 0 0 0 4px rgba(124,240,176,.3); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.adm-c .ali-h small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #F1ECEA; border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 8px 6px; border-radius: 9px; font: 700 .84rem var(--f-body); color: var(--tx2); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh); }
@media (max-width: 600px) { .adm-hero { padding: 18px; } .adm-gmv { min-width: 0; width: 100%; } }

/* ═══ landing v2 ═══ */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-cta .btn.lg { width: auto; padding: 16px 26px; }
.btn.ghost-w { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.btn.ghost-w:hover { background: rgba(255,255,255,.2); }
.land-main:has(#vitrina.hidden) { grid-template-columns: minmax(0, 480px); justify-content: center; }
.vitrina { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.vt { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--ln); border-radius: 18px; padding: 12px; box-shadow: var(--sh); color: inherit; text-decoration: none !important; transition: transform .18s, box-shadow .18s; }
.vt:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.vt.cerrada { opacity: .55; }
.vt .tlogo { width: 52px; height: 52px; font-size: 26px; border-radius: 15px; }
.vt-tx { min-width: 0; }
.vt-tx b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-tx small { display: block; color: var(--tx2); font-weight: 500; }
.rol { display: flex; align-items: center; gap: 12px; }
.rol b { margin: 0; }
.fine { text-align: center; font-size: .86rem; color: var(--tx2); margin: 14px 0 0; }
@media (max-width: 960px) { .hero-cta { justify-content: center; } }
@media (max-width: 520px) { .hero-cta .btn.lg { width: 100%; } .rol { flex-direction: column; align-items: flex-start; gap: 8px; } .rol b { font-size: .98rem; } }

/* ═══ alta de negocios / modales anchos ═══ */
.modal.ancho { max-width: 760px; }
.wiz section { border: 1px solid var(--ln); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.wiz h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--f-disp); font-size: 1.05rem; }
.wiz h4 span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--acc); display: grid; place-items: center; font-size: .8rem; }
.opt-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--ln); margin: 0; color: var(--tx); font-size: .95rem; cursor: pointer; flex-wrap: wrap; }
.opt-row:last-child { border-bottom: 0; }
.ali-av.sm { width: 30px; height: 30px; border-radius: 10px; font-size: .85rem; }
textarea { resize: vertical; font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: .88rem; line-height: 1.6; }
.lote-info { margin-top: 8px; font-size: .88rem; }
.cred { padding: 4px 0; }
.cred-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-s); color: var(--ok); font-size: 2rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto; }
.cred-box { background: var(--ink); color: #fff; border-radius: 18px; padding: 6px 16px; margin: 16px 0; }
.cred-box div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; flex-wrap: wrap; }
.cred-box div + div { border-top: 1px solid rgba(255,255,255,.12); }
.cred-box small { color: rgba(255,255,255,.6); font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }
.cred-box b { word-break: break-all; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; color: var(--acc); font-size: 1.1rem; letter-spacing: .04em; }
.plist.mini { grid-template-columns: 1fr; max-height: 46vh; overflow: auto; padding: 2px; }
.plist.mini .pitem { padding: 8px 10px; box-shadow: none; }
.plist.mini .pimg { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.plist.mini .in-nom { padding: 6px 8px; font-weight: 700; border-color: transparent; background: transparent; }
.plist.mini .in-nom:hover, .plist.mini .in-nom:focus { border-color: var(--ln2); background: #fff; }
.plist.mini .stk input { width: 68px; }
