:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --gold: #b45309;
  --btn-line: #bfdbfe;
  --danger: #ef4444;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.1rem 1rem 6.2rem;
  min-height: 100vh;
}
.top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.head-copy { min-width: 0; flex: 1; }
.eyebrow {
  margin: 0 0 0.15rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
html[data-tema] .top {
  background: var(--hero);
  color: #fff;
  margin: -1.1rem -1rem 0.85rem;
  padding: 0.75rem 1rem 0.65rem;
}
html[data-tema] .page-title { color: #fff; }
html[data-tema] .eyebrow { color: var(--accent); }
html[data-tema] .top .link { color: #fff; }
html[data-tema] .bell { background: #1a1a1a; }
html[data-tema] .bell svg { stroke: #fff; }
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
body.gate-on { background: #f3f8fb; }
body.gate-on #app {
  max-width: none;
  padding: 0;
}
.gate-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.gate-bar img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}
.gate-bar strong {
  color: #0a2540;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
.gate-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: #0a2540;
  padding: 3.2rem 1.25rem 4.2rem;
}
.gate-hero::before,
.gate-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.gate-hero::before {
  width: 16rem;
  height: 16rem;
  background: #00d4ff;
  opacity: 0.22;
  top: -5rem;
  left: -4rem;
}
.gate-hero::after {
  width: 12rem;
  height: 12rem;
  background: #6366f1;
  opacity: 0.28;
  right: -2rem;
  bottom: -3rem;
}
.gate-kicker,
.gate-hero h1,
.gate-hero p { position: relative; z-index: 1; }
.gate-kicker {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gate-hero h1 {
  margin: 0 auto;
  max-width: 18rem;
  font-size: 2.15rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.gate-hero h1 span {
  color: #7dd3fc;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gate-hero h1 span {
    background: linear-gradient(90deg, #00d4ff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.gate-hero p {
  max-width: 26rem;
  margin: 1rem auto 0;
  color: #dbeafe;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
}
.gate-form {
  max-width: 28rem;
  margin: -1.7rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}
.gate-form h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.gate-foot {
  max-width: 36rem;
  margin: 0.4rem auto 0;
  padding: 1.4rem 1.25rem 1.6rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}
.gate-foot p { margin: 0.35rem 0; }
@media (min-width: 720px) {
  .gate-hero { padding: 4.5rem 2rem 5rem; }
  .gate-hero h1 { max-width: none; font-size: 3.4rem; }
}
.bell {
  position: relative;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bell svg { width: 19px; height: 19px; }
.bell-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15rem;
}
.lead { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 0.85rem;
}
h1 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.sub { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: #93c5fd;
}
.btn {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.85rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover:not(:disabled) {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--btn-line); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.list li, .post {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  background: #fff;
  cursor: pointer;
}
.list .name, .post .name { font-weight: 800; }
.list .meta, .post .meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.profile-row span:first-child { color: var(--muted); }
.profile-row span:last-child { text-align: right; font-weight: 700; }
.badge, .pill {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 5.4rem;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 90vw;
  z-index: 100;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}
.toast.error { background: var(--danger); }
.hidden { display: none !important; }
.hint { font-size: 0.82rem; color: var(--muted); margin: 0.35rem 0 0; }
.estado {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.estado.pendiente { background: #fef3c7; color: #92400e; }
.estado.aprobada { background: #d1fae5; color: #065f46; }
.estado.rechazada { background: #fee2e2; color: #991b1b; }
.estado.resuelta { background: #e0e7ff; color: #3730a3; }
.estado.reprogramar { background: #ffedd5; color: #9a3412; }
.trash {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  cursor: pointer;
}
.item-head, .post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.item-brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.aviso-logo { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.neg-pick { display: flex; align-items: center; gap: 0.65rem; }
.row-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.row-actions .btn { margin-top: 0; }
.link { background: none; border: none; color: var(--blue); cursor: pointer; font-weight: 700; }

.cumple {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.1);
}
.cumple strong { display: block; font-size: 0.96rem; color: #7c2d12; }
.cumple span { color: #9a3412; font-size: 0.82rem; margin-top: 0.15rem; }
.cumple .btn { width: auto; margin: 0 0 0 auto; padding: 0.55rem 0.95rem; border-radius: 999px; font-size: 0.86rem; }
.pill.oficial { background: #fef3c7; color: #92400e; letter-spacing: 0.04em; }
.reacciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}
.reaccion {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.reaccion:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}
.reaccion.on {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.reaccion svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.reaccion.on svg { fill: currentColor; }
.reaccion b { font-weight: 800; }
.reaccion.pop { animation: bond-pop 0.28s ease; }
@keyframes bond-pop { 50% { transform: scale(1.12); } }

.motivos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 0.6rem 0 1.4rem;
}
@media (min-width: 640px) {
  .motivos {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .motivos {
    grid-template-columns: repeat(4, 1fr);
  }
}
.motivo-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 1.15rem 0.9rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.motivo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: rgba(234, 88, 12, 0.35);
}
.motivo-card:active {
  transform: scale(0.98);
}
.motivo-card .emoji-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.motivo-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}
.motivo-card span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}
.chip-filtro {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.chip-filtro:hover {
  background: #e2e8f0;
}
.chip-filtro.activo {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}
.sol-row { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.sol-row > div:last-child { text-align: right; }
.btn.slim { width: auto; margin: 0.35rem 0 0; padding: 0.4rem 0.7rem; font-size: 0.82rem; }
.estado.urgente { background: #fee2e2; color: #b91c1c; }
.estado.comercial { background: #fef3c7; color: #92400e; }
.estado.info { background: #e0e7ff; color: #3730a3; }
.msg {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  margin-bottom: 0.7rem;
}
.msg .btn { margin-top: 0; }
@media (min-width: 700px) {
  .msg { flex-direction: row; align-items: center; justify-content: space-between; }
  .msg .btn { width: auto; min-width: 12rem; }
}
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.8rem;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  width: min(440px, 100%);
  max-height: 86vh;
  overflow: auto;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.resp-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin: 0.75rem 0 0.4rem;
}
.resp-box p { margin: 0.35rem 0 0; }
@media (min-width: 700px) { .modal-back { align-items: center; } }

.atajos {
  display: flex;
  gap: 1.25rem;
  padding: 0.2rem 0 0.8rem;
  margin-bottom: 0.4rem;
  scrollbar-width: none;
}
.atajos::-webkit-scrollbar {
  display: none;
}
.atajo {
  border: none;
  background: transparent;
  min-width: 4.8rem;
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}
.atajo:active {
  transform: scale(0.95);
}
.anillo {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent, #d96b27);
  background: #fff;
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #fb7185, #f59e0b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 12px rgba(217, 107, 39, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.atajo:hover .anillo {
  box-shadow: 0 6px 18px rgba(217, 107, 39, 0.22);
  transform: translateY(-2px);
}
.atajo-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent, #d96b27);
  display: block;
}

/* Asistente Flotante Gemini / BOND */
.ai-fab {
  position: fixed;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  right: max(16px, calc(50vw - 14rem + 16px));
  background: var(--accent, #d96b27);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 17px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 10px 25px rgba(217, 107, 39, 0.38);
  cursor: pointer;
  z-index: 50;
  font-weight: 700;
  font-size: 0.84rem;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(217, 107, 39, 0.48);
}
.ai-fab:active {
  transform: scale(0.97);
}
.ai-fab-sparkle {
  font-size: 1rem;
  line-height: 1;
}

.ai-modal {
  position: fixed;
  bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  right: max(16px, calc(50vw - 14rem + 16px));
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(85vh - 70px);
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  z-index: 60;
  overflow: hidden;
  transition: opacity .2s ease, transform .2s ease;
}
.ai-modal.hidden {
  display: none !important;
}
.ai-header {
  background: var(--hero, #0b0b0b);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-header b {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}
.ai-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafc;
}
.ai-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}
.ai-msg.bot {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.ai-msg.user {
  background: var(--accent, #d96b27);
  color: #ffffff;
  align-self: flex-end;
}
.ai-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.ai-chip {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  color: #334155;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.ai-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(2px);
}
.ai-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  gap: 8px;
  background: #ffffff;
  align-items: center;
}
.ai-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 0.85rem;
  min-height: 38px;
  background: #fff;
  color: var(--ink, #0f172a);
}
.ai-footer .btn {
  width: auto;
  min-width: 80px;
  padding: 8px 14px;
  font-size: 0.85rem;
  margin: 0;
}
.composer {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.95rem;
  flex: 0 0 auto;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}
.composer textarea {
  min-height: 4.6rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 0.8rem 0.95rem;
  font-size: 0.94rem;
  transition: all 0.2s ease;
}
.composer textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.65rem; }
.composer-tools { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.composer-actions .btn { width: auto; padding: 0.65rem 1.25rem; font-size: 0.9rem; margin-top: 0; }
.foto-elegir {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.foto-elegir:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--blue);
}
.foto-elegir svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.menciones-menu {
  position: absolute;
  top: 4.8rem;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  max-height: 220px;
  overflow-y: auto;
  z-index: 60;
  padding: 0.35rem 0;
}
.mencion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}
.mencion-item:hover, .mencion-item.activo {
  background: #f1f5f9;
}
.mencion-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1e293b;
  flex: 0 0 auto;
}
.mencion-suc {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted, #64748b);
}
.mencion {
  display: inline-block;
  color: #1d4ed8;
  font-weight: 700;
  background: rgba(29, 78, 216, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
}
.post-previas { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.45rem; }
.post-previa { position: relative; width: 4.4rem; height: 4.4rem; }
.post-previa img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; background: #f1f5f9; }
.quitar-foto {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.consultar h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.consultar-atajos { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.consultar-atajos button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink);
}
#respuesta-asistente { margin: 0.7rem 0 0; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.stat {
  background: #fff;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat span { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 0.25rem; }
.stat strong { font-size: 1.05rem; }

.hero {
  background: linear-gradient(160deg, #16324f, #0f2744);
  color: #fff;
  border-radius: 22px;
  padding: 1.2rem 1.15rem 1.1rem;
  margin-bottom: 0.85rem;
}
.hero p { margin: 0.15rem 0; color: #cbd5e1; }
.hero .pct { color: #4ade80; font-size: 2rem; font-weight: 800; margin: 0.6rem 0 0; }
.jump {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.baboons-mark { width: 92px; height: auto; display: block; margin-bottom: 0.65rem; }
.jump strong { display: block; font-size: 1.05rem; }
.jump span { color: var(--muted); font-size: 0.85rem; }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(26.5rem, calc(100% - 1.5rem));
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 0.4rem 0.5rem;
  z-index: 40;
}
.nav-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.4rem 0.1rem 0.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}
.nav-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.2s ease;
}
.nav-btn.active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}
.nav-btn.active svg {
  transform: scale(1.1);
}
.stack { display: grid; gap: 0.5rem; }
.ruta-paso {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.65rem;
}
.ruta-paso h2 { margin: 0; font-size: 1.02rem; }
.ruta-paso .meta { margin: 0.3rem 0 0; }
.ruta-paso .btn { width: auto; margin-top: 0.7rem; }
.ruta-paso.bloqueada { background: #f8fafc; }
.ruta-paso.bloqueada h2,
.ruta-paso.bloqueada .meta { color: #94a3b8; }
.quiz-op { display: block; margin: 0.35rem 0; }
.kanban { display: grid; gap: 0.8rem; }
@media (min-width: 900px) { .kanban { grid-template-columns: 1fr 1fr 1fr; align-items: start; } }
.kanban-titulo { margin: 0 0 0.4rem; font-size: 0.95rem; }
.tarea {
  display: block;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tarea:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  border-color: rgba(234, 88, 12, 0.35);
}
.tarea strong, .tarea span { display: block; }
.tarea span { color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.tarea-foto { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-top: 0.35rem; }
.combo { position: relative; }
.combo-lista {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0.25rem;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  max-height: min(16rem, 50vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.combo-lista li {
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
}
.combo-lista li.activo,
.combo-lista li[aria-selected="true"] { background: #eff6ff; }
.combo-vacio { color: var(--muted); cursor: default; }
.tarea-referencia-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin: 0.7rem 0;
}
.tarea-referencia-box h3 { margin: 0; font-size: 0.95rem; }

/* Ordenes Dadas (F5) */
.estado.ord-emitida { background: #dbeafe; color: #1e40af; }
.estado.ord-aviso_recordatorio { background: #fef3c7; color: #92400e; }
.estado.ord-vencida_incumplimiento { background: #fee2e2; color: #991b1b; }
.estado.ord-imposibilidad_informada { background: #ffedd5; color: #9a3412; }
.estado.ord-reencaminada { background: #e0e7ff; color: #3730a3; }
.estado.ord-cumplida { background: #d1fae5; color: #065f46; }
.estado.ord-absorbida { background: #e5e7eb; color: #374151; }
.estado.ord-urgente { background: #fee2e2; color: #991b1b; font-weight: 700; }
.ord-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .9rem;
  margin-top: .75rem;
}
.ord-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .2rem;
}
.chk {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .75rem 0;
  font-weight: 600;
}
.chk input { width: auto; }
.version-pie {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.tablero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.6rem;
}
@media (max-width: 520px) {
  .tablero { grid-template-columns: 1fr; }
}
.tablero-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  background: #fff;
}
button.tablero-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.tablero-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.tablero-card strong { display: block; font-size: 0.92rem; margin-top: 0.2rem; }
.tablero-extra { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8rem; }
.tablero-suc {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.tablero-suc li { display: flex; justify-content: space-between; gap: 0.4rem; }
.tablero-suc b { color: var(--ink, #0f172a); }

.social-titulo { font-size: 1.05rem; margin: 1rem 0 0.55rem; }
.social {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 0.95rem;
  margin: 0 0 0.9rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social:hover {
  box-shadow: var(--shadow);
}
.social-top { display: flex; align-items: flex-start; gap: 0.75rem; }
.social .avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  font-weight: 800;
  font-family: var(--font-display);
  flex: 0 0 auto;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}
.social-quien { min-width: 0; flex: 1; }
.social-autor-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.social-autor-nombre { display: block; font-size: 0.96rem; font-weight: 800; color: #0f172a; line-height: 1.25; letter-spacing: -0.01em; }
.social-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin-top: 0.2rem; }
.social-marcas { display: inline-flex; align-items: center; gap: 0.3rem; }
.social-tiempo { color: var(--muted); font-size: 0.78rem; font-weight: 500; display: inline-flex; align-items: center; }
.social-quien strong { display: block; font-size: 0.96rem; font-weight: 700; color: #0f172a; }
.social-quien span { color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }
.social h3 {
  margin: 0.75rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.social .trash { background: transparent; color: #94a3b8; width: 1.7rem; height: 1.7rem; }
.pill.cadena { background: #f1f5f9; color: #475569; letter-spacing: 0.04em; }
.aviso-cuerpo { margin: 0.2rem 0 0.4rem; white-space: pre-wrap; }
.aviso-cuerpo .largo { display: none; }
.aviso-cuerpo.abierto .corto { display: none; }
.aviso-cuerpo.abierto .largo { display: inline; }
.ver-mas {
  border: none;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.aviso-fotos { display: grid; gap: 0.35rem; margin: 0.55rem 0 0.2rem; }
.aviso-fotos.n2, .aviso-fotos.n3, .aviso-fotos.n4 { grid-template-columns: 1fr 1fr; }
.aviso-foto {
  padding: 0;
  border: 0;
  background: #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.aviso-foto img { width: 100%; height: 160px; object-fit: cover; display: block; background: #f1f5f9; }
.aviso-fotos.n1 img { height: auto; max-height: 420px; }
.luz {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(15, 23, 42, 0.88);
}
.luz[hidden] { display: none; }
.luz img { max-width: 100%; max-height: 90vh; border-radius: 14px; }
.luz-cerrar {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
button.ocupado { cursor: progress; }
button.ocupado::after {
  content: "";
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: 0.45rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: bond-giro 0.7s linear infinite;
}
.reaccion.ocupado, .reaccion:disabled { opacity: 1; }
.reaccion.on:disabled { color: #1d4ed8; }
@keyframes bond-giro { to { transform: rotate(360deg); } }

.stat-ancho { grid-column: 1 / -1; }
.stat strong { line-height: 1.25; }
/* Selector semanal y mtricas compactas */
.stats-turnos-compact {
  margin-bottom: 0.5rem;
  gap: 0.4rem;
}
.stats-turnos-compact .stat {
  padding: 0.5rem 0.65rem;
}
.stats-turnos-compact .stat span {
  font-size: 0.68rem;
}
.stats-turnos-compact .stat strong {
  font-size: 0.88rem;
}
.semana-card-nav {
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.05);
}
.semana-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.btn-semana-flecha {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.btn-semana-flecha .icono-flecha {
  width: 0.95rem;
  height: 0.95rem;
}
.btn-semana-flecha .icono-reloj-btn {
  display: none;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--blue);
  animation: girarReloj 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.btn-semana-flecha.btn-cargando .icono-flecha {
  display: none;
}
.btn-semana-flecha.btn-cargando .icono-reloj-btn {
  display: inline-block;
}
.btn-semana-flecha:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}
.btn-semana-flecha:active:not(:disabled) {
  transform: scale(0.96);
}
.btn-semana-flecha:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.semana-titulo-wrap {
  text-align: center;
  min-width: 0;
  flex: 1;
}
.semana-rango-con-reloj {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.semana-rango-texto {
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.semana-reloj-indicador {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icono-reloj-animado {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--blue);
  animation: girarReloj 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  flex-shrink: 0;
}
@keyframes girarReloj {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.semana-sub {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.pill-esta-semana {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
}
.btn-volver-hoy {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.05rem 0.25rem;
}
.btn-volver-hoy:hover {
  color: #1d4ed8;
}

.semana-metricas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.semana-metrica {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  background: #ffffff;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.metrica-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.metrica-etiqueta {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0;
}

/* Card y Tira semanal compacta */
.card-calendario-compacto {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
}
.semana-header-compacto {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.semana-header-compacto h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem !important;
  letter-spacing: -0.01em;
}
.hint-mini {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.semana-tira {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin: 0.6rem 0 0.85rem;
}
.tira-dia {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.15rem 0.45rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tira-dia:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.tira-dia.hoy {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(59, 130, 246, 0.15);
}
.tira-dia-nombre {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tira-dia.hoy .tira-dia-nombre {
  color: #1d4ed8;
}
.tira-dia-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.tira-dia.hoy .tira-dia-num {
  color: #1e40af;
}
.tira-dia-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 1px;
}
.tira-dia-dot.trabaja {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Tarjetas de dias compactas */
.semana-dias {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: opacity 0.15s ease;
}
.semana-dias.cargando-atenuar {
  opacity: 0.55;
  pointer-events: none;
}
.dia-turno {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dia-turno.es-franco {
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  padding: 0.75rem 1rem;
}
.dia-franco-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}
.dia-turno.con-turno {
  border-left: 5px solid var(--primary, #f59e0b);
  background: #ffffff;
  padding: 0.95rem 1.1rem;
}
.dia-turno.hoy {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-color: #93c5fd;
  border-left-color: #3b82f6;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.1);
}
.dia-turno.con-turno.hoy {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}
.dia-destacado {
  animation: pulsoDestacado 1s ease;
}
@keyframes pulsoDestacado {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); }
}
.dia-turno header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.dia-info {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.dia-nombre {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.dia-turno.hoy .dia-nombre {
  color: #1d4ed8;
}
.dia-fecha {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}
.dia-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hoy-pill {
  background: #3b82f6;
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.55rem;
  letter-spacing: 0.03em;
}
.turno-pill {
  background: #dbeafe;
  color: #1e40af;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.55rem;
}
.franco-pill {
  background: #e2e8f0;
  color: #475569;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.55rem;
}
.franco {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.68rem;
}

/* Bloque de turno */
.bloque-turno {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 0 0.15rem;
}
.bloque-turno + .bloque-turno {
  border-top: 1px dashed var(--line);
  margin-top: 0.45rem;
  padding-top: 0.45rem;
}
.bloque-horario {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.bloque-horario .icono-reloj {
  width: 1rem;
  height: 1rem;
  color: var(--blue);
  flex-shrink: 0;
}
.bloque-horario strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.bloque-horario .duracion {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  margin-left: auto;
}
.bloque-detalles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.15rem;
}
.bloque-sucursal, .bloque-funcion {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}
.bloque-sucursal svg, .bloque-funcion svg {
  width: 0.82rem;
  height: 0.82rem;
  color: #64748b;
  flex-shrink: 0;
}
.bloque-funcion {
  font-weight: 600;
  color: #1e293b;
}
.bloque-nota {
  font-size: 0.8rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border-left: 3px solid #cbd5e1;
  margin-top: 0.2rem;
}

.plan-armar { margin-top: 0.85rem; }
.plan-armar summary { cursor: pointer; }
.plan-armar summary h2 { margin: 0.15rem 0; }
.fecha-ar {
  margin: -0.15rem 0 0.55rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}
.plan-reglas { font-size: 1.05rem; margin: 1.1rem 0 0.35rem; }
.cargando-tab { text-align: center; padding: 1.5rem 1rem 1.25rem; }
.reloj {
  width: 2.1rem;
  height: 2.1rem;
  margin: 0.15rem auto 0.75rem;
  border: 3px solid #dbeafe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: bond-giro 0.7s linear infinite;
}
.esqueleto { display: grid; gap: 0.55rem; margin-top: 0.95rem; }
.esqueleto span {
  display: block;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: bond-pulso 1.2s ease-in-out infinite;
}
.esqueleto span:nth-child(2) { width: 86%; }
.esqueleto span:nth-child(3) { width: 64%; }
@keyframes bond-pulso {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes bond-destacar {
  0% { box-shadow: 0 0 0 4px rgba(194, 91, 24, 0.45); transform: scale(1.01); }
  70% { box-shadow: 0 0 0 2px rgba(194, 91, 24, 0.2); }
  100% { box-shadow: none; transform: scale(1); }
}
.post-destacado {
  animation: bond-destacar 1.8s ease-out;
}

/* --- Hero Card: Turno de Hoy / Proximo Turno (Fase 3) --- */
.hero-turno {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-turno-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.hero-turno-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.hero-turno-tag .hero-icon {
  width: 16px;
  height: 16px;
  stroke: var(--primary, #f59e0b);
}
.badge-turno {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-turno.badge-encurso {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.badge-turno.badge-hoy {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.badge-turno.badge-proximo {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(203, 213, 225, 0.25);
}
.badge-turno.badge-franco {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.turn-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-turno-body {
  margin-bottom: 0.85rem;
}
.hero-turno-horas {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.55rem;
}
.hero-turno-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.chip-turno {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #e2e8f0;
}
.chip-turno svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}
.hero-turno-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
}
.btn-hero-semana {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-hero-semana:hover {
  color: #7dd3fc;
  transform: translateX(2px);
}
.btn-hero-semana svg {
  width: 14px;
  height: 14px;
}
.hero-turno-libre {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.hero-libre-tit {
  font-size: 1.15rem;
  color: #f1f5f9;
}
.hero-libre-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* --- Perfil / Yo (BOND 2.0) --- */
.perfil-card-hero {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem;
  margin-bottom: 0.95rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.35);
}
.perfil-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.perfil-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary, #f59e0b) 0%, #38bdf8 100%);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.perfil-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  display: block;
}
.perfil-avatar-iniciales {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.perfil-foto-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #1e293b;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.perfil-foto-badge svg {
  width: 12px;
  height: 12px;
}
.perfil-hero-info {
  min-width: 0;
  flex: 1;
}
.perfil-nombre-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.perfil-nombre {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.badge-talento-activo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-talento-activo .turn-pulse {
  width: 6px;
  height: 6px;
}
.perfil-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.chip-perfil {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #cbd5e1;
}
.chip-perfil svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}
.perfil-foto-placeholder-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  color: #94a3b8;
}
.perfil-foto-placeholder-hint svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
  flex-shrink: 0;
}
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.profile-row:last-of-type {
  border-bottom: none;
}
.profile-row > span:first-child {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.profile-row > span:last-child {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}
.btn-salir-perfil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-salir-perfil:hover {
  background: #fecaca;
  color: #7f1d1d;
  transform: translateY(-1px);
}
.btn-salir-perfil svg {
  width: 17px;
  height: 17px;
}

/* --- Modulo Ordenes (BOND 2.0) --- */
.ordenes-title-row {
  margin-bottom: 0.85rem;
}
.ordenes-title {
  margin: 0 0 0.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ordenes-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.orden-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.orden-tab-btn svg {
  width: 15px;
  height: 15px;
}
.orden-tab-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.ordenes-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.card-orden-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.05rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid #cbd5e1;
}
.card-orden-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}
.card-orden-item.ord-emitida {
  border-left-color: #3b82f6;
}
.card-orden-item.ord-aviso_recordatorio {
  border-left-color: #f59e0b;
}
.card-orden-item.ord-vencida_incumplimiento,
.card-orden-item.vencida {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}
.card-orden-item.ord-cumplida {
  border-left-color: #10b981;
}
.card-orden-item.ord-reencaminada {
  border-left-color: #6366f1;
}
.orden-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.orden-num-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.orden-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.orden-arrow {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.card-orden-item:hover .orden-arrow {
  transform: translateX(3px);
  color: var(--ink);
}
.orden-personas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.45rem;
}
.chip-persona {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #f1f5f9;
}
.chip-persona svg {
  width: 13px;
  height: 13px;
  color: #64748b;
}
.orden-fecha-emision {
  font-size: 0.74rem;
  color: var(--muted);
}
.orden-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.4;
  margin: 0.35rem 0 0.55rem;
}
.orden-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.orden-vencimiento {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #64748b;
}
.orden-vencimiento svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}
.orden-vencimiento.vencido-alert {
  color: #b91c1c;
  font-weight: 700;
}
.orden-vencimiento.vencido-alert svg {
  color: #ef4444;
}
.ordenes-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.empty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.empty-icon-wrap svg {
  width: 24px;
  height: 24px;
}
.ordenes-empty-state strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.ordenes-empty-state p {
  margin: 0;
  font-size: 0.84rem;
}
.btn-volver-orden {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: all 0.15s ease;
}
.btn-volver-orden:hover {
  background: #e2e8f0;
  transform: translateX(-2px);
}
.btn-volver-orden svg {
  width: 14px;
  height: 14px;
}
.orden-detalle-numero {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.orden-detalle-tit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.orden-detalle-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.orden-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #f8fafc;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.meta-item .meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.meta-item .meta-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.meta-item.meta-vencida .meta-val {
  color: #b91c1c;
}
.ord-box-modern {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.ord-texto-cuerpo {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
}
.orden-sec-titulo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}
button.btn.encuesta-aviso {
  margin: 0 0 0.85rem;
  text-align: left;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: var(--ink);
}
button.encuesta-aviso strong,
button.encuesta-aviso span,
button.encuesta-item strong,
button.encuesta-item span { display: block; }
button.encuesta-aviso span,
button.encuesta-item span {
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
button.encuesta-link { margin-top: 0; }
button.encuesta-item { text-align: left; margin-top: 0.55rem; }
.encuesta-opcion {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.45rem 0;
  font-weight: 600;
  color: var(--ink);
}
.encuesta-opcion input { width: auto; margin: 0; }
.encuesta-ya { font-weight: 800; margin: 0.35rem 0 0.4rem; }
.encuesta-barra {
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 0.35rem;
}
.encuesta-barra span {
  display: block;
  height: 100%;
  background: var(--blue, #2563eb);
}
