/* Panel City Phone Store — blanco y azul */
:root {
  --bg: #F3F6FB; --bg2: #E8EEF8;
  --card: #FFFFFF; --card2: #F5F8FD; --card-solid: #FFFFFF;
  --linea: rgba(37, 99, 235, .14); --linea2: rgba(37, 99, 235, .28);
  --texto: #0F1E3D; --gris: #52627E; --gris2: #8492AA;
  --rosa: #2563EB; --rosa2: #1D4ED8; --morado: #2563EB; --morado2: #1E40AF; --lila: #1D4ED8;
  --grad: linear-gradient(90deg, #2563EB 0%, #0EA5E9 100%);
  --grad-txt: linear-gradient(90deg, #1E3A8A 0%, #2563EB 55%, #0EA5E9 100%);
  --verde: #16A34A; --verde-bg: rgba(22, 163, 74, .12); --rojo: #E11D48; --rojo-bg: rgba(225, 29, 72, .10);
  --ambar: #D97706; --ambar-bg: rgba(217, 119, 6, .12); --azul: #2563EB; --azul-bg: rgba(37, 99, 235, .10);
  --b-in: #EEF2F8; --b-out: #DBEAFE; --b-owner: #E0F2FE;
  --glow: 0 1px 2px rgba(255,255,255,.06), 0 6px 18px rgba(37, 99, 235, .10);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--texto); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body::before { content: none; }
body::after { content: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lila); }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--gris); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- estructura ---------- */
.shell { display: flex; min-height: 100%; }
.side { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; min-height: 64px; }
.top .logo-i { width: 42px; height: 42px; }
.top .back { background: none; border: 0; color: var(--texto); padding: 0 4px 0 0; display: grid; place-items: center; }
.top h1 { font-size: 18px; margin: 0; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--linea2); border-radius: 999px; padding: 0 14px; height: 44px; background: rgba(15,42,94,.03); color: var(--gris); }
.top .search input { border: 0; background: none; outline: 0; padding: 0; height: 100%; width: 100%; min-width: 0; color: var(--texto); }
.top .search input::placeholder { color: var(--gris2); }
.ibtn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rosa); background: rgba(37,99,235,.06); color: var(--lila); display: grid; place-items: center; position: relative; flex-shrink: 0; text-decoration: none; box-shadow: 0 0 14px rgba(37,99,235,.18); }
.ibtn .badge { position: absolute; top: -6px; right: -4px; }
.page { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 16px; max-width: 1100px; width: 100%; margin: 0 auto; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--linea); display: flex; padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav a { flex: 1; text-align: center; padding: 10px 0 10px; font-size: 12px; font-weight: 700; color: var(--gris); text-decoration: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav a.on { color: var(--rosa); }
.nav a.on svg { filter: drop-shadow(0 0 6px rgba(37,99,235,.7)); }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; }
.nav .badge { position: absolute; top: 4px; left: 54%; }
.logo-i { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px; flex-shrink: 0; box-shadow: 0 0 16px rgba(37,99,235,.45); }

@media (min-width: 960px) {
  .main { padding-bottom: 0; }
  .nav { display: none; }
  .side { display: flex; flex-direction: column; gap: 3px; width: 248px; flex-shrink: 0; background: rgba(255,255,255,.9); border-right: 1px solid var(--linea); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .side .logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; padding: 2px 8px 18px; }
  .side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--gris); text-decoration: none; font-weight: 700; }
  .side a:hover { background: rgba(37,99,235,.1); color: var(--texto); }
  .side a.on { background: rgba(37,99,235,.14); color: var(--texto); box-shadow: inset 3px 0 0 var(--rosa); }
  .side a .badge { margin-left: auto; }
  .side .wa { margin-top: auto; border-radius: 14px; padding: 12px; font-size: 13px; background: var(--card); border: 1px solid var(--linea); }
  .page { padding: 22px 28px 36px; }
}

/* ---------- componentes ---------- */
.card { background: var(--card); border: 1px solid var(--linea); border-radius: var(--r); padding: 16px; min-width: 0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.card h2 small { font-weight: 600; color: var(--gris); font-size: 12.5px; margin-left: auto; text-align: right; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gris); }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: rgba(15,42,94,.03); border: 1px solid var(--linea); border-radius: 16px; padding: 12px 8px; text-align: center; min-width: 0; text-decoration: none; color: inherit; }
.tile small { display: block; color: var(--gris); font-weight: 700; font-size: 12.5px; }
.tile b { display: block; font-size: 19px; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.hl { border-color: rgba(37,99,235,.55); background: rgba(37,99,235,.08); }
.tile.hl b { color: var(--lila); }

.btn { border: 1px solid var(--linea2); border-radius: 12px; padding: 11px 16px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: rgba(15,42,94,.04); text-decoration: none; color: var(--texto); }
.btn:hover { background: rgba(15,42,94,.08); }
.btn.primary, .btn.ambar { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(37,99,235,.35); }
.btn.verde { background: var(--verde); color: #04140A; border-color: var(--verde); }
.btn.rojo { background: var(--rojo-bg); color: #E11D48; border-color: rgba(244, 63, 94, .45); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.pill-link { border: 1px solid var(--linea2); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13.5px; color: var(--lila); text-decoration: none; white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 800; color: var(--gris); }
.field .hint { font-size: 12px; color: var(--gris2); }
input[type=text], input[type=number], input[type=password], input[type=search], input[type=url], textarea, select {
  width: 100%; border: 1px solid var(--linea2); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.7); color: var(--texto); min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--gris2); }
textarea { resize: vertical; min-height: 70px; line-height: 1.45; }
select option { background: var(--card-solid); }
.fields { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .fields.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.check { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.check input { width: 19px; height: 19px; accent-color: var(--rosa); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.chip.fb { background: rgba(37,99,235,.18); color: var(--lila); }
.chip.bot { background: var(--verde-bg); color: #15803D; }
.chip.ayuda { background: var(--rojo-bg); color: #BE123C; }
.chip.pausa { background: var(--ambar-bg); color: #B45309; }
.chip.gris { background: rgba(15,42,94,.07); color: var(--gris); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; border: 1px solid var(--linea2); background: rgba(15,42,94,.03); border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 14px; color: var(--texto); }
.tabs button.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 16px rgba(37,99,235,.4); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--card-solid); border: 1px solid var(--rosa); color: var(--texto); padding: 11px 18px; border-radius: 14px; font-weight: 800; z-index: 100; box-shadow: var(--glow); max-width: calc(100% - 32px); text-align: center; }
.toast.error { border-color: var(--rojo); box-shadow: 0 0 20px rgba(244, 63, 94, .4); }
.empty { text-align: center; color: var(--gris); padding: 28px 12px; }
.alert { border-radius: 16px; padding: 13px 15px; font-size: 14px; line-height: 1.45; border: 1px solid var(--linea2); background: var(--card); }
.alert.amar { background: linear-gradient(90deg, rgba(245,165,36,.16), rgba(245,165,36,.06)); border-color: rgba(245, 165, 36, .55); color: #92400E; }
.alert.verde { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .45); color: #166534; }
.alert.rojo { background: var(--rojo-bg); border-color: rgba(244, 63, 94, .5); color: #BE123C; }
.banner { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.banner .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #F59E0B, #F43F5E); color: #fff; flex-shrink: 0; }
.banner .ico.ok { background: linear-gradient(135deg, #22C55E, #14B8A6); }
.banner b { display: block; font-size: 15.5px; }
.banner .go { margin-left: auto; color: #B45309; font-weight: 900; white-space: nowrap; }

/* ---------- inicio ---------- */
.hello h2 { font-size: 30px; line-height: 1.15; margin: 4px 0 4px; font-weight: 900; letter-spacing: -.3px; text-wrap: balance; }
.hello h2 span { background: var(--grad-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.earn { border: 1.5px solid rgba(37,99,235,.6); background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,255,255,.9)); box-shadow: 0 0 30px rgba(37,99,235,.18); }
.earn .big { font-size: 46px; font-weight: 900; letter-spacing: -1px; line-height: 1.05; background: var(--grad-txt); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; margin: 6px 0 6px; }
.earn .msg { font-weight: 700; line-height: 1.4; }
.spark { width: 100%; height: 120px; display: block; margin: 8px 0 4px; }
.goal { border: 1px solid var(--linea); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.45); margin-top: 6px; }
.goal .bar { margin: 12px 0 10px; }
.bar { height: 12px; border-radius: 999px; background: rgba(15,42,94,.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3B82F6, #2563EB); border-radius: 999px; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); position: relative; }
.login .hero { flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.brand-big { line-height: .9; }
.brand-big .w1 { display: block; font-family: 'Anton', 'Impact', sans-serif; font-size: clamp(54px, 17vw, 96px); letter-spacing: 1px; text-transform: uppercase; background: linear-gradient(180deg, #1E3A8A 0%, #2563EB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; transform: rotate(-4deg); }
.brand-big .w2 { display: block; font-family: 'Yellowtail', 'Brush Script MT', cursive; font-size: clamp(54px, 16vw, 92px); color: #2563EB; margin-top: -8px; text-shadow: none; transform: rotate(-4deg); }
.login .box { width: 100%; max-width: 420px; background: rgba(255,255,255,.96); border: 1.5px solid rgba(37,99,235,.6); border-radius: 26px; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 34px rgba(37,99,235,.3); text-align: center; }
.login .shield { width: 74px; height: 74px; margin: 0 auto 4px; border-radius: 50%; border: 2px solid var(--rosa); display: grid; place-items: center; color: #2563EB; box-shadow: 0 0 22px rgba(37,99,235,.5), inset 0 0 14px rgba(37,99,235,.3); }
.login .shield svg { width: 30px; height: 30px; fill: rgba(37,99,235,.25); }
.login h1 { margin: 0; font-size: 26px; font-weight: 900; }
.login .sub { margin: 0; color: #1D4ED8; font-weight: 600; }
.inp { display: flex; align-items: center; gap: 10px; border: 1px solid var(--linea2); border-radius: 16px; padding: 0 14px; background: rgba(255,255,255,.96); text-align: left; }
.inp input { border: 0 !important; background: none !important; padding: 15px 0 !important; outline: 0; }
.inp .eye { background: none; border: 0; color: var(--gris); padding: 4px; display: grid; }
.login .go { background: var(--grad); color: #fff; border: 0; border-radius: 16px; padding: 16px; font-weight: 900; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 0 24px rgba(37,99,235,.5); }

/* ---------- listas ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--linea); border-left: 4px solid var(--c, var(--linea)); border-radius: 18px; background: var(--card); text-decoration: none; color: inherit; align-items: flex-start; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; flex-shrink: 0; font-size: 15px; }
.item .b { flex: 1; min-width: 0; }
.item .r1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.item .r1 b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .r1 small { color: var(--gris); font-size: 12.5px; flex-shrink: 0; }
.item p { margin: 3px 0 8px; color: var(--gris); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.menu-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 18px 6px; min-height: 104px; border-radius: 18px; border: 1px solid var(--linea); background: rgba(255,255,255,.96); color: var(--texto); text-decoration: none; font-weight: 800; font-size: 13.5px; position: relative; line-height: 1.2; }
.menu-grid a svg { width: 30px; height: 30px; }
.menu-grid a.on { border-color: var(--morado); background: rgba(37,99,235,.45); box-shadow: 0 0 18px rgba(37,99,235,.35); }
.menu-grid a .badge { position: absolute; top: 8px; right: 10px; }

/* ---------- chats ---------- */
.conv { display: flex; flex-direction: column; background: rgba(255,255,255,.82); border-radius: var(--r); border: 1px solid var(--linea); overflow: hidden; min-height: 60vh; }
.msgs { flex: 1; background: #F7F9FD; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 62vh; }
.m { max-width: 82%; padding: 7px 10px 5px; border-radius: 12px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.m .t { display: block; text-align: right; font-size: 10.5px; color: rgba(15, 30, 61, .45); margin-top: 2px; }
.m.in { background: var(--b-in); align-self: flex-start; border-top-left-radius: 4px; }
.m.out { background: var(--b-out); align-self: flex-end; border-top-right-radius: 4px; }
.m.owner { background: var(--b-owner); align-self: flex-end; border-top-right-radius: 4px; }
.m.owner .who { display: block; font-size: 11px; font-weight: 800; color: var(--azul); }
.m.img { padding: 3px; }
.m.img img { display: block; width: 180px; height: 180px; object-fit: cover; border-radius: 9px; }
.note { align-self: center; background: rgba(245, 165, 36, .12); border: 1px solid rgba(245, 165, 36, .4); color: #B45309; font-size: 12px; padding: 5px 11px; border-radius: 10px; text-align: center; max-width: 94%; }
.compose { display: flex; gap: 8px; padding: 10px; background: rgba(255,255,255,.95); border-top: 1px solid var(--linea); align-items: flex-end; }
.compose textarea { min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 15px; }
.compose .btn { width: 46px; height: 46px; border-radius: 50%; padding: 0; }
.ficha .row2 { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--linea); font-size: 14px; }
.ficha .row2:first-of-type { border-top: 0; }
.ficha .row2 span { color: var(--gris); flex-shrink: 0; }
.ficha .row2 b { text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.chatgrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.chatgrid .side-col { display: flex; flex-direction: column; gap: 14px; order: -1; }
.chatgrid .side-col .ficha, .chatgrid .side-col .extra { display: none; }
.chatgrid.showficha .side-col .ficha, .chatgrid.showficha .side-col .extra { display: block; }
@media (min-width: 900px) {
  .chatgrid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .chatgrid .side-col { order: 0; }
  .chatgrid .side-col .ficha, .chatgrid .side-col .extra { display: block; }
  .chatgrid .fbtn { display: none; }
  .savebar { bottom: 16px !important; }
}

/* ---------- pedidos ---------- */
.order { display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--c, var(--gris)); }
.order .top2 { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.order .price { font-weight: 900; font-size: 19px; white-space: nowrap; }
.order .det { font-size: 14px; color: #334155; line-height: 1.55; }

/* ---------- fotos ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.th { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(15,42,94,.05); border: 1px solid var(--linea); padding: 0; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .n { position: absolute; top: 5px; left: 5px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 900; border-radius: 7px; padding: 1px 7px; }
.th.add { border: 2px dashed var(--linea2); background: rgba(15,42,94,.02); color: var(--lila); font-weight: 800; font-size: 13px; display: grid; place-items: center; text-align: center; cursor: pointer; }
.modal-bg { position: fixed; inset: 0; background: rgba(255,255,255,.45); backdrop-filter: blur(4px); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card-solid); border: 1px solid var(--linea2); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 760px) { .modal-bg { align-items: center; } .modal { border-radius: 22px; } }
.modal h3 { margin: 0; font-size: 18px; }
.modal img.big { width: 100%; max-height: 50vh; object-fit: contain; background: #EEF2F8; border-radius: 14px; }
.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 520px) { .checks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- simulador / otros ---------- */
.sim .alb { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 250px; max-width: 100%; }
.sim .alb button { padding: 0; border: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; background: #0004; }
.sim .alb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sim .alb .more { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; font-weight: 800; display: grid; place-items: center; }
.qr { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; box-shadow: var(--glow); }
.steps { margin: 0; padding-left: 20px; line-height: 1.7; }
.link-row { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--linea); }
.link-row:first-child { border-top: 0; }
.link-row code { font-size: 12px; color: var(--gris); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.origin-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.origin-row span:first-child { width: 112px; font-weight: 800; font-size: 13.5px; }
.origin-row .bar { flex: 1; }
.origin-row span:last-child { width: 96px; text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.list-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linea); }
.list-row:first-of-type { border-top: 0; }
.item .chip, .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item > div { min-width: 0; }

/* ---- tarjeta de Discord ---- */
.dc { display: flex; flex-direction: column; gap: 12px; }
.dc-head { display: flex; align-items: center; gap: 12px; }
.dc-logo { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 0 18px rgba(37,99,235,.4); }
.dc-logo svg { width: 24px; height: 24px; stroke: #fff; }
.dc-t { flex: 1; min-width: 0; } .dc-t h2 { margin: 0; font-size: 19px; } .dc-t small { color: var(--gris); }
.state-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; white-space: nowrap; border: 1px solid; }
.state-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.state-pill.ok { color: #15803D; border-color: rgba(74,222,128,.45); background: rgba(34,197,94,.1); }
.state-pill.bad { color: #E11D48; border-color: rgba(251,113,133,.5); background: rgba(244,63,94,.1); }
.state-pill.off { color: var(--gris); border-color: var(--linea2); background: rgba(15,42,94,.04); }
.dc-status { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 14px; background: rgba(37,99,235,.05); border: 1px solid var(--linea2); font-size: 13.5px; color: #334155; }
.dc-status .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--lila); }
.t-bad { color: #BE123C; }
.dc-sec { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: var(--lila); margin-top: 4px; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 14px; background: rgba(15,42,94,.03); border: 1px solid var(--linea2); cursor: pointer; }
.sw-row span { display: flex; flex-direction: column; min-width: 0; } .sw-row small { color: var(--gris); font-size: 12.5px; }
.sw { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: rgba(15,42,94,.14); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw:checked { background: var(--grad); box-shadow: 0 0 12px rgba(37,99,235,.45); } .sw:checked::after { transform: translateX(20px); }
.dc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dc-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.dc-actions .btn svg { width: 17px; height: 17px; } .dc-actions .btn[disabled] { opacity: .45; }
.linkbtn { background: none; border: 0; color: #BE123C; font-weight: 700; font-size: 13.5px; padding: 0; align-self: flex-start; cursor: pointer; text-decoration: underline; }
.howto { border: 1px solid var(--linea2); border-radius: 14px; padding: 11px 13px; background: rgba(37,99,235,.06); }
.howto summary { cursor: pointer; font-weight: 800; color: var(--lila); }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #334155; }
.dc-prev { display: flex; gap: 0; border-radius: 10px; overflow: hidden; background: #2B2D31; border: 1px solid rgba(15,42,94,.06); }
.dc-prev .bar-v { width: 4px; background: #22C55E; flex: none; }
.dc-prev > div:last-child { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pv-t { font-weight: 800; color: #fff; font-size: 14.5px; }
.pv-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; color: #DBDEE1; }
.pv-g small { display: block; font-weight: 800; color: #fff; font-size: 12px; }
.pv-f { font-size: 11px; color: #949BA4; }

.dc-statebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dc-statebar .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--lila); }
@media (max-width: 520px) { .dc-actions { grid-template-columns: 1fr; } }

#recBtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; padding: 15px; }
#recBtn svg { width: 19px; height: 19px; } #recBtn[disabled] { opacity: .45; }

/* ---- enseñar / actualizar ---- */
.m .teach { display: block; margin-top: 6px; background: rgba(37,99,235,.18); border: 1px solid rgba(37,99,235,.45); color: var(--lila); font-weight: 800; font-size: 12px; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.ask-row { display: flex; gap: 8px; } .ask-row .inp { flex: 1; min-width: 0; } .ask-row .btn { flex: none; }
.probe { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(37,99,235,.05); border: 1px solid var(--linea2); }
.probe .m { max-width: 90%; } .probe .m.in { align-self: flex-start; } .probe .m.out { align-self: flex-end; }
.qrow { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--linea); padding: 12px 0; }
.qrow:first-of-type { border-top: 0; }
.qbtns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.teach-m { display: flex; flex-direction: column; gap: 12px; max-height: 88vh; overflow: auto; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 210px; overflow: auto; padding: 2px; }
.pick button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; aspect-ratio: 1; cursor: pointer; position: relative; }
.pick button img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.pick button.on { border-color: var(--rosa); box-shadow: 0 0 10px rgba(37,99,235,.5); } .pick button.on img { opacity: 1; }
.pick button.on::after { content: '✓'; position: absolute; top: 3px; right: 5px; color: #fff; font-weight: 900; text-shadow: 0 0 4px #000; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #334155; }
label.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
label.btn svg, #up svg { width: 18px; height: 18px; } #up { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } #up[disabled] { opacity: .45; }

/* ---- modal de enseñar (v2) ---- */
.teach-m { gap: 12px; }
.tm-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -18px; background: var(--card-solid); padding: 4px 0; z-index: 2; }
.x { background: rgba(15,42,94,.08); border: 1px solid var(--linea2); color: var(--texto); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex: none; }
.tm-step { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; }
.tm-step > span { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; box-shadow: 0 0 10px rgba(37,99,235,.45); }
.tm-step small { display: block; color: var(--gris); font-size: 12.5px; }
.chips-in { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; background: rgba(37,99,235,.18); border: 1px solid rgba(37,99,235,.45); color: #1E3A8A; padding: 5px 6px 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; max-width: 100%; }
.chip-x button { background: rgba(37,99,235,.12); border: 0; color: var(--texto); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 11px; flex: none; }
.ask-row input { flex: 1; min-width: 0; }
.msg-ed { position: relative; margin-bottom: 8px; }
.msg-ed textarea { width: 100%; padding-right: 44px; background: #DBEAFE; border-color: rgba(37,99,235,.5); border-radius: 16px 16px 4px 16px; }
.msg-ed .x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; font-size: 12px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg3 button { text-align: left; background: rgba(15,42,94,.03); border: 1px solid var(--linea2); border-radius: 14px; padding: 10px; color: var(--texto); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.seg3 button small { color: var(--gris); font-size: 11.5px; line-height: 1.3; }
.seg3 button.on { border-color: var(--rosa); background: rgba(37,99,235,.12); box-shadow: 0 0 14px rgba(37,99,235,.25); }
.wa-prev { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: #EEF3FA; border: 1px solid var(--linea2); }
.wa-prev .m { max-width: 85%; } .wa-prev .m.in { align-self: flex-start; } .wa-prev .m.out { align-self: flex-end; }
.qt { border-left: 3px solid #06CF9C; background: rgba(37,99,235,.05); border-radius: 6px; padding: 4px 8px; margin-bottom: 5px; font-size: 12.5px; color: #334155; display: flex; flex-direction: column; }
.qt b { color: #06CF9C; font-size: 12px; }
.tm-foot { display: flex; gap: 8px; position: sticky; bottom: -18px; background: var(--card-solid); padding: 10px 0 4px; }
.tm-foot .btn.primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .tm-foot svg { width: 17px; height: 17px; }
@media (max-width: 420px) { .seg3 button { padding: 8px; } .seg3 button small { font-size: 11px; } }

.prog { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: rgba(37,99,235,.05); border: 1px solid var(--linea2); }
.prog-top { display: flex; justify-content: space-between; gap: 10px; } .prog-top b:last-child { color: var(--lila); font-size: 18px; }
.bar.big { height: 14px; border-radius: 999px; background: rgba(15,42,94,.08); overflow: hidden; }
.bar.big i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .35s ease; box-shadow: 0 0 14px rgba(37,99,235,.6); }

/* ---- anuncios ---- */
.dc-logo.fbblue { background: #1877F2; box-shadow: 0 0 18px rgba(24,119,242,.45); }
.btn.fbbtn { background: #1877F2; color: #fff; border-color: #1877F2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; padding: 15px; }
.btn.fbbtn svg, .big-cta svg { width: 20px; height: 20px; }
.big-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-size: 17px; }
.item.camp { display: flex; gap: 10px; align-items: center; }
.sug { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--card-solid); border: 1px solid var(--linea2); border-radius: 12px; margin-top: 4px; overflow: hidden; display: flex; flex-direction: column; }
.sug button { text-align: left; background: none; border: 0; border-top: 1px solid var(--linea); color: var(--texto); padding: 11px 12px; cursor: pointer; font-weight: 700; }
.sug button small { color: var(--gris); font-weight: 600; }
.chip-x select { background: rgba(37,99,235,.10); border: 0; color: var(--texto); border-radius: 8px; padding: 2px 4px; font-size: 12.5px; }
.seg2 { grid-template-columns: 1fr 1fr; }
.fbprev { background: #fff; color: #050505; border-radius: 12px; overflow: hidden; font-family: Helvetica, Arial, sans-serif; }
.fb-h { display: flex; gap: 8px; align-items: center; padding: 10px 12px 6px; } .fb-h b { display: block; font-size: 14px; } .fb-h small { color: #65676B; font-size: 12px; }
.fb-av { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; }
.fb-t { padding: 0 12px 10px; font-size: 14px; line-height: 1.35; }
.fb-img { aspect-ratio: 1; background: #E4E6EB; display: grid; place-items: center; color: #65676B; font-size: 13px; } .fb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-f { display: flex; gap: 10px; align-items: center; background: #F0F2F5; padding: 10px 12px; } .fb-f small { color: #65676B; font-size: 11.5px; display: block; } .fb-f b { font-size: 14px; display: block; }
.fb-cta { background: #E4E6EB; border-radius: 6px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.teach-m > *, .camp-m > * { flex-shrink: 0; }
.chip-x { white-space: nowrap; flex-wrap: nowrap; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 330px; overflow: auto; }
.posts button { padding: 0; background: rgba(15,42,94,.04); border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; color: var(--texto); }
.posts button img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.posts button span { font-size: 11px; padding: 5px 6px; color: var(--gris); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.posts button.on { border-color: var(--rosa); box-shadow: 0 0 12px rgba(37,99,235,.5); }
.fb-cta.wa { background: #166534; color: #0A7C3E; }

/* ---- publicaciones ---- */
.thumbs-q { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 5px; margin-top: 10px; max-height: 240px; overflow: auto; }
.tq { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: rgba(15,42,94,.05); }
.tq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tq.publicada img { opacity: .45; } .tq.error { outline: 2px solid #F43F5E; }
.tq b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: #fff; text-shadow: 0 0 6px #000; }
.tq.publicada b { color: #15803D; }
.tq button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; cursor: pointer; }
.tq.more { display: grid; place-items: center; font-weight: 900; color: var(--lila); }
.perday { flex: 1; text-align: center; } .perday b { font-size: 30px; display: block; line-height: 1; } .perday small { color: var(--gris); }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hora { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; color: var(--lila); }
.hora input { padding: 10px; }
.toast .prog-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.hora input, input[type=date], input[type=time] { background: var(--inp, #FFFFFF); border: 1px solid var(--linea2); border-radius: 12px; color: var(--texto); padding: 10px 12px; width: 100%; color-scheme: light; }

/* ---- leer imágenes ---- */
.vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vlist li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(15,42,94,.03); border: 1px solid var(--linea2); }
.vlist li span { color: var(--gris); font-size: 13px; }
.vres { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(37,99,235,.05); border: 1px solid var(--linea2); }
.vres > img { width: 96px; border-radius: 10px; flex: none; }
.vcat { width: 100%; max-width: 160px; border-radius: 10px; margin: 6px 0; border: 2px solid #15803D; }
.vok { color: #166534; font-weight: 700; } .vno { color: #92400E; font-weight: 700; }
.vtxt { white-space: pre-wrap; font-size: 12.5px; background: rgba(15,42,94,.04); border-radius: 8px; padding: 8px; max-height: 140px; overflow: auto; color: #334155; }
.bar.big i.indet { width: 35%; animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* ---- campañas pro ---- */
.campc { border: 1px solid var(--linea2); border-left: 4px solid var(--c); border-radius: 16px; padding: 12px; margin-top: 10px; background: rgba(15,42,94,.02); }
.kpi4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.kpi4 > div { background: rgba(37,99,235,.05); border-radius: 10px; padding: 8px; min-width: 0; }
.kpi4 small { display: block; color: var(--gris); font-size: 11px; line-height: 1.2; }
.kpi4 b { font-size: 15.5px; display: block; margin-top: 2px; } .kpi4 em { display: block; font-style: normal; font-size: 11px; color: var(--lila); font-weight: 700; }
.kpi4 .warn { outline: 1.5px solid #F43F5E; } .kpi4 .warn b { color: #BE123C; }
@media (max-width: 420px) { .kpi4 { grid-template-columns: repeat(2, 1fr); } }
.guard { margin-top: 8px; font-size: 12.5px; padding: 6px 10px; border-radius: 10px; background: rgba(37,99,235,.12); color: #1E3A8A; border: 1px solid rgba(37,99,235,.35); }
.guard.bad { background: rgba(244,63,94,.12); color: #BE123C; border-color: rgba(244,63,94,.4); }
.guard.ok { background: rgba(34,197,94,.1); color: #166534; border-color: rgba(34,197,94,.35); }
.zbox { margin-top: 8px; padding: 10px; border-radius: 12px; background: rgba(37,99,235,.05); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.zrow { display: grid; grid-template-columns: 1.3fr 2fr .6fr; gap: 8px; align-items: center; font-size: 12.5px; }
.zrow .bar { height: 8px; border-radius: 99px; background: rgba(15,42,94,.08); overflow: hidden; } .zrow .bar i { display: block; height: 100%; background: var(--grad); }
.est { font-size: 13.5px; color: #334155; padding: 2px 2px; }
.dias { display: flex; gap: 6px; margin-top: 10px; } .dias button { flex: 1; padding: 10px 0; border-radius: 12px; border: 1px solid var(--linea2); background: rgba(15,42,94,.04); color: var(--texto); font-weight: 900; cursor: pointer; }
.dias button.on { background: var(--grad); border-color: transparent; box-shadow: 0 0 10px rgba(37,99,235,.4); }
.hrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linea); font-size: 13.5px; } .hrow:first-of-type { border-top: 0; } .hrow small { color: var(--gris); white-space: nowrap; }
input[type=time] { color-scheme: light; }

/* ---- conexiones ---- */
.ctiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ctile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea2); text-decoration: none; color: var(--texto); text-align: center; }
.ctile b { font-size: 14px; } .ctile small { font-size: 11.5px; font-weight: 800; }
.ctile.ok { border-color: rgba(74,222,128,.5); } .ctile.ok small { color: #15803D; }
.ctile.warn { border-color: rgba(245,165,36,.6); } .ctile.warn small { color: #B45309; }
.ctile.off small { color: var(--gris); }
.ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.ci svg { width: 22px; height: 22px; stroke: #fff; }
.ci.wa, .dc-logo.walogo { background: #25D366; box-shadow: 0 0 14px rgba(37,211,102,.4); } .ci.fb { background: #1877F2; } .ci.dc { background: var(--grad); }
.qrwrap { display: flex; justify-content: center; } .qrwrap .qr { background: #fff; padding: 12px; border-radius: 14px; }
.fbstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fbstats > div { background: rgba(37,99,235,.05); border-radius: 12px; padding: 10px; text-align: center; } .fbstats b { font-size: 20px; display: block; } .fbstats small { color: var(--gris); font-size: 11.5px; }
#c-wa, #c-fb, #c-dc { scroll-margin-top: 80px; }

/* ---- guías ---- */
.guia { border: 1px solid rgba(37,99,235,.4); border-radius: 14px; background: rgba(37,99,235,.07); padding: 0; overflow: hidden; }
.guia summary { cursor: pointer; padding: 12px 14px; font-weight: 900; color: var(--lila); list-style: none; display: flex; gap: 8px; align-items: center; }
.guia summary::-webkit-details-marker { display: none; }
.guia summary::after { content: '▾'; margin-left: auto; transition: transform .2s; } .guia[open] summary::after { transform: rotate(180deg); }
.gsteps { margin: 0; padding: 4px 14px 12px 14px; list-style: none; counter-reset: g; display: flex; flex-direction: column; gap: 10px; }
.gsteps li { counter-increment: g; position: relative; padding-left: 36px; font-size: 14px; line-height: 1.5; color: #334155; }
.gsteps li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.gtips { margin: 0 14px 14px; padding: 10px 12px; border-radius: 12px; background: rgba(245,165,36,.08); border: 1px solid rgba(245,165,36,.35); font-size: 13px; color: #92400E; display: flex; flex-direction: column; gap: 4px; }
.cpy { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .cpy code { background: rgba(37,99,235,.10); padding: 3px 8px; border-radius: 8px; font-size: 12.5px; word-break: break-all; color: var(--texto); }

/* ---- actualizar (v2) ---- */
.up-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(37,99,235,.14)); border: 1px solid rgba(37,99,235,.45); box-shadow: 0 0 28px rgba(37,99,235,.15); flex-wrap: wrap; }
.up-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 0 20px rgba(37,99,235,.5); }
.up-ic svg { width: 28px; height: 28px; stroke: #fff; }
.up-hero small { color: var(--lila); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; display: block; }
.up-hero b { font-size: 22px; display: block; } .up-hero span:not(.state-pill) { color: var(--gris); font-size: 13px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 14px; border: 2px dashed rgba(215,166,255,.45); border-radius: 18px; background: rgba(37,99,235,.06); cursor: pointer; transition: all .2s; }
.drop:hover, .drop.over { border-color: var(--rosa); background: rgba(37,99,235,.1); }
.drop.ready { border-style: solid; border-color: #15803D; background: rgba(34,197,94,.08); }
.drop.locked { pointer-events: none; opacity: .7; }
.drop-ic { font-size: 40px; line-height: 1; margin-bottom: 4px; } .drop b { font-size: 16px; word-break: break-all; } .drop small { color: var(--gris); font-size: 13px; }
.up-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
@keyframes pulse { 50% { box-shadow: 0 0 22px rgba(37,99,235,.9); } }
.safe { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.3); }
.safe > span { font-size: 22px; } .safe b { display: block; color: #166534; } .safe small { color: #166534; font-size: 12.5px; }
.drop small b { font-size: inherit; }
.up-hero { display: grid; grid-template-columns: auto 1fr; } .up-hero .state-pill { grid-column: 1 / -1; justify-self: start; }
.up-hero b { font-size: 20px; line-height: 1.2; word-break: normal; }

/* ---- actualizar (v3, sobrio) ---- */
.sx { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.sx-ver { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--linea2); }
.sx-app { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; flex: none; }
.sx-app svg { width: 26px; height: 26px; stroke: #fff; }
.sx-name { font-weight: 800; font-size: 16px; } .sx-v { color: #334155; font-size: 14px; margin-top: 1px; }
.sx-ok { display: flex; align-items: center; gap: 6px; color: var(--gris); font-size: 12.5px; margin-top: 4px; }
.sx-ok i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex: none; }
.sx-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin: 14px 4px 0; }
.sx-group { border-radius: 16px; background: var(--card); border: 1px solid var(--linea2); overflow: hidden; }
.sx-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; background: none; border: 0; color: var(--texto); cursor: pointer; font: inherit; text-decoration: none; }
.sx-row + .sx-row { border-top: 1px solid var(--linea); }
.sx-row b { display: block; font-size: 15px; font-weight: 700; } .sx-row small { display: block; color: var(--gris); font-size: 12.5px; margin-top: 1px; word-break: break-word; }
.sx-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(37,99,235,.18); display: grid; place-items: center; flex: none; color: var(--lila); font-weight: 900; }
.sx-ic svg { width: 18px; height: 18px; } .sx-ic.warn { background: rgba(245,165,36,.15); color: #B45309; }
.sx-chev { color: var(--gris); font-size: 22px; line-height: 1; }
.sx-file.ready .sx-ic { background: rgba(34,197,94,.18); color: #15803D; } .sx-file.ready small { color: #15803D; }
.sx-file.locked { pointer-events: none; opacity: .6; }
.sx-prog { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sx-pt { display: flex; justify-content: space-between; font-weight: 700; font-size: 14.5px; } .sx-pt span:last-child { color: var(--gris); font-variant-numeric: tabular-nums; }
.sx-bar { height: 6px; border-radius: 99px; background: rgba(15,42,94,.08); overflow: hidden; } .sx-bar i { display: block; height: 100%; width: 0; background: var(--rosa); border-radius: 99px; transition: width .35s ease; }
.sx-prog > small { color: var(--gris); font-size: 12.5px; min-height: 16px; }
.sx-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sx-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gris); }
.sx-steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(15,42,94,.18); flex: none; display: grid; place-items: center; }
.sx-steps li.now { color: var(--texto); font-weight: 700; } .sx-steps li.now .dot { border-color: var(--rosa); border-top-color: transparent; animation: spin .8s linear infinite; }
.sx-steps li.done { color: #334155; } .sx-steps li.done .dot { border-color: #22C55E; background: #22C55E; }
.sx-steps li.done .dot::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
@keyframes spin { to { transform: rotate(360deg); } }
.sx-err { padding: 14px 16px; border-top: 1px solid var(--linea); display: flex; flex-direction: column; gap: 3px; background: rgba(244,63,94,.07); }
.sx-err b { color: #BE123C; } .sx-err span { font-size: 14px; } .sx-err small { color: var(--gris); font-size: 12.5px; }
.sx-btn { margin-top: 6px; padding: 15px; font-size: 16px; }
.sx-note { margin: 2px 4px 0; color: var(--gris); font-size: 12.5px; line-height: 1.5; }
.sx-h { cursor: default; } .sx-st { width: 9px; height: 9px; border-radius: 50%; flex: none; } .sx-st.ok { background: #22C55E; } .sx-st.bad { background: #F43F5E; }
.sx-date { color: var(--gris); font-size: 12px; white-space: nowrap; align-self: flex-start; margin-top: 2px; }
.ctile { position: relative; transition: background .15s, border-color .15s, transform .15s; }
.ctile.sel { background: linear-gradient(180deg, rgba(37,99,235,.22), rgba(37,99,235,.12)); border: 2px solid var(--rosa); box-shadow: 0 0 18px rgba(37,99,235,.35); padding: 11px 5px; }
.ctile.sel::after { content: ''; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--rosa); border-bottom: 0; }
.ctiles { margin-bottom: 4px; }

/* ---- mis audios ---- */
.vnote { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.25); min-width: 0; }
.vav { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.vav svg { width: 17px; height: 17px; stroke: #fff; }
.vplay { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #1E3A8A; display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
.vplay svg { width: 15px; height: 15px; } .vplay.sm { width: 32px; height: 32px; }
.vwave { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; gap: 2px; }
.vwave { overflow: hidden; } .vwave i { flex: 1; min-width: 1px; max-width: 4px; border-radius: 2px; background: rgba(15,42,94,.55); }
.vnote.sonando .vwave i { background: #15803D; animation: vb 1s ease-in-out infinite alternate; } .vnote.sonando .vwave i:nth-child(2n) { animation-delay: .25s; } .vnote.sonando .vwave i:nth-child(3n) { animation-delay: .5s; }
@keyframes vb { to { transform: scaleY(.55); } }
.vdur { font-size: 12.5px; color: #334155; font-variant-numeric: tabular-nums; flex: none; }
.m.vnote-m { padding: 4px; background: transparent; border: 0; box-shadow: none; max-width: 260px; } .m.vnote-m .vnote { background: #005C4B; border-color: transparent; }
.rec { display: flex; flex-direction: column; gap: 12px; }
.rec-top { display: flex; align-items: center; gap: 14px; }
.rec-top b { display: flex; align-items: center; gap: 8px; font-size: 16px; } .rec-top small { display: block; color: var(--gris); font-size: 13px; margin-top: 2px; }
.rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--grad); display: grid; place-items: center; flex: none; cursor: pointer; box-shadow: 0 0 22px rgba(37,99,235,.45); }
.rec-btn svg { width: 28px; height: 28px; stroke: #fff; }
.rec-btn.on { background: #F43F5E; box-shadow: 0 0 0 0 rgba(244,63,94,.6); animation: recp 1.4s infinite; }
@keyframes recp { 70% { box-shadow: 0 0 0 16px rgba(244,63,94,0); } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); } }
.rec-sq { width: 20px; height: 20px; border-radius: 5px; background: #fff; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #F43F5E; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.rec-live { height: 46px; display: flex; align-items: center; gap: 3px; padding: 0 4px; }
.rec-live i { flex: 1; height: 10%; border-radius: 3px; background: var(--rosa); transition: height .08s; }
.rec-done { display: flex; flex-direction: column; gap: 10px; } .rec-done audio { width: 100%; height: 44px; }
.rec-up { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px dashed var(--linea2); color: var(--gris); font-size: 13.5px; cursor: pointer; }
.rec-up .sx-ic svg { transform: rotate(-90deg); } .rec-up b { color: var(--texto); }
.alist { display: flex; flex-direction: column; gap: 10px; }
.arow { padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea2); display: flex; flex-direction: column; gap: 10px; }
.arow-top { display: flex; align-items: center; gap: 8px; }
.arow-top b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .arow-top small { color: var(--gris); font-size: 12.5px; }
.arow .ibtn { width: 38px; height: 38px; box-shadow: none; } .arow .ibtn svg { width: 17px; height: 17px; } .arow .ibtn.rojo { border-color: rgba(244,63,94,.6); color: #BE123C; background: rgba(244,63,94,.06); }
.an-ed { flex: 1; }
.apick { display: flex; flex-direction: column; gap: 6px; }
.apick-r { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linea2); background: rgba(15,42,94,.03); cursor: pointer; }
.apick-r.on { border-color: var(--rosa); background: rgba(37,99,235,.1); }
.apick-r input { accent-color: var(--rosa); width: 18px; height: 18px; margin: 0; flex: none; }
.apick-r b { display: block; font-size: 14px; } .apick-r small { color: var(--gris); font-size: 12px; }

/* ---- filtraciones ---- */
.leak { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(244,63,94,.5); background: rgba(244,63,94,.1); color: var(--texto); font: inherit; cursor: pointer; }
.leak b { display: block; font-size: 14px; color: #BE123C; } .leak small { display: block; color: #334155; font-size: 12.5px; }
.leak em { font-style: normal; font-weight: 800; color: #BE123C; font-size: 13px; white-space: nowrap; }
.lk-r { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--linea2); background: rgba(15,42,94,.03); cursor: pointer; }
.lk-r input { accent-color: var(--rosa); width: 20px; height: 20px; margin: 0; flex: none; }
.lk-r b { display: block; font-size: 15px; } .lk-r small { display: block; color: var(--gris); font-size: 12.5px; }
.lk-r:has(input:checked:not(:disabled)) { border-color: var(--rosa); background: rgba(37,99,235,.1); }
.lk-r.ya { opacity: .55; }
.lk-n { font-weight: 800; color: #BE123C; font-size: 13px; }
.lk-res { display: flex; flex-direction: column; gap: 6px; }
.lk-res button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--linea2); background: none; color: var(--texto); font: inherit; text-align: left; cursor: pointer; }
.lk-res button b { font-size: 14.5px; } .lk-res button small { color: var(--gris); font-size: 12.5px; flex: 1; } .lk-res em { font-style: normal; color: var(--lila); font-weight: 800; }
.modo2 { grid-template-columns: 1fr; } .modo2 button { padding: 12px 14px; position: relative; } .modo2 button b { font-size: 15px; padding-right: 92px; } .modo2 button small { font-size: 12.5px; }
.modo2 button em { position: absolute; top: 11px; right: 12px; font-style: normal; font-size: 11px; font-weight: 800; color: #15803D; background: rgba(34,197,94,.14); border-radius: 99px; padding: 2px 8px; }

/* ---- seguimiento ---- */
.sg-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sg-kpi > div { padding: 12px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-kpi small { color: var(--gris); font-size: 11.5px; font-weight: 700; } .sg-kpi b { font-size: 24px; line-height: 1.15; } .sg-kpi em { font-style: normal; color: var(--gris); font-size: 11px; }
.sg-kpi .ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.08); } .sg-kpi .ok b { color: #15803D; } .sg-kpi .ok em { color: #15803D; font-weight: 700; font-size: 12px; }
.sg-list { display: flex; flex-direction: column; gap: 0; }
.sg-step { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.sg-step:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: linear-gradient(var(--rosa), rgba(37,99,235,.2)); }
.sg-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 900; flex: none; box-shadow: 0 0 12px rgba(37,99,235,.45); }
.sg-body { flex: 1; min-width: 0; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea2); display: flex; flex-direction: column; gap: 10px; }
.sg-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.sg-when input { width: 64px; padding: 8px 10px; text-align: center; } .sg-when select { width: auto; padding: 8px 10px; }
.sg-when .x { margin-left: auto; width: 30px; height: 30px; font-size: 12px; }
.sg-body textarea { width: 100%; }
.sg-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-chip { padding: 7px 11px; border-radius: 99px; border: 1px solid var(--linea2); background: rgba(15,42,94,.04); color: #334155; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sg-chip.on { border-color: var(--rosa); background: rgba(37,99,235,.15); color: var(--texto); } select.sg-chip { width: auto; max-width: 100%; padding-right: 26px; }
.sg-prev { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 10px; border-radius: 12px; background: #EEF3FA; }
.sg-prev .m.out { max-width: 92%; font-size: 14px; }
.sg-n { width: 26px; height: 26px; border-radius: 50%; background: rgba(37,99,235,.2); color: var(--lila); display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.t-ok { color: #15803D; font-weight: 700; }
.sg-body { position: relative; } .sg-when .x { position: absolute; top: 10px; right: 10px; margin: 0; } .sg-when { padding-right: 36px; }
.sg-when input { width: 64px !important; flex: none; } .sg-when select { width: auto !important; flex: none; } .sg-when span { font-size: 13.5px; }
.sg-opts > * { width: auto !important; flex: none; margin: 0; }
.sg-when { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .sg-w2 { display: flex; gap: 6px; align-items: center; }
.sg-chip { padding: 6px 10px; font-size: 12.5px; } .sg-step { gap: 10px; } .sg-body { padding: 12px 10px; }
@media (min-width: 700px) { .sg-when { flex-direction: row; align-items: center; } }
.rz-list { display: flex; flex-direction: column; gap: 8px; }
.rz-c { padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea2); display: flex; flex-direction: column; gap: 8px; }
.rz-h { display: flex; flex-direction: column; } .rz-h b { font-size: 15px; } .rz-h small { color: #15803D; font-size: 12px; font-weight: 700; }
.rz-c > small { font-size: 12.5px; } .rz-c textarea { width: 100%; } .rz-c .chips-in:empty { display: none; }
.rz-res { margin-top: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--linea2); display: flex; flex-direction: column; gap: 6px; } .rz-res.ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.07); } .rz-res .m { align-self: flex-end; max-width: 92%; }
#rzbox .ask-row select { flex: 1; } #rzf { width: 100%; }

/* ficha de la solicitud: Cédula: …, Nombre: … */
.ficha { display: grid; gap: 4px; margin: 10px 0; padding: 10px 12px; background: #F5F8FF; border: 1px solid #DCE6FB; border-radius: 12px; font-size: 14px; }
.ficha div { display: flex; gap: 8px; }
.ficha span { color: #5B6B8C; min-width: 128px; }
.ficha b { font-weight: 700; color: #0F1E3D; word-break: break-word; }
.ficha b.falta { color: #B91C1C; font-weight: 600; }

/* notificaciones (campanita) */
.notif { display: grid; gap: 2px; padding: 10px 12px; margin-top: 6px; border: 1px solid #DCE6FB; border-radius: 12px; background: #F8FAFF; color: inherit; text-decoration: none; }
.notif:hover { background: #EEF4FF; }
.notif b { font-size: 15px; } .notif span { font-size: 14px; color: #1D4ED8; } .notif small { color: #6B7A99; font-size: 12px; }

.notif-w { position: relative; }
.notif-w .notif { padding-right: 92px; }
.nleer { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 1px solid #BFD3F8; background: #fff; color: #1D4ED8; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 12px; cursor: pointer; }
.nleer:hover { background: #EEF4FF; }

.tabs .tcount { font-weight: 800; margin-left: 2px; opacity: .85; }

/* visitas del inicio */
.vtabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 4px}
.vtab{border:1px solid var(--linea);background:var(--card2);color:inherit;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
.vtab.on{background:var(--azul);border-color:var(--azul);color:#fff}
.vtab .tcount{background:none;font-weight:800}
.vtab.on .tcount{color:#fff}
.vrow{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--linea);color:inherit;text-decoration:none}
.vrow .grow{min-width:0;flex:1}
.vrow .grow b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vder{text-align:right;flex:none}
.vchip{display:inline-block;font-size:12px;font-weight:600;border-radius:999px;padding:2px 8px;white-space:nowrap}
.vchip.vnuevo{background:rgba(37,99,235,.12);color:#1d4ed8}
.vchip.vestudio{background:rgba(234,179,8,.18);color:#92400e}
.vchip.vok{background:rgba(22,163,74,.15);color:#15803d}
.vchip.vno{background:rgba(220,38,38,.12);color:#b91c1c}
.vmes{border-top:1px solid var(--linea);padding:8px 0}
.vmes summary{cursor:pointer;list-style:none}
.vmes summary::-webkit-details-marker{display:none}

/* chats: hace cuánto y hora exacta */
.cwhen{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25;white-space:nowrap;flex:none;margin-left:8px}
.cwhen span:first-child{font-weight:600}
.cwhen span:last-child{opacity:.8;font-size:.92em}

/* chat en el computador: usa todo el ancho y el alto de la pantalla (sin espacio vacío alrededor) */
@media (min-width: 900px) {
  .page:has(> .chatgrid), .page:has(.chatgrid) { max-width: none; padding-left: 24px; padding-right: 24px; }
  .chatgrid { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); align-items: start; }
  .chatgrid .conv { min-height: 0; }
  .chatgrid .msgs { flex: none; max-height: none; height: calc(100vh - 210px); min-height: 380px; padding: 18px 22px; }
  .chatgrid .m { font-size: 15.5px; max-width: 70%; }
  .chatgrid .side-col { position: sticky; top: 12px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
@media (min-width: 1500px) {
  .chatgrid { grid-template-columns: minmax(0, 1fr) 460px; }
}

/* ficha de la solicitud en el chat */
.ftab{display:flex;flex-direction:column;margin-top:6px}
.frow{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--linea);font-size:14px}
.frow:first-child{border-top:0}
.frow span{color:var(--muted,#64748b);flex:none}
.frow b{text-align:right;word-break:break-word}
.frow b.fvacio{color:#94a3b8;font-weight:600}
.frow.full{justify-content:flex-start;color:var(--muted,#64748b)}

/* =====================================================================
   Animaciones y transiciones (ideas 1 a 11 + estilo del video de Instagram)
   ===================================================================== */
/* 11. fondo con luces suaves */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60vmax 45vmax at 100% 0%, rgba(37,99,235,.16), transparent 70%), radial-gradient(55vmax 40vmax at 10% 100%, rgba(14,165,233,.14), transparent 70%); }
body::after { content: none; }
.shell, .login { position: relative; z-index: 0; }
body { background: var(--bg); }
.card { background: rgba(255,255,255,.92); backdrop-filter: none; -webkit-backdrop-filter: none; }
.top, .side { background: rgba(255,255,255,.9) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* 1 y 10. al entrar a una sección: la página entra deslizando y cada bloque sube uno por uno */
.page.entra > * { animation: entraBloque .55s cubic-bezier(.2,.8,.2,1) both; }
.page.entra > *:nth-child(1) { animation-delay: 0ms; } .page.entra > *:nth-child(2) { animation-delay: 60ms; } .page.entra > *:nth-child(3) { animation-delay: 120ms; }
.page.entra > *:nth-child(4) { animation-delay: 180ms; } .page.entra > *:nth-child(5) { animation-delay: 240ms; } .page.entra > *:nth-child(6) { animation-delay: 300ms; }
.page.entra > *:nth-child(7) { animation-delay: 360ms; } .page.entra > *:nth-child(n+8) { animation-delay: 420ms; }
@keyframes entraBloque { from { opacity: 0; transform: translateY(18px); } }
.page.entra .list > *, .page.entra .tiles3 > * { animation: entraBloque .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--n, 0) * 45ms + 120ms); }
.entra-suave { animation: entraLado .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entraLado { from { opacity: 0; transform: translateX(18px); } }

/* 2. barras que se llenan */
.page.entra .bar i { animation: llenar 1.3s cubic-bezier(.2,.8,.2,1) both .25s; }
@keyframes llenar { from { width: 0; } }

/* 3. mensajes en vivo y "escribiendo" */
.m.nuevo { animation: popMsg .38s cubic-bezier(.2,1.3,.4,1) both; transform-origin: bottom left; }
.m.out.nuevo, .m.owner.nuevo { transform-origin: bottom right; }
@keyframes popMsg { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.m.tecleando { display: inline-flex; align-items: center; gap: 4px; padding: 11px 13px; animation: popMsg .3s ease both; }
.m.tecleando i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris); animation: puntito 1s infinite; }
.m.tecleando i:nth-child(2) { animation-delay: .15s; } .m.tecleando i:nth-child(3) { animation-delay: .3s; }
.m.tecleando small { font-size: 11.5px; font-weight: 800; color: var(--gris); margin-left: 4px; }
@keyframes puntito { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

/* 4. el chat que escribe se ilumina */
.item.recien { animation: ilumina 2s ease both; }
@keyframes ilumina { 0%, 35% { box-shadow: 0 0 0 3px rgba(37,99,235,.28), 0 10px 26px rgba(37,99,235,.22); border-color: var(--rosa); } }

/* 5. marcador del menú que se desliza */
@media (min-width: 960px) {
  .side { position: sticky; }
  .side .marcador { position: absolute; left: 12px; right: 12px; top: 0; border-radius: 12px; background: rgba(37,99,235,.14); box-shadow: inset 3px 0 0 var(--rosa); pointer-events: none; transition: transform .38s cubic-bezier(.3,1.25,.5,1), height .38s; z-index: 0; }
  .side a { position: relative; z-index: 1; transition: color .25s, background .2s; }
  .side.con-marcador a.on { background: transparent; box-shadow: none; }
}
.nav a { transition: color .25s; } .nav a.on svg { animation: saltito .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes saltito { 40% { transform: translateY(-4px) scale(1.12); } }

/* 6. tarjetas que flotan y se inclinan con el mouse */
.inclina { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s; position: relative; overflow: hidden; will-change: transform; }
.inclina::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(14,165,233,.28), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.inclina:hover::after { opacity: 1; }
.inclina:hover { box-shadow: 0 18px 40px rgba(37,99,235,.22); }
.flota { }
.flota:nth-child(2) { animation-delay: -1.6s; } .flota:nth-child(3) { animation-delay: -3.2s; } .flota:nth-child(4) { animation-delay: -.8s; }
@keyframes flota { 50% { translate: 0 -6px; } }

/* 7. campana, número que late y aviso de solicitud nueva */
.ibtn.suena svg { animation: campana .9s ease; transform-origin: 50% 12%; }
@keyframes campana { 15% { rotate: 18deg; } 30% { rotate: -15deg; } 45% { rotate: 10deg; } 60% { rotate: -6deg; } 75% { rotate: 3deg; } }
.ibtn.suena .badge { animation: late 1.4s ease-out 2; }
@keyframes late { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 100% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } }
.aviso-nuevo { position: fixed; z-index: 120; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); background: var(--card-solid); border: 1px solid var(--linea); border-left: 4px solid var(--verde); border-radius: 16px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(15,30,61,.18); display: grid; gap: 2px; text-decoration: none; color: inherit; animation: avisoEntra 5.5s cubic-bezier(.2,1.2,.4,1) both; }
.aviso-nuevo b { font-size: 15px; } .aviso-nuevo span { color: var(--gris); font-size: 13.5px; }
@media (min-width: 960px) { .aviso-nuevo { bottom: 24px; } }
@keyframes avisoEntra { 0% { opacity: 0; transform: translateY(120%); } 9%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(120%); } }

/* 8. carga con brillo */
.esqueleto { display: grid; gap: 12px; padding: 6px 0; }
.esqueleto .r { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--linea); border-radius: 16px; background: var(--card); }
.brillo { border-radius: 8px; background: linear-gradient(90deg, rgba(37,99,235,.07) 25%, rgba(14,165,233,.18) 50%, rgba(37,99,235,.07) 75%); background-size: 300% 100%; animation: brillo 1.3s linear infinite; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* 9. celebración al aprobar */
.celebra { position: fixed; z-index: 130; left: 50%; top: 50%; translate: -50% -50%; width: 92px; height: 92px; pointer-events: none; animation: celebra 1.5s ease both; }
.celebra circle { fill: var(--verde); } .celebra path { stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: trazo .45s .2s ease forwards; }
@keyframes celebra { 0% { opacity: 0; scale: .4; } 18% { opacity: 1; scale: 1.08; } 28%, 80% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.confeti { position: fixed; z-index: 129; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: confeti 1.2s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes confeti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- estilo del video de Instagram: portada oscura con neón y tarjetas flotando en 3D ---------- */
.neon-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 24px 24px; background: #070A14; color: #F5F7FF; isolation: isolate; box-shadow: 0 24px 60px rgba(7,10,20,.35); min-height: 250px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; perspective: 1000px; }
.neon-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(520px 260px at 85% 0%, rgba(37,99,235,.55), transparent 65%),
  radial-gradient(420px 240px at 0% 100%, rgba(14,165,233,.35), transparent 65%),
  radial-gradient(300px 200px at 60% 120%, rgba(225,29,72,.35), transparent 70%); }
@keyframes neonLuz { to { filter: hue-rotate(-25deg) brightness(1.15); transform: scale(1.06); } }
.neon-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
@keyframes rejilla { to { background-position: 34px 34px; } }
.neon-hero .nh-dia { font-size: 12.5px; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.62); }
.neon-hero h2 { margin: 6px 0 8px; font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; font-size: clamp(40px, 6.4vw, 74px); line-height: .95; letter-spacing: .5px; text-transform: uppercase; text-wrap: balance; }
.neon-hero h2 .brilla { background: linear-gradient(90deg, #fff, #7DD3FC 40%, #60A5FA 60%, #fff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(56,189,248,.55)); animation: barrido 4.5s linear 2; }
@keyframes barrido { to { background-position: -220% 0; } }
.neon-hero .nh-sub { color: rgba(255,255,255,.75); font-weight: 600; max-width: 40ch; }
.neon-hero .nh-capas { position: relative; height: 210px; transform-style: preserve-3d; transition: transform .2s ease-out; }
.nh-c { position: absolute; padding: 12px 14px; border-radius: 16px; background: rgba(22,28,46,.88); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); min-width: 140px; }
.nh-c small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.62); }
.nh-c b { display: block; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; margin-top: 2px; }
.nh-c.c1 { top: 4px; left: 4%; transform: translateZ(60px) rotate(-4deg); border-color: rgba(96,165,250,.55); box-shadow: 0 0 30px rgba(37,99,235,.45), 0 10px 30px rgba(0,0,0,.35); }
.nh-c.c2 { top: 70px; right: 2%; transform: translateZ(30px) rotate(3deg); animation-delay: -2s; }
.nh-c.c3 { bottom: 4px; left: 18%; transform: translateZ(90px) rotate(-1deg); animation-delay: -4s; border-color: rgba(244,63,94,.5); box-shadow: 0 0 30px rgba(225,29,72,.35), 0 10px 30px rgba(0,0,0,.35); }
.nh-c.c3 b { color: #FDA4AF; } .nh-c.c1 b { color: #93C5FD; }
.nh-chip { position: absolute; top: 20px; right: 30%; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #22C55E; color: #052e16; transform: translateZ(120px) rotate(6deg); box-shadow: 0 0 22px rgba(34,197,94,.6); }
@media (max-width: 720px) { .neon-hero { grid-template-columns: minmax(0, 1fr); } .neon-hero .nh-capas { height: 200px; } .nh-chip { top: auto; bottom: 14px; right: 3%; } .nh-c.c3 { left: 6%; } }
/* entrada de la portada: las tarjetas llegan desde atrás */
.page.entra .nh-c, .page.entra .nh-chip { animation: llegaCapa .9s cubic-bezier(.2,.9,.2,1) both; }
.page.entra .nh-c.c2 { animation-delay: .15s; } .page.entra .nh-c.c3 { animation-delay: .3s; } .page.entra .nh-chip { animation-delay: .45s; }
@keyframes llegaCapa { from { opacity: 0; translate: 0 40px; filter: blur(8px); } }
.page.entra .neon-hero h2 { animation: letrasEntran .8s cubic-bezier(.2,.8,.2,1) both .1s; }
@keyframes letrasEntran { from { opacity: 0; letter-spacing: 12px; filter: blur(6px); } }

/* entrada (login) con el mismo estilo */
.login { background: #070A14; color: #F5F7FF; overflow: hidden; }
.login::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 340px at 80% 10%, rgba(37,99,235,.5), transparent 65%), radial-gradient(500px 300px at 10% 90%, rgba(14,165,233,.32), transparent 65%), radial-gradient(400px 260px at 50% 110%, rgba(225,29,72,.3), transparent 70%); animation: neonLuz 9s ease-in-out infinite alternate; }
.login::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); animation: rejilla 16s linear infinite; }
.login .brand-big .w1 { background: linear-gradient(90deg, #fff, #7DD3FC 40%, #60A5FA 60%, #fff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(56,189,248,.55)); animation: barrido 4.5s linear infinite, letrasEntran .9s cubic-bezier(.2,.8,.2,1) both; }
.login .brand-big .w2 { color: #FDA4AF; text-shadow: 0 0 24px rgba(244,63,94,.6); animation: llegaCapa .9s cubic-bezier(.2,.9,.2,1) both .25s; }
.login .box { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; color: #F5F7FF; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: llegaCapa .8s cubic-bezier(.2,.9,.2,1) both .35s; }
.login .sub { color: #93C5FD !important; } .login .shield { color: #93C5FD; }
.login .inp { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.2) !important; color: #fff; } .login .inp input { color: #fff; } .login .inp input::placeholder { color: rgba(255,255,255,.5); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* 8. "Cargando…" se ve como la forma de la lista con un brillo que pasa */
.empty.cargando { font-size: 0; color: transparent; padding: 0; height: 236px; border-radius: 16px; background: linear-gradient(90deg, rgba(37,99,235,.07) 25%, rgba(14,165,233,.2) 50%, rgba(37,99,235,.07) 75%); background-size: 300% 100%; animation: brillo 1.3s linear infinite;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 66px, transparent 66px 80px); mask-image: repeating-linear-gradient(180deg, #000 0 66px, transparent 66px 80px); }
.empty.small.cargando { height: 130px; }
.item p.escribe { color: var(--verde); font-weight: 800; font-style: italic; animation: parpadeo 1.2s ease-in-out infinite; }
@keyframes parpadeo { 50% { opacity: .55; } }
.m.out.tecleando small { color: var(--azul); }
/* fotos de perfil de WhatsApp */
.av { position: relative; overflow: hidden; }
.av .av-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; } }
.top .av-top { width: 40px; height: 40px; font-size: 14px; }

.page.entra .list > *:nth-child(n+13) { animation: none; }
.inclina { will-change: auto; }
.inclina:hover { will-change: transform; }
/* archivos que manda el cliente (carta laboral, desprendibles…) */
.m.doc { min-width: 240px; max-width: 360px; white-space: normal; }
.m.doc .doc-t { font-weight: 800; }
.m.doc .doc-d { display: grid; gap: 2px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.6); font-size: 13.5px; }
.m.doc .doc-d div { display: flex; justify-content: space-between; gap: 10px; } .m.doc .doc-d span { color: var(--gris); } .m.doc .doc-d b { text-align: right; }
.m.doc .doc-a { margin-top: 8px; display: inline-flex; }
.item p b.tu { color: var(--azul); font-weight: 800; }
#vermas { margin-top: 4px; }
/* fotos y notas de voz del cliente, y borrar mensajes */
.m { position: relative; }
.m.aud { min-width: 260px; }
.m.aud audio { display: block; width: 100%; max-width: 300px; height: 40px; }
.m.aud .aud-t { margin-top: 4px; font-size: 13.5px; color: var(--gris); }
.m.img a { display: block; }
.mdel { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--linea2); background: var(--card-solid); color: var(--rojo); display: grid; place-items: center; padding: 0; opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s; box-shadow: 0 4px 12px rgba(15,30,61,.15); z-index: 2; }
.mdel svg { width: 15px; height: 15px; }
.m:hover .mdel, .mdel:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .mdel { opacity: .75; transform: none; top: -8px; right: -8px; } }
.m.in .mdel { right: auto; left: calc(100% - 18px); }

/* solicitudes: cédula repetida, envíos a visitantes, avisos */
.card.order.dup { border: 2px solid #EF4444; background: linear-gradient(0deg, rgba(239,68,68,.06), rgba(239,68,68,.06)), var(--card, #fff); }
.card.order.dup .ficha div:first-child b { color: #EF4444; }
.alert.rojo-a { background: rgba(239,68,68,.12); color: #B91C1C; border: 1px solid rgba(239,68,68,.35); border-radius: 12px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip.enviada { background: rgba(34,197,94,.14); color: #15803D; }
.env-row { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--linea, #eee); }
.env-row span { font-size: 12px; opacity: .75; }
.aviso-w { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--linea, #eee); }
.aviso-w.hecho { opacity: .55; }
.aviso-w .grow { min-width: 0; flex: 1; }
.aviso-w small { display: block; opacity: .7; }
.aviso-w .tx { white-space: pre-line; font-size: 13px; margin-top: 3px; max-height: 7.5em; overflow: hidden; }
.aviso-corte { margin: 14px 0 6px; text-align: center; font-size: 12px; font-weight: 700; color: #B45309; border-top: 2px dashed #F59E0B; padding-top: 6px; }
@media (prefers-color-scheme: dark) { .alert.rojo-a { color: #FCA5A5; } .chip.enviada { color: #86EFAC; } }
.aviso-w { position: relative; }
.aviso-w .nleer { position: static; transform: none; flex: none; align-self: flex-start; }
.aviso-w .av-link { color: inherit; text-decoration: none; }
.aviso-w .av-link:hover b { text-decoration: underline; }
/* solicitudes por día */
.tabs.dias { margin-top: 8px; }
.tabs.dias .cnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(37,99,235,.12); font-size: 11px; font-weight: 800; }
.tabs.dias button.on .cnt { background: rgba(255,255,255,.3); }
.dia-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 14px 2px 0; padding-bottom: 6px; border-bottom: 2px solid var(--linea, #e5e7eb); }
.dia-h b { font-size: 18px; font-weight: 900; }
.dia-h span { font-size: 12px; opacity: .7; }
.ndia { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--c, #2563EB); color: #fff; font-weight: 900; font-size: 16px; }
/* solicitud ya enviada a un visitante: tarjeta verde */
.card.order.env { border: 2px solid #22C55E; background: linear-gradient(0deg, rgba(34,197,94,.10), rgba(34,197,94,.10)), var(--card, #fff); }
.card.order.env .ficha { background: rgba(255,255,255,.55); }
.card.order.env .ndia { background: #16A34A; }
@media (prefers-color-scheme: dark) { .card.order.env .ficha { background: rgba(0,0,0,.15); } }
button.chip.enviada { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
button.chip.enviada:hover { filter: brightness(.95); }
/* número de visita al lado del botón de cada visitante */
.envgrp { display: inline-flex; align-items: stretch; gap: 0; }
.envgrp .numvis { width: 52px; text-align: center; font-weight: 900; font-size: 15px; border: 1.5px solid var(--linea2, #d6dbe6); border-right: 0; border-radius: 12px 0 0 12px; background: var(--card, #fff); color: inherit; padding: 0 4px; }
.envgrp .numvis:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.envgrp .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* cédula: se toca y se copia */
.cedcopy{all:unset;cursor:pointer;font-weight:700;color:inherit;border-bottom:1px dashed currentColor;padding:0 2px;border-radius:4px;text-align:right}
.cedcopy small{font-size:.8em;opacity:.7}
.cedcopy:hover{background:rgba(37,99,235,.08)}
.cedcopy.copiado{background:#DCFCE7;color:#15803D;border-bottom-color:transparent}

/* solicitud con datos actualizados por el cliente: amarilla hasta que se vuelva a mandar al visitante */
.card.order.upd { border: 2px solid #EAB308; background: linear-gradient(0deg, rgba(234,179,8,.14), rgba(234,179,8,.14)), var(--card, #fff); }
.card.order.upd .ficha { background: rgba(255,255,255,.6); }
.chip.upd{background:#FEF08A;color:#854D0E;font-weight:700}

/* inteligencia artificial */
.ia-per { margin-top: 10px; } .ia-per-t { font-weight: 900; font-size: 13px; color: var(--lila); }
.ia-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(37,99,235,.1); overflow: hidden; min-width: 60px; }
.ia-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2563EB, #60A5FA); border-radius: 99px; }
.ia-bar.big { height: 14px; margin: 8px 0; }
.ia-saldo > div:first-child > b { font-size: 28px; display: block; } .ia-saldo small { color: var(--gris); }
.ia-lim { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13.5px; }
.ia-lim span { flex: 0 0 46%; min-width: 0; } .ia-lim b { flex: 0 0 auto; font-size: 12.5px; white-space: nowrap; }
.ia-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 110px; align-items: end; margin: 8px 0; }
.ia-chart > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.ia-chart i { display: block; width: 100%; background: #2563EB; border-radius: 4px 4px 0 0; }
.ia-chart small { font-size: 10px; color: var(--gris); }
.ia-ult > div { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.ia-ult > div > div { flex: 1; min-width: 0; } .ia-ult small { display: block; color: var(--gris); font-size: 12px; }
.ia-ult em { font-style: normal; font-size: 12px; color: var(--lila); font-weight: 700; white-space: nowrap; }
.ia-oficial { margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(37,99,235,.06); font-size: 13.5px; }
.ci.ia { background: #D97757; box-shadow: 0 0 14px rgba(217,119,87,.35); }
img.logo-i { background: #fff; object-fit: contain; padding: 2px; border: 1px solid var(--linea2); box-shadow: 0 0 12px rgba(37,99,235,.18); }
.login .hero .brand-logo { width: min(300px, 70vw); height: auto; border-radius: 22px; background: #fff; box-shadow: 0 10px 40px rgba(15,42,94,.18); display: block; margin: 0 auto; }
#iamods { display: flex; flex-wrap: wrap; gap: 6px; }
#iamods .chip { border: 1px solid var(--linea2); background: #fff; color: var(--texto); cursor: pointer; }
#iamods .chip.on { background: #2563EB; color: #fff; border-color: #2563EB; }
/* catálogos */
.cat-h { display: flex; gap: 8px; align-items: center; }
.cat-n { flex: 1; min-width: 0; font-weight: 900; font-size: 17px; border: 0; background: transparent; padding: 4px 0; color: var(--texto); }
.cat-n:not([readonly]) { border-bottom: 1px dashed var(--linea2); }
.cat .th { position: relative; }
.cat-x, .cat-izq { position: absolute; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,30,61,.75); color: #fff; font-size: 13px; line-height: 26px; padding: 0; cursor: pointer; }
.cat-x { right: 4px; } .cat-izq { left: 4px; }
.cat textarea.cat-t { font-family: inherit; font-size: 15px; line-height: 1.45; }
.cat-row { display: grid; grid-template-columns: 76px 1fr 34px; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.cat-acc { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.cat-acc .btn { flex: 0 0 auto; }
.cat-oc { grid-column: 1 / -1; font-size: 12.5px; font-weight: 800; color: #9a6700; background: #fff4d6; border-radius: 8px; padding: 4px 8px; }
.cat-row.oculto .cat-ph, .cat-row.oculto .cat-tx { opacity: .45; }
.cat-ph { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: rgba(37,99,235,.06); }
.cat-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-addph { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border: 1.5px dashed rgba(37,99,235,.45); border-radius: 12px; color: #2563EB; font-weight: 800; font-size: 13px; text-align: center; cursor: pointer; }
.cat-row textarea.cat-tx { width: 100%; min-height: 76px; resize: vertical; font-size: 15px; }
.cat-ctl { display: flex; flex-direction: column; gap: 4px; }
.cat-ctl button { width: 34px; height: 24px; border: 1px solid var(--linea2); background: #fff; border-radius: 8px; font-size: 11px; padding: 0; cursor: pointer; color: var(--texto); }
.cat-ctl button:disabled { opacity: .3; }
.cat-mas { margin-top: 10px; }

/* catálogos: lista y artículos */
.catl-list { display: flex; flex-direction: column; gap: 10px; }
.catl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 18px; background: var(--card, #fff); text-decoration: none; color: var(--texto); box-shadow: 0 1px 2px rgba(15,30,61,.04); }
.catl-fotos { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--azul-bg); }
.catl-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catl-fotos img:only-child { grid-column: 1 / -1; grid-row: 1 / 3; }
.catl-fotos span { grid-column: 1 / -1; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.catl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.catl-b b { font-size: 16px; line-height: 1.25; }
.catl-oc { color: #9a6700; font-weight: 800; }
.catl-go { font-size: 28px; color: var(--gris2); line-height: 1; }
.art-add { width: 100%; padding: 14px; font-size: 15px; }
.art-list { display: flex; flex-direction: column; gap: 12px; }
.art { border: 1px solid var(--linea); border-radius: 18px; background: var(--card, #fff); overflow: hidden; box-shadow: 0 1px 2px rgba(15,30,61,.04); }
.art-top { display: flex; gap: 12px; padding: 12px; }
.art-ph { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--azul-bg); display: flex; align-items: center; justify-content: center; color: var(--gris2); font-size: 12px; font-weight: 700; }
.art-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.art-n { font-weight: 900; font-size: 15.5px; line-height: 1.25; }
.art-p { font-weight: 900; font-size: 16px; color: var(--azul); }
.art-sinp { color: #9a6700; font-size: 13.5px; }
.art-d { font-size: 13.5px; color: var(--gris); line-height: 1.35; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-st { margin-top: 3px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.art-st.vi { background: var(--verde-bg); color: #15803D; }
.art-st.oc { background: #fff4d6; color: #9a6700; }
.art.oculto { background: rgba(255,244,214,.35); }
.art.oculto .art-ph img { opacity: .5; }
.art-acc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); }
.art-acc button { border: 0; background: transparent; padding: 12px 4px; font-weight: 800; font-size: 13.5px; color: var(--texto); cursor: pointer; }
.art-acc button + button { border-left: 1px solid var(--linea); }
.art-acc button.rojo { color: var(--rojo); }
.art-acc button:active { background: var(--azul-bg); }
.cat-aj { margin-top: 16px; }
.cat-aj summary { font-weight: 900; cursor: pointer; padding: 2px 0; }
.cat-aj[open] summary { margin-bottom: 10px; }
.ed-ph { width: 100%; height: 200px; border-radius: 14px; overflow: hidden; background: var(--azul-bg); display: flex; align-items: center; justify-content: center; color: var(--gris2); font-weight: 700; }
.ed-ph img { width: 100%; height: 100%; object-fit: contain; background: #f4f6fb; }
.ed-pr { display: flex; align-items: center; gap: 6px; }
.ed-pr span { font-weight: 900; font-size: 18px; color: var(--azul); }
@media (min-width: 1000px) { .art-list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .catl-list { display: grid; grid-template-columns: 1fr 1fr; } }
.art-ph { position: relative; }
.art-nf { position: absolute; right: 5px; bottom: 5px; background: rgba(15,30,61,.78); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 7px; }
.ed-sin { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer; color: var(--azul); font-weight: 900; font-size: 15px; text-align: center; border: 2px dashed rgba(37,99,235,.4); border-radius: 14px; }
.ed-gal-h { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ed-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 8px; }
.ed-th { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--azul-bg); border: 2px solid transparent; }
.ed-th.pri { border-color: var(--azul); }
.ed-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-th button { position: absolute; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,30,61,.75); color: #fff; font-size: 12px; line-height: 24px; padding: 0; cursor: pointer; }
.ed-th button[data-g="pri"] { left: 4px; color: #FCD34D; }
.ed-th button.x { right: 4px; }
.ed-pri { position: absolute; left: 0; right: 0; bottom: 0; background: var(--azul); color: #fff; font-size: 11px; font-weight: 800; text-align: center; padding: 2px 0; }
.ed-vid { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 12px; font-weight: 800; color: var(--gris); }
.ed-add { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed rgba(37,99,235,.45); color: var(--azul); font-weight: 900; font-size: 12.5px; cursor: pointer; line-height: 1.2; }
