/* NetGrowth Media · estilos del menú nuevo y de Trabajo / Marcas / Ajustes.
   Usa los mismos colores (tokens) que styles.css, en claro y en oscuro. */

/* ----------------------------------------------------------- menú lateral */
.brandmark .logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--s1), color-mix(in srgb, var(--s1) 55%, var(--s3)));
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.capturar {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin: 0 2px 14px; padding: 9px 12px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--s1); color: #fff; font-weight: 600;
}
.capturar:hover { filter: brightness(1.07); }
.capturar .mic { font-size: 10px; color: #ffd6d6; }
.navbtn { font-size: 14px; }
.navcount { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--s2); color: #fff; border-radius: 999px; padding: 1px 7px; }
.navcount:empty { display: none; }
.foot-acc { display: flex; gap: 12px; margin-top: 8px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--s1); cursor: pointer; font-size: 12.5px; }
.linkbtn:hover { text-decoration: underline; }
.side footer .linkbtn { color: var(--ink-2); font-size: 12px; }

.tabs.seccion { position: sticky; top: 0; z-index: 5; background: var(--plane); margin: -8px 0 20px; padding-top: 8px; }
.tabs.fichatabs { margin: 0 0 14px; }

.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 54px; height: 54px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--s1); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--s1) 70%, transparent);
}
.fab:hover { transform: scale(1.05); }
body:has(dialog[open]) .fab { display: none; }

/* --------------------------------------------------------- piezas comunes */
.card { margin-bottom: 16px; }
.cardh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cardh h2 { font-size: 14px; margin: 0; letter-spacing: -.005em; }
.sub { font-size: 12px; color: var(--muted); }
a.sub { color: var(--muted); text-decoration: none; }
a.sub:hover { color: var(--s1); }
.empty-ic { font-size: 22px; opacity: .5; margin-bottom: 6px; }
.card .empty { padding: 22px 12px; }
.pill.voz { padding: 0 6px; }
.pill.bloq { color: var(--critical); }
.peligro { color: var(--critical) !important; }
.barra { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.barra span { display: block; height: 100%; border-radius: 99px; transition: width .3s; }
.mchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.mchip .sw { width: 8px; height: 8px; border-radius: 3px; }
.prio { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid; }
.prio.p-urgente { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 45%, transparent); background: color-mix(in srgb, var(--critical) 8%, transparent); }
.prio.p-alta { color: var(--s2); border-color: color-mix(in srgb, var(--s2) 45%, transparent); }
.prio.p-baja { color: var(--muted); border-color: var(--border-strong); }

.segs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.seg span { color: var(--muted); font-size: 11.5px; margin-left: 2px; }
.seg.on { background: var(--ink); color: var(--plane); border-color: var(--ink); }
.seg.on span { color: inherit; opacity: .7; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type=text] { flex: 1 1 220px; }

/* ------------------------------------------------------------------ tareas */
.tlist { display: flex; flex-direction: column; }
.trow { display: flex; align-items: flex-start; gap: 11px; padding: 10px 6px; border-bottom: 1px solid var(--grid); cursor: pointer; border-radius: 6px; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--surface-2); }
.trow.hecha .ttitle, .trow.cancel .ttitle { text-decoration: line-through; color: var(--muted); }
.trow.atrasada { box-shadow: inset 3px 0 0 var(--critical); }
.check { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface); cursor: pointer; color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center; }
.check:hover { border-color: var(--good); }
.check.on { background: var(--good); border-color: var(--good); }
.tinfo { flex: 1; min-width: 0; }
.ttitle { font-size: 14px; line-height: 1.35; }
.tmeta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: 12px; color: var(--muted); }
.meta-f.tarde { color: var(--critical); font-weight: 600; }
.star { flex: none; border: 0; background: none; cursor: pointer; color: var(--border-strong); font-size: 16px; padding: 0 2px; }
.star:hover { color: var(--s4); }
.star.on { color: var(--s4); }
.tlist.compacta .trow { padding: 7px 4px; }
.grupo { padding-top: 14px; }
.foco-fila { display: flex; align-items: center; gap: 4px; }
.foco-fila .trow { flex: 1; }
.mover { display: flex; flex-direction: column; }
.mover button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0 4px; }
.mover button:hover { color: var(--ink); }

/* ---------------------------------------------------------------------- Hoy */
.captura-barra { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px; margin-bottom: 14px; box-shadow: var(--shadow); }
.captura-barra input { flex: 1; border: 0 !important; background: transparent; font-size: 15px; padding: 8px 6px; outline: none !important; }
.mic-grande { width: 40px; height: 40px; border-radius: 9px; border: 0; cursor: pointer; background: color-mix(in srgb, var(--s1) 12%, transparent); color: var(--s1); display: grid; place-items: center; flex: none; }
.mic-grande:hover { background: var(--s1); color: #fff; }
.hoy-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-tiles > div { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.mini-tiles span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-tiles b { display: block; font-size: 20px; letter-spacing: -.02em; margin: 2px 0; }
.mini-tiles small { font-size: 11.5px; }
.proy-mini { padding: 9px 4px; border-bottom: 1px solid var(--grid); cursor: pointer; }
.proy-mini:last-child { border-bottom: 0; }
.proy-mini:hover { background: var(--surface-2); }
.pm-t { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.nota-mini { padding: 8px 0; border-bottom: 1px solid var(--grid); }
.nota-mini:last-child { border-bottom: 0; }
.nm-t { font-size: 13px; margin: 2px 0; color: var(--ink-2); }
.deshecha { opacity: .5; }

/* ---------------------------------------------------------------- diálogos */
dialog.ancho { max-width: 760px; }
dialog .dlghead { position: relative; padding-right: 48px; }
dialog .dlghead h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dlgsub { color: var(--muted); font-size: 12.5px; margin: 0; }
.cerrar { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.cerrar:hover { color: var(--ink); }
dialog .dlgbody { max-height: 70vh; }
dialog .dlgfoot { align-items: center; }
.titulo-grande { width: 100%; font-size: 17px !important; font-weight: 600; padding: 10px 12px !important; margin-bottom: 14px; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form2 select, .form2 input, .field textarea, .field > input, .field select { width: 100%; }
textarea { resize: vertical; }
.subrow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.subrow input[type=text] { flex: 1; padding: 5px 8px; }
.subrow.nuevo span { color: var(--muted); width: 16px; text-align: center; }
.nota-add { display: flex; gap: 6px; margin-bottom: 8px; }
.nota-add input { flex: 1; }
.log { border-left: 2px solid var(--grid); padding-left: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.log-i { font-size: 13px; }
.log-i .sub { display: block; font-size: 11px; }
.log-i.sistema { color: var(--muted); font-size: 12px; }
.log-i.voz { border-left: 2px solid var(--s1); padding-left: 8px; margin-left: -14px; }
.ap-lista { display: flex; flex-direction: column; gap: 6px; }
.ap-it { display: flex; align-items: center; gap: 8px; font-size: 13px; }
#dlg2 { z-index: 60; }

/* -------------------------------------------------------- captura por voz */
.cap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 14px; }
.cap-mic { width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; background: color-mix(in srgb, var(--s1) 14%, transparent); color: var(--s1); display: grid; place-items: center; transition: transform .15s; }
.cap-mic:hover { transform: scale(1.05); }
.cap-mic.on { background: var(--critical); color: #fff; animation: latido 1.3s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--critical) 55%, transparent); } 70% { box-shadow: 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cap-estado { font-size: 13px; color: var(--ink-2); text-align: center; }
.cap-tiempo { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 16px; }
#capTexto { width: 100%; }
.cap-pie { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.subir { cursor: pointer; }
.cap-ok { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 6%, transparent); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.cap-it { font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cap-acc { display: flex; gap: 16px; }

/* --------------------------------------------------------------- proyectos */
.pgrid, .mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.pgrid .card, .mgrid .card { margin-bottom: 0; }
.pcard { cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.pcard:hover, .mcard:hover { border-color: var(--border-strong); }
.pcard h2 { margin: 0; font-size: 15px; }
.pc-top { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.pc-obj { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.pc-marcas { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-prog { display: flex; flex-direction: column; gap: 5px; }
.pill.est-activo { color: var(--s1); }
.pill.est-completado { color: var(--good-ink); }
.pill.est-en_espera { color: var(--s4); }
.pl-prev { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }

/* -------------------------------------------------------------- calendario */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.cal-h { padding: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--grid); text-align: center; }
.cal-dia { min-height: 108px; padding: 6px; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-dia:nth-child(7n+7) { border-right: 0; }
.cal-dia:hover { background: var(--surface-2); }
.cal-dia.fuera { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.cal-dia.fuera .cal-n { color: var(--muted); opacity: .6; }
.cal-n { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cal-dia.hoy .cal-n { background: var(--s1); color: #fff; border-radius: 999px; width: 22px; height: 22px; display: grid; place-items: center; }
.cal-ev { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--c) 14%, transparent); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.lim { background: transparent; border: 1px dashed var(--c); }
.cal-ev.hecha { opacity: .45; text-decoration: line-through; }
.cal-ev.proy { --c: var(--s5); font-weight: 600; }
.cal-mas { font-size: 11px; color: var(--muted); }

/* ----------------------------------------------------------- ideas y notas */
.idea { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.idea:last-child { border-bottom: 0; }
.idea-t { min-width: 0; font-size: 14px; }
.idea-acc { display: flex; gap: 6px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.idea.vieja .idea-t { font-size: 13px; color: var(--ink-2); }
.nota { padding: 11px 0; border-bottom: 1px solid var(--grid); display: flex; flex-direction: column; gap: 5px; }
.nota:last-child { border-bottom: 0; }
.nota audio { width: 100%; height: 32px; }
.nota-t { font-size: 13.5px; }
.nota-c { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ marcas */
.mcard { cursor: pointer; display: flex; flex-direction: column; gap: 9px; }
.mc-top { display: flex; align-items: center; gap: 8px; }
.mc-top h2 { margin: 0; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-dot { width: 11px; height: 11px; border-radius: 4px; flex: none; display: inline-block; }
.mc-sub { font-size: 12.5px; color: var(--ink-2); }
.mc-cuentas { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--s1); }
.mc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mc-nums > div { background: var(--surface-2); border-radius: 8px; padding: 7px 9px; }
.mc-nums b { display: block; font-size: 17px; }
.mc-nums span { font-size: 11px; color: var(--muted); }
.mc-control { display: flex; flex-direction: column; gap: 5px; }
.mc-hijas { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--grid); padding-top: 8px; }
.mc-hija { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 5px 6px; border-radius: 6px; cursor: pointer; text-align: left; font-size: 13px; }
.mc-hija:hover { background: var(--surface-2); }
.mc-hija .sub { margin-left: auto; }
.pill.etapa-idea { color: var(--s5); }
.pill.etapa-incubacion { color: var(--s4); }
.pill.etapa-crecimiento { color: var(--s1); }
.pill.etapa-monetizacion, .pill.etapa-operativa { color: var(--good-ink); }
.pill.etapa-pausada, .pill.etapa-archivada { color: var(--muted); }
.control { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.ctl { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--grid); font-size: 13.5px; }
.ctl.completada b { color: var(--good-ink); }
.ctl.no_aplica { opacity: .5; }

/* ------------------------------------------------------------------ ajustes */
.ajustes { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.ajustes .card { margin-bottom: 0; }
.ajustes h2 { font-size: 15px; margin: 0 0 6px; }
.fila-f { display: flex; gap: 6px; }
.fila-f input { flex: 1; }
.paso { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.paso-n { width: 22px; flex: none; color: var(--muted); font-size: 12px; padding-top: 8px; text-align: right; }
.paso-c { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.paso-c input { width: 100%; }
.paso-c .det { font-size: 12.5px; padding: 5px 8px; }
.paso select { width: 96px; }
.paso .dia { width: 64px; }
.paso-acc { display: flex; gap: 8px; padding-top: 8px; }
code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* -------------------------------------------------------------- celular */
@media (max-width: 1000px) {
  .hoy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; z-index: 40;
    flex-direction: row; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); gap: 0;
    border-right: 0; border-top: 1px solid var(--border); overflow: visible;
  }
  .side .capturar { display: none; }
  #nav { display: flex; width: 100%; }
  .navbtn { flex: 1; flex-direction: column; gap: 1px; font-size: 10.5px; padding: 6px 2px; align-items: center; position: relative; }
  .navbtn .ic { font-size: 16px; opacity: .85; width: auto; }
  .navcount { position: absolute; top: 2px; right: 12%; margin: 0; font-size: 9.5px; padding: 0 5px; }
  .main { padding: 14px 14px 90px; }
  .fab { bottom: calc(76px + env(safe-area-inset-bottom)); right: 16px; }
  .tabs.seccion { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .form2 { grid-template-columns: 1fr; }
  .cal-dia { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border: 0; background: var(--c); }
  .cal-ev.lim { border: 0; opacity: .6; }
  .cal-mas { font-size: 9px; }
  .ajustes { grid-template-columns: 1fr; }
  .ctl { grid-template-columns: 1fr; gap: 4px; }
  dialog { width: calc(100% - 16px); max-height: calc(100vh - 24px); }
  dialog .dlgbody { max-height: calc(100vh - 200px); }
  .idea { flex-direction: column; }
  .toast { bottom: 140px; left: 16px; right: 16px; }
}
.hoy-ok { margin: -4px 0 14px; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* Conexiones */
.pasos { margin: 10px 0 14px; padding-left: 20px; font-size: 13.5px; line-height: 1.55; }
.pasos li { margin-bottom: 6px; }
.pasos code, .ajustes code { word-break: break-all; background: var(--surface2, rgba(127,127,127,.12)); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.ajustes h3 { font-size: 13px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fila-f.clave { gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

/* Carruseles */
.aviso-mac { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin: 0 0 14px; background: rgba(127,127,127,.1); }
.aviso-mac.bien { background: rgba(27,175,122,.12); color: var(--ink); }
.aviso-mac.mal { background: rgba(235,104,52,.14); color: var(--ink); }
.check-linea { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-top: 6px; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.checks label { display: flex; gap: 6px; align-items: center; font-size: 13.5px; }
.carlista { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.carcard { display: flex; gap: 14px; padding: 14px; }
.carport { width: 96px; height: 123px; object-fit: cover; border-radius: 8px; flex: none; background: rgba(127,127,127,.12); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--muted); overflow: hidden; }
.carport.vacio img { width: 100%; height: 100%; object-fit: cover; }
.carinfo { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.carinfo .sub { overflow-wrap: anywhere; }
.carlinea { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.carinfo .controls { margin-top: auto; padding-top: 6px; gap: 8px; }
.pill.est-aviso { background: rgba(237,161,0,.18); }
.pill.est-mal { background: rgba(235,104,52,.18); }
.pill.est-bien { background: rgba(27,175,122,.18); }
.pill.est-gris { opacity: .6; }
.galeria { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.galeria img { height: 340px; width: auto; border-radius: 8px; scroll-snap-align: start; display: block; }
.hoja { width: 100%; max-height: 380px; object-fit: contain; background: rgba(127,127,127,.08); border-radius: 8px; margin-bottom: 10px; }
details.hist { margin-top: 14px; }
details.hist summary { cursor: pointer; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .carlista { grid-template-columns: 1fr; } .galeria img { height: 260px; } }

/* ============ Contenido · carruseles (rediseño) ============ */
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.redes { display: inline-flex; gap: 4px; vertical-align: middle; }
.red { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(127,127,127,.12); }
.red-instagram { color: #d6249f; } .red-tiktok { color: var(--ink); }
.aviso-mac { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.agente { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(127,127,127,.14); }
.agente.trabaja { background: rgba(124,92,255,.18); }
.agente.off { opacity: .55; }
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ind { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r, 12px); background: var(--surface); cursor: pointer; color: var(--ink); font: inherit; }
.ind b { display: block; font-size: 22px; line-height: 1.1; }
.ind span:last-child { font-size: 12.5px; color: var(--muted); }
.ind.on { border-color: #7c5cff; box-shadow: 0 0 0 2px rgba(124,92,255,.18); }
.ind-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(124,92,255,.12); flex: none; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtros input[type=search] { flex: 1 1 220px; }
.filtros-sel { display: contents; }
.btn-filtros { display: none !important; }
.masiva { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--surface); border: 1px solid #7c5cff; }
.carlista { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.carcard { position: relative; display: flex; gap: 12px; padding: 12px; }
.carcard.sel { outline: 2px solid #7c5cff; }
.carsel { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--surface); border-radius: 6px; padding: 2px 4px; }
.carport { position: relative; width: 92px; height: 118px; flex: none; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: rgba(127,127,127,.12); display: grid; place-items: center; font-size: 26px; color: var(--muted); cursor: pointer; }
.carport img { width: 100%; height: 100%; object-fit: cover; }
.carn { position: absolute; right: 4px; bottom: 4px; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; }
.cartit { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.carmeta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ult { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pasos-car { display: flex; gap: 3px; margin: 2px 0; }
.pasos-car span { flex: 1; font-size: 10px; text-align: center; padding-top: 5px; border-top: 3px solid rgba(127,127,127,.2); color: var(--muted); }
.pasos-car span.hecho { border-color: #1baf7a; }
.pasos-car span.ahora { border-color: #7c5cff; color: var(--ink); font-weight: 600; }
.pill.est-proc { background: rgba(124,92,255,.16); }
.pill.est-cola { background: rgba(127,127,127,.14); }
.pill.est-ok { background: rgba(15,155,181,.16); }
.pill.est-pub { background: rgba(27,175,122,.28); }
.aviso-txt { color: #c98500; }
.carinfo-linea { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.carinfo-linea .pasos-car { flex: 1 1 280px; }
/* Revisión */
dialog.dlg-rev, dialog.dlg-crear { max-width: 1080px; width: calc(100vw - 32px); }
dialog.dlg-rev .dlgbody, dialog.dlg-crear .dlgbody { max-height: 74vh; }
.revision { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.rev-galeria, .rev-lado { min-width: 0; }
.rev-grande { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 10px; background: rgba(127,127,127,.1); }
.rev-grande img { flex: 0 0 100%; width: 100%; aspect-ratio: 1050/1350; object-fit: contain; scroll-snap-align: start; }
.rev-tira { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; }
.rev-tira button { position: relative; flex: none; width: 54px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.rev-tira button.on { border-color: #7c5cff; }
.rev-tira button.marcada::after { content: '↻'; position: absolute; top: 2px; right: 3px; color: #fff; background: #eb6834; border-radius: 50%; width: 16px; height: 16px; font-size: 11px; line-height: 16px; }
.rev-tira img { width: 100%; height: 100%; object-fit: cover; }
.rev-tira span { position: absolute; left: 3px; bottom: 2px; font-size: 10px; color: #fff; text-shadow: 0 0 3px #000; }
.rev-acc { display: flex; flex-wrap: wrap; gap: 6px; }
.rev-lado textarea { width: 100%; margin-bottom: 10px; }
.form3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Planificador */
.plan-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.marca-chip { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.marca-chip small { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.plan-barra { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 7px 12px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.seg button.on { background: #7c5cff; color: #fff; }
.nav-fecha { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-fecha input[type=date] { width: 150px; }
.plan-tit { margin-left: 6px; text-transform: capitalize; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dia { display: flex; flex-direction: column; min-height: 220px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 8px; }
.dia.hoy { border-color: #7c5cff; }
.dia.pasado { opacity: .78; }
.dia.soltar { background: rgba(124,92,255,.08); border-style: dashed; }
.dia-cab { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dia-items { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vacio-dia { font-size: 12px; color: var(--muted); padding: 10px 2px; }
.dia-mas { margin-top: 6px; border: 1px dashed var(--border); background: none; border-radius: 8px; padding: 6px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.dia-mas:hover { color: var(--ink); border-color: #7c5cff; }
.pitem { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px; border: 1px solid var(--border); border-left: 3px solid #999; border-radius: 8px; background: var(--plane); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pitem[draggable=true] { cursor: grab; }
.pitem.arrastrando { opacity: .5; }
.pitem.t-aviso { border-left-color: #eda100; } .pitem.t-mal { border-left-color: #eb6834; } .pitem.t-bien { border-left-color: #0f9bb5; }
.pitem.t-pub { border-left-color: #1baf7a; } .pitem.t-proc { border-left-color: #7c5cff; } .pitem.t-ok { border-left-color: #0f9bb5; } .pitem.t-cola { border-left-color: #9aa0a6; }
.pitem.ext { background: rgba(127,127,127,.06); }
.pthumb { width: 34px; height: 44px; flex: none; border-radius: 5px; overflow: hidden; background: rgba(127,127,127,.15); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.ptxt { min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; font-size: 12px; }
.ptit { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pest { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.ext-mark { color: #9aa0a6; font-size: 10px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.tira-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.tira-dias button { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 6px 0; font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.tira-dias button small { font-size: 11px; color: var(--muted); }
.tira-dias button i { font-style: normal; color: #7c5cff; height: 10px; line-height: 8px; }
.tira-dias button.on { background: #7c5cff; color: #fff; border-color: #7c5cff; }
.tira-dias button.on small, .tira-dias button.on i { color: #fff; }
.tira-dias button.hoy:not(.on) { border-color: #7c5cff; }
.dia-movil, .ag-dia { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-top: 10px; }
.dia-movil .dia-cab b, .ag-dia .dia-cab b { text-transform: capitalize; }
.dia-movil .ptxt, .ag-dia .ptxt { font-size: 13px; }
.dia-movil .pthumb, .ag-dia .pthumb { width: 46px; height: 58px; }
.agenda { display: flex; flex-direction: column; }
.mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mes-cab { font-size: 12px; text-align: center; color: var(--muted); padding: 4px 0; }
.mes-dia { position: relative; min-height: 64px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; padding: 4px 6px; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.mes-dia .n { font-size: 12px; color: var(--muted); }
.mes-dia b { font-size: 16px; }
.mes-dia i { position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 10px; background: #eda100; color: #000; border-radius: 999px; padding: 0 5px; }
.mes-dia.fuera { opacity: .35; }
.mes-dia.hoy { border-color: #7c5cff; }
.mes-dia.on { box-shadow: 0 0 0 2px #7c5cff; }
.mes-dia.vacio { border-style: dashed; }
.mes-dia .red { width: 16px; height: 16px; }
.marcas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.marca-card { display: flex; gap: 12px; align-items: center; padding: 14px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.marca-card .avatar { width: 44px; height: 44px; font-size: 15px; }
.mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-info small { color: var(--muted); }
/* Crear */
.dias-sem { display: flex; gap: 4px; flex-wrap: wrap; }
.dias-sem label { display: flex; gap: 2px; align-items: center; font-size: 13px; }
table.dist input[type=date] { width: 140px; } table.dist input[type=time] { width: 100px; }
.red-check { display: inline-flex; gap: 2px; align-items: center; margin-right: 8px; }
details.avanzado { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
details.avanzado summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.ficha-ro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ficha-ro > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ficha-ro .ancho { grid-column: 1 / -1; }
.ficha-ro p { margin: 0; font-size: 13px; }
.color { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 3px; border: 1px solid var(--border); }
.hthumb { width: 40px; height: 52px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: rgba(127,127,127,.12); cursor: pointer; }
.hthumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .inds { grid-template-columns: repeat(2, 1fr); } .semana { gap: 5px; } .dia { padding: 6px 5px; } .pthumb { display: none; } }
@media (max-width: 900px) { .revision { grid-template-columns: 1fr; } .form3 { grid-template-columns: 1fr 1fr; } .ficha-ro { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .carlista { grid-template-columns: 1fr; }
  .inds { grid-template-columns: repeat(4, 1fr); gap: 5px; } .ind { padding: 7px 8px; flex-direction: column; align-items: flex-start; gap: 0; } .ind b { font-size: 18px; } .ind span:last-child { font-size: 10.5px; line-height: 1.2; } .ind-ic { display: none; }
  .filtros-sel { display: none; width: 100%; } .filtros-sel.abierto { display: flex; flex-wrap: wrap; gap: 8px; } .btn-filtros { display: inline-flex !important; }
  .filtros-sel select { flex: 1 1 45%; }
  dialog .dlgfoot { flex-wrap: wrap; }
  dialog.dlg-rev, dialog.dlg-crear { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  dialog.dlg-rev .dlgbody, dialog.dlg-crear .dlgbody { max-height: calc(100dvh - 200px); }
  .form3 { grid-template-columns: 1fr; }
  .plan-barra .seg { order: 1; } .nav-fecha input[type=date] { width: 130px; }
  .mes-dia { min-height: 52px; } .mes-dia .redes { display: none; }
  table.dist input[type=date] { width: 120px; }
  .fichatabs { overflow-x: auto; flex-wrap: nowrap; }
}
/* Crear post a post, moldes y marca nueva */
.posts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.post-caja { border: 1px solid var(--border); border-left: 3px solid #7c5cff; border-radius: 12px; padding: 12px 14px; background: var(--surface-2, var(--surface)); }
.post-cab { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.post-cab .post-msg { flex: 1; }
.tipos { display: flex; flex-wrap: wrap; gap: 6px; }
.tipo { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left; max-width: 220px; }
.tipo small { font-size: 11px; color: var(--muted); }
.tipo.on { border-color: #7c5cff; background: rgba(124,92,255,.12); box-shadow: 0 0 0 1px #7c5cff; }
.config-marca { justify-content: space-between; }
.config-marca .fila-f { display: flex; gap: 8px; flex: 1 1 100%; flex-wrap: wrap; }
.config-marca .fila-f input { flex: 1 1 260px; }
.colores { display: flex; flex-wrap: wrap; gap: 12px; }
.colores label { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.colores input[type=color] { width: 34px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; }
.moldes { display: flex; flex-direction: column; gap: 8px; }
.molde { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.red-facebook { color: #1877f2; } .red-linkedin { color: #0a66c2; } .red-youtube { color: #ff0033; }
