/* =====================================================================
   IAPG APPS Digitales — Tema unificado (mismo sistema gráfico que PLACAS)
   Se carga DESPUÉS de cms-editor.css. Solo sobrescribe estilo, no estructura.
   ===================================================================== */
:root, [data-theme="dark"], body.theme-dark {
  --bg-dark: #080d1a;
  --bg-panel: #131d33;
  --bg-subtle: #0b1324;
  --bg-hover: #1a2744;
  --border: #24324f;
  --border-strong: #35476b;
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --ring: 0 0 0 3px rgba(2,132,199,.28);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --elev-1: 0 1px 2px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.03) inset;
  --elev-2: 0 8px 24px -8px rgba(0,0,0,.45);
}
html, body { font-family: 'Inter', system-ui, sans-serif; }
h1, h2, h3, .home-title { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -.01em; }
::selection { background: rgba(2,132,199,.35); }
:focus-visible { outline: 2px solid #06b6d4; outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.35) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.28); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }

/* Barra superior */
.topbar { background: linear-gradient(180deg, #0b1222, #090f1d); box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 24px -16px rgba(0,0,0,.6); }
.tb-title-input { border-radius: 10px; }
.tb-btn { border-radius: 10px; box-shadow: var(--elev-1); }

/* Menú lateral: activo relleno en azul con brillo, como PLACAS */
.navbtn { border-radius: 12px; padding: 10px 4px; gap: 5px; }
.navbtn.active {
  background: linear-gradient(160deg, #0ea5e9, #0369a1);
  box-shadow: 0 8px 20px -6px rgba(2,132,199,.7), inset 0 1px 0 rgba(255,255,255,.25);
  color: #fff;
}
.navbtn.active .badge { background: rgba(255,255,255,.28); }

/* Aire entre títulos de sección y contenido */
.panel-head { margin-bottom: 22px; padding-bottom: 4px; }
.panel-head h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.panel-head p { margin-top: 0; margin-bottom: 18px; line-height: 1.5; }
.editor-col > * + * { margin-top: 4px; }
.editor-col .panel-head + * { margin-top: 18px; }

/* Inicio con el fondo de PLACAS y tarjeta de vidrio central */
.home-wrap {
  background: #080d1a url('../recursos/home_bg_placas.jpg') no-repeat center center;
  background-size: cover;
  overflow-y: auto;
  padding: 28px 24px 0;
}
.home-bg-overlay, [data-theme="dark"] .home-bg-overlay, body.theme-dark .home-bg-overlay {
  background: rgba(8,13,26,.18); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home-container {
  max-width: 860px; gap: 28px; padding: 30px 34px 34px; margin: 6px auto 20px;
  background: rgba(19,29,51,.88); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; box-shadow: 0 25px 60px rgba(0,0,0,.6); flex: 0 0 auto;
}
.home-head { background: transparent !important; border: 0 !important; box-shadow: none !important;
  flex-direction: column; text-align: center; padding: 0 !important; gap: 14px; }
.home-head .welcome-badge-icon { width: 64px; height: 64px; border-radius: 16px;
  background: rgba(2,132,199,.14); border: 1px solid rgba(2,132,199,.5);
  display: flex; align-items: center; justify-content: center; }
.home-title { font-size: 26px; font-weight: 800; color: #f8fafc; margin: 0 0 8px; }
.home-subtitle { color: #94a3b8; margin: 0; font-size: 14px; }

/* 4 botones: siempre 2 arriba y 2 abajo */
.home-actions-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 14px; }
@media (max-width: 480px) { .home-actions-grid { grid-template-columns: 1fr !important; } }
.home-act-card, body .home-act-card {
  background: rgba(11,19,36,.78) !important; border: 1px solid #24324f !important;
  border-radius: 14px; padding: 22px 18px; gap: 8px; min-height: 128px; justify-content: center;
  box-shadow: var(--elev-1);
}
.home-act-card:hover { border-color: #0284c7 !important; background: rgba(2,132,199,.10) !important;
  box-shadow: 0 10px 24px -8px rgba(2,132,199,.45); transform: translateY(-2px); }
.home-act-card h3 { color: #f8fafc !important; font-size: 15px; }
.home-act-card p { color: #94a3b8 !important; font-size: 12px; }
.home-act-ic { margin-bottom: 4px; background: rgba(2,132,199,.14) !important; color: #38bdf8 !important; }
.home-act-ic.green-ic { background: rgba(16,185,129,.14) !important; color: #34d399 !important; }
.home-act-ic.purple-ic { background: rgba(168,85,247,.16) !important; color: #c084fc !important; }

/* Lista de programas del servidor */
.home-recents-section { gap: 16px; }
.home-recents-head { margin-bottom: 4px; }
.home-recents-head h2 { color: #f8fafc; margin: 0 0 8px; }
.home-recents-head p { color: #94a3b8; margin: 0; }
.home-recents-grid > div[style*="dashed"] { background: rgba(11,19,36,.6) !important; border-color: #24324f !important; }

/* Botón principal de exportar */
.fucsia-btn, .pv-export-btn { border-radius: 12px; }

/* Checkboxes nativos → acordes al tema oscuro */
input[type="checkbox"] { accent-color: #0284c7; width: 16px; height: 16px; }
input[type="range"] { accent-color: #0284c7; }

/* Pie institucional */
.home-org-footer { padding-top: 6px; }

/* Pulido Inicio */
body .home-head, [data-theme] .home-head, body.theme-dark .home-head {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; backdrop-filter: none !important;
}
body .home-head .welcome-badge-icon {
  width: 64px !important; height: 64px !important; border-radius: 16px !important;
  background: rgba(2,132,199,.14) !important; border: 1px solid rgba(2,132,199,.5) !important;
  display: flex !important; align-items: center; justify-content: center; margin: 0 auto;
}
.home-title { font-size: 24px; }
.home-container { margin-top: 18px; }

/* ===== Vista previa: escenario y dispositivo ===== */
.pv-stage {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(2,132,199,.20), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 96%, rgba(0,0,0,.55), transparent 70%),
    linear-gradient(180deg, #0b1324, #080d1a);
}
.pv-demo-img, .pv-frame-overlay { filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.pv-frame-wrap.os-android .pv-iframe, .pv-frame-wrap.os-ios .pv-iframe { border-radius: 34px; padding-top: 44px; padding-bottom: 28px; }

/* ===== Selector Android/iOS oculto: un solo marco neutro ===== */
#pvOsSelector, #pvOsSep { display: none !important; }

/* Zonas de barra de estado / indicador: oscuras, sin franja blanca */
.pv-frame-wrap.os-android .pv-iframe, .pv-frame-wrap.os-ios .pv-iframe { background: #0b1324; }

/* ===== Vista Escritorio dentro de ventana de navegador ===== */
.pv-frame-wrap.desktop {
  width: calc(100% - 32px) !important; max-width: none !important;
  height: calc(100% - 32px) !important; margin: 16px auto !important;
  border-radius: 12px !important; overflow: hidden !important; position: relative;
  background: #0b1324 !important;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.10) !important;
}
.pv-frame-wrap.desktop::before {
  content: ""; display: block; flex: 0 0 38px; height: 38px;
  background:
    radial-gradient(circle at 18px 19px, #ff5f57 5px, transparent 5.5px),
    radial-gradient(circle at 36px 19px, #febc2e 5px, transparent 5.5px),
    radial-gradient(circle at 54px 19px, #28c840 5px, transparent 5.5px),
    linear-gradient(180deg, #1a2744, #131d33);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pv-frame-wrap.desktop::after {
  content: "download.iapg.org.ar/programa-digital"; position: absolute; top: 8px; left: 78px; right: 16px; height: 22px;
  line-height: 22px; padding: 0 12px; border-radius: 11px; background: #0b1324; color: #94a3b8;
  font: 500 11px 'Inter', system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-frame-wrap.desktop .pv-iframe { flex: 1 1 auto; min-height: 0; height: auto !important; background: #fff; }

/* ===== Checkboxes y controles acordes al tema ===== */
.editor-col input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid #35476b; background: #0b1324; cursor: pointer; position: relative; vertical-align: middle;
  transition: background .15s, border-color .15s;
}
.editor-col input[type="checkbox"]:checked { background: #0284c7; border-color: #0284c7; }
.editor-col input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.editor-col input[type="checkbox"]:focus-visible { box-shadow: var(--ring); outline: none; }

/* Pie institucional dentro de la tarjeta de inicio */
.home-container .home-org-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px !important; margin-top: 4px; }
.home-container .home-org-logo { max-height: 30px; }
.home-container .home-copyright-text { color: #7c8aa5; font-size: 11px; }

/* Grupos de botones de estilo (QR, etc.): sin botones huérfanos, filas parejas */
.qr-style-btn-group { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.qr-style-btn-group > .qr-style-btn, .qr-style-btn-group > .btn {
  min-width: 0 !important; width: 100%; padding: 8px 4px !important; font-size: 11.5px; gap: 4px; white-space: nowrap; justify-content: center; overflow: hidden;
}

/* ===== Modal Publicar / Exportar ===== */
.exp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 18px 0 16px; background: rgba(8,13,26,.6); border: 1px solid var(--border); border-radius: 12px; }
.exp-tab { border: 0; background: transparent; color: #94a3b8; font: 700 13px 'Inter', sans-serif; padding: 10px 8px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.exp-tab:hover { color: #e2e8f0; }
.exp-tab.active { background: linear-gradient(160deg, #0ea5e9, #0369a1); color: #fff; box-shadow: 0 6px 16px -6px rgba(2,132,199,.7); }
.pub-summary { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: rgba(2,132,199,.08); border: 1px solid rgba(2,132,199,.35); }
.pub-summary-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.pub-summary code { font: 600 13px 'Inter', monospace; color: #38bdf8; word-break: break-all; }
.pub-estado { min-height: 16px; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.pub-estado.ok { color: #34d399; } .pub-estado.err { color: #f87171; }
.pub-estado a { color: #38bdf8; font-weight: 700; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.pub-chips-lbl { font-size: 11.5px; color: #94a3b8; margin-right: 2px; }
.pub-chip { border: 1px solid var(--border-strong); background: rgba(11,19,36,.8); color: #cbd5e1; font: 600 12px 'Inter', sans-serif; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.pub-chip:hover { border-color: #0284c7; color: #38bdf8; }
#publishNowBtn { min-width: 150px; }

/* Tarjetas de programas del servidor: etiquetas (faltaba el estilo en el original) */
.home-proj-screen { position: relative; }
.home-proj-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center;
  height: 22px; padding: 0 10px; border-radius: 999px;
  font: 800 10px/1 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(2,132,199,.85); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

/* ===== Controles solo-ícono, deslizadores y Portada → Sponsors ===== */
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.active { background: var(--brand); color: #fff; border-color: transparent; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.align-icon-bar { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-dark, #080d1a); border: 1px solid var(--border); border-radius: 10px; }
.align-icon-btn { width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.align-icon-btn svg { width: 17px; height: 17px; }
.align-icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.align-icon-btn.active { background: linear-gradient(160deg,#0ea5e9,#0369a1); color: #fff; }
.ecard-hint { margin: -6px 0 14px; font-size: 12px; color: var(--text-muted); }
.ssp-line-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ssp-line-lbl { font-size: 12px; font-weight: 700; color: var(--text); }
.ssp-line-sl { min-width: 180px; flex: 1 1 180px; }
.ssp-line-row input[type=color] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; }
.ssp-group { margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); }
.ssp-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.ssp-cols { min-width: 220px; flex: 1 1 220px; max-width: 360px; }
.ssp-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ssp-logo { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); }
.ssp-logo b { flex: 1; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssp-logo.off { opacity: .5; }
.ssp-thumb { width: 44px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; padding: 3px; }
.ssp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.hdr-row { display: flex; gap: 12px; align-items: flex-start; }
.hdr-row textarea { flex: 1; min-width: 0; }
.hdr-row-side { flex: 0 0 auto; padding-top: 4px; }
.hdr-words summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--text); list-style: none; }
.hdr-words summary::-webkit-details-marker { display: none; }
.hdr-words summary::before { content: '▸ '; color: var(--brand); }
.hdr-words[open] summary::before { content: '▾ '; }
.hdr-words-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.hdr-word { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); }
.hdr-word b { min-width: 64px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.hdr-word input[type=range] { flex: 1; min-width: 60px; }
.venue-align-cell { display: flex; flex-direction: column; justify-content: flex-end; }
.align-icon-bar.sm .align-icon-btn { width: 28px; height: 26px; }
.venue-addr-row, .workspace.preview-desktop .venue-addr-row { grid-template-columns: 1.4fr 1.4fr 1fr 1fr .9fr auto !important; align-items: end; }
@media (max-width: 900px) { .venue-addr-row, .workspace.preview-desktop .venue-addr-row { grid-template-columns: 1fr 1fr !important; } .venue-align-cell { grid-column: span 2; } }

.btn.is-icon { width: 38px; height: 38px; min-width: 38px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; }
.btn.is-icon svg { width: 18px; height: 18px; margin: 0 !important; }
.btn.is-icon .ic-plus { position: absolute; top: 2px; right: 4px; font: 900 12px/1 'Inter', sans-serif; }
.btn.sm.is-icon { width: 34px; height: 34px; min-width: 34px; }

.is-align-ic { min-width: 34px; display: inline-flex; align-items: center; justify-content: center; }
.is-align-ic svg { width: 17px; height: 17px; }

.ecard-title > span:first-child, .ecard-title:not(:has(> span)) { display: inline-flex; align-items: center; gap: 9px; }
.ect-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(14,165,233,.14); color: #38bdf8; flex: 0 0 auto; }
.ect-ic svg { width: 15px; height: 15px; }

/* ===== Cronograma: acciones del día, ancho global y fila del día ===== */
.sch-top-actions { align-items: center; gap: 8px; }
.sch-sep { width: 1px; align-self: stretch; min-height: 26px; background: var(--border, rgba(148,163,184,.28)); margin: 0 4px; }
.days-width-row { display: flex; align-items: center; gap: 12px; margin: -2px 0 16px; padding: 8px 12px; border-radius: 10px; background: rgba(148,163,184,.07); max-width: 520px; }
.days-width-row .slider-lbl { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text-muted); }
.days-width-row input[type=range] { flex: 1; min-width: 120px; }
.day-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.day-row:last-child { margin-bottom: 0; }
.day-row > .field { flex: 0 1 auto; min-width: 150px; margin: 0; }
.day-row > .field.day-grow { flex: 1 1 260px; }
.day-row > .field.field-color { min-width: 0; flex: 0 0 auto; }
.day-row .visual-slider-row { margin: 0; }
.day-row .field-color input[type=color] { height: 38px; width: 46px; }
.day-row-type { padding-top: 12px; border-top: 1px solid rgba(148,163,184,.14); }

/* ===== Inicio: 4 accesos en una sola línea ===== */
.home-actions-grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 12px; }
.home-act-card, body .home-act-card { padding: 18px 12px; min-height: 0; }
.home-act-card h3 { font-size: 14px; }
.home-act-card p { font-size: 11.5px; }
@media (max-width: 760px) and (min-width: 861px) { .home-actions-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }

/* ===== QR: colores, fondo transparente y margen en una línea ===== */
.qr-color-row { align-items: end; }
.qr-color-row .qr-transp { display: flex; align-items: center; padding-bottom: 10px; margin: 0; }
.qr-color-row .qr-transp label { white-space: nowrap; }
@media (max-width: 1100px) { .qr-color-row .field.col-3 { grid-column: span 6; } }

/* ===== Sponsors: título + logos lado a lado ===== */
.sp-top { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.sp-top > .ecard { margin: 0; }
.sp-logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sp-tile { background: rgba(148,163,184,.06); border: 1px solid rgba(148,163,184,.18); border-radius: 12px; padding: 8px; min-width: 0; }
.sp-dz { position: relative; padding: 0 !important; border: 0 !important; background: none !important; display: block; min-height: 0; }
.sp-thumb { width: 100% !important; height: 78px !important; padding: 8px !important; background: #fff !important; border: 1px solid #cbd5e1 !important; border-radius: 9px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.sp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sp-thumb span { font-size: 11px; color: #64748b; }
.sp-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: rgba(15,23,42,.8) !important; border-radius: 8px; }
.sp-more { margin-top: 8px; }
.sp-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding: 6px 8px; border-radius: 8px; background: rgba(2,132,199,.12); color: #7dd3fc; }
.sp-more > summary::-webkit-details-marker { display: none; }
.sp-more > summary svg { width: 15px; height: 15px; flex-shrink: 0; }
.sp-more > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-more[open] > summary { background: rgba(2,132,199,.24); }
.sp-checks { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; }
.sp-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
@media (max-width: 1100px) { .sp-top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sp-logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ===== Botones flotantes: un bloque por botón ===== */
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.fb-block { border: 1px solid rgba(148,163,184,.18); border-radius: 12px; padding: 12px 14px 14px; background: rgba(148,163,184,.05); }
.fb-title { font-size: 12.5px; font-weight: 800; margin-bottom: 10px; color: #7dd3fc; }
.fb-ic label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; cursor: pointer; }
@media (max-width: 900px) { .fb-grid { grid-template-columns: 1fr; } }
.sp-top .sp-dz { display: block !important; }
.sp-top .sp-dz .sp-thumb { width: 100% !important; max-width: none !important; }
.qr-color-row .color-row .input { min-width: 0; width: 100%; padding-left: 8px; padding-right: 8px; }
.qr-color-row .qr-transp label { font-size: 11.5px !important; }

/* ===== Inicio: más aire y miniaturas de programas más chicas ===== */
.home-container { max-width: 1040px; }
.home-actions-grid { gap: 16px; }
.home-act-card, body .home-act-card { padding: 22px 16px; min-height: 150px; }
.home-act-card h3 { font-size: 15px; margin-top: 4px; }
.home-act-card p { font-size: 12px; line-height: 1.45; }
.home-recents-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 260px)) !important; gap: 14px; }
.home-proj-screen { height: 56px !important; padding: 8px 10px !important; }
.home-proj-screen .home-proj-tag { top: 8px; left: 8px; font-size: 8.5px; padding: 3px 8px; }
.home-proj-screen .home-proj-logo-box { transform: scale(.55); transform-origin: center; }
.home-proj-body { padding: 10px 12px 12px; gap: 8px; }
.home-proj-body h4 { font-size: 13px; }
.home-proj-meta { font-size: 11px; }
@media (max-width: 860px) { .home-recents-grid { grid-template-columns: 1fr !important; } .home-proj-screen { height: 64px !important; } }
.home-act-card, body .home-act-card { justify-content: flex-start !important; }
.home-act-card p { min-height: 0; }

/* ===== Portada: agregar logos desde Sponsors ===== */
.ssp-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ssp-add-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(2,132,199,.18); color: #7dd3fc; flex-shrink: 0; }
.ssp-add-ic svg { width: 16px; height: 16px; }
.ssp-add .select { flex: 1; max-width: 420px; }
.ssp-empty { font-size: 12px; color: var(--text-muted); padding: 6px 2px; }

/* ===== Inicio (escritorio): 2 columnas, botones horizontales y todo a la vista ===== */
@media (min-width: 861px) {
  .home-wrap { padding: 14px 24px 0; }
  .home-container { max-width: 900px; gap: 16px; padding: 20px 28px 20px; margin: 0 auto 12px; }
  .home-head { gap: 8px; }
  .home-head .welcome-badge-icon { width: 46px; height: 46px; border-radius: 13px; }
  .home-title { font-size: 22px; margin: 0 0 4px; }
  .home-subtitle { font-size: 13px; }
  .home-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .home-act-card, body .home-act-card { flex-direction: row !important; align-items: center; justify-content: flex-start !important; text-align: left; gap: 14px; padding: 12px 16px; min-height: 0; }
  .home-act-card .home-act-ic { margin: 0; flex-shrink: 0; width: 46px; height: 46px; }
  .home-act-card h3 { font-size: 14px; margin: 0 0 2px; }
  .home-act-card p { font-size: 11.5px; margin: 0; line-height: 1.35; }
  .home-act-card > :not(.home-act-ic) { text-align: left; }
}
.home-act-txt { display: flex; flex-direction: column; min-width: 0; align-items: inherit; }
@media (min-width: 861px) { .home-act-txt { align-items: flex-start; text-align: left; } }
@media (max-width: 860px) { .home-act-txt { align-items: center; text-align: center; } }

/* ===== Encabezado: filas compactas ===== */
.hdr-line { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.hdr-line > .field { margin: 0; min-width: 0; }
.hdr-f-name { flex: 1 1 170px; }
.hdr-f-date { flex: 1.3 1 230px; }
.hdr-f-title { flex: 1.3 1 200px; }
.hdr-f-al { flex: 0 0 auto; }
.hdr-f-title textarea { min-height: 42px; height: 42px; resize: vertical; padding-top: 10px; }
.hdr-line .check-pill { white-space: nowrap; }
.hdr-line2 { align-items: flex-start; }
.hdr-f-size { flex: 1 1 340px; }
.hdr-f-words { flex: 1 1 340px; margin: 0; }
.hdr-f-words > summary { min-height: 40px; display: flex; align-items: center; }

/* Logo del evento: una sola línea */
.evl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.evl-dz { flex: 0 1 330px; min-width: 260px; }
.evl-dz .dropzone { margin: 0; }
.evl-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.evl-lbl { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin: 0 0 4px; }
.evl-grow { flex: 1 1 200px; justify-content: center; }
.evl-stack { flex: 1.4 1 300px; gap: 10px; }
.evl-stack .align-seg { display: flex; width: 100%; }
.evl-stack .align-seg button { flex: 1; white-space: nowrap; }
.evl-row .visual-slider-row, .evl-row .align-3pos-track { min-height: 38px; box-sizing: border-box; }
@media (max-width: 860px) { .evl-dz { flex: 1 1 100%; } }
.hdr-line { align-items: flex-start; }
.hdr-f-al .align-icon-bar, .hdr-f-al .align-3pos-track { margin-top: 0; }
.hdr-f-words { position: relative; }
.hdr-f-words > summary { min-height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(148,163,184,.07); border: 1px solid rgba(148,163,184,.14); }
.hdr-f-words[open] > .hdr-words-grid { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 10px; border-radius: 12px; background: #131d33; border: 1px solid rgba(148,163,184,.3); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.hdr-line2 { margin-bottom: 4px; }
.evl-dz { flex: 0 0 auto !important; min-width: 0 !important; width: 150px; }
.evl-dz .dz-info { display: none !important; }
.evl-dz .dropzone { gap: 8px; justify-content: space-between; }
.evl-dz .dz-thumb { width: 76px !important; height: 44px !important; }
.evl-row { flex-wrap: nowrap; align-items: flex-end; gap: 12px; }
.evl-cell { flex: 0 0 auto; }
.evl-grow { flex: 1 1 150px !important; min-width: 150px; }
.evl-stack { flex: 1.5 1 260px !important; min-width: 250px; }
@media (max-width: 860px) { .evl-row { flex-wrap: wrap; } .evl-dz { width: 100%; } .evl-dz .dz-info { display: block !important; } }

/* ===== Encabezado: alineación fina y pesos por palabra visibles ===== */
.hdr-line { align-items: flex-start; }
.hdr-line .input, .hdr-line textarea.input { height: 42px; box-sizing: border-box; }
.hdr-f-title textarea { padding-top: 10px; resize: none; }
.hdr-f-date > div { align-items: flex-start !important; }
.hdr-line .check-pill { height: 42px; box-sizing: border-box; display: inline-flex; align-items: center; }
.hdr-f-al .align-icon-bar, .hdr-f-al .align-3pos-track, .venue-align-cell .align-icon-bar, .venue-align-cell .align-3pos-track { height: 42px; box-sizing: border-box; display: flex; align-items: center; }
.hdr-line2 { align-items: stretch; }
.hdr-f-size { flex: 1 1 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.hdr-f-words { flex: 2 1 420px; min-width: 0; position: static; }
.hdr-words-lbl { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 6px; }
.hdr-words-lbl small { color: var(--text-muted); font-weight: 600; }
.hdr-f-words .hdr-words-grid { display: flex !important; flex-wrap: wrap; gap: 8px; position: static !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.hdr-f-words .hdr-word { flex: 1 1 190px; max-width: 260px; min-height: 40px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 10px; background: rgba(148,163,184,.07); }
.hdr-f-words .hdr-word input[type=range] { flex: 1; min-width: 50px; }
.hdr-f-words .hdr-word .slider-val { font-size: 12px; min-width: 28px; text-align: right; }
/* controles de una misma fila a la misma altura y centrados */
.visual-slider-row, .align-3pos-track, .align-icon-bar, .align-seg { min-height: 40px; box-sizing: border-box; align-items: center; }
.hlogo-card { cursor: default; }
.hdr-line2 { align-items: flex-start !important; flex-wrap: nowrap; }
.hdr-f-size { flex: 0 0 300px !important; margin-top: 24px !important; display: block; }
.hdr-f-words { flex: 1 1 0 !important; }
.hdr-f-words .hdr-word { flex: 1 1 170px; max-width: 240px; }
@media (max-width: 1100px) { .hdr-line2 { flex-wrap: wrap; } .hdr-f-size { flex: 1 1 100% !important; margin-top: 0 !important; } }
.hdr-words-lbl { white-space: nowrap; } .hdr-words-lbl small { display: inline; }
.evl-row { align-items: center !important; }
.evl-cell, .evl-dz { align-self: center; }
.evl-stack { justify-content: center; }

/* ===== Ritmo unificado: espacios iguales entre contenedores; alto único de controles ===== */
.panel-head { margin-bottom: 8px !important; padding-bottom: 0 !important; }
.panel-head h2 { margin-bottom: 4px; }
.panel-head p { margin-bottom: 0 !important; }
.editor-col .panel-head + * { margin-top: 10px !important; }
#editorCol .ecard, #editorCol .sp-top, #editorCol .sgrp-list > * { margin-top: 0 !important; margin-bottom: 14px !important; }
#editorCol .sp-top > .ecard { margin-bottom: 0 !important; }
#editorCol .ecard-title { margin-bottom: 14px; }
#editorCol .fgrid { gap: 12px; }
#editorCol .input, #editorCol .select, #editorCol select.select, #editorCol .btn:not(.sm):not(.icon-only),
#editorCol .visual-slider-row, #editorCol .align-seg, #editorCol .align-icon-bar, #editorCol .align-3pos-track,
#editorCol .check-pill, #editorCol .color-row { min-height: 42px; box-sizing: border-box; }
#editorCol textarea.input { min-height: 42px; }
#editorCol .visual-slider-row, #editorCol .color-row { margin-top: 0; }
#editorCol .align-seg button, #editorCol .align-3pos-dot { min-height: 38px; }

/* Peso por palabra (modo) */
.hdr-line2 { display: flex; gap: 12px; align-items: center !important; flex-wrap: nowrap !important; }
.hdr-line2 .hdr-f-size { flex: 1 1 auto !important; margin-top: 0 !important; min-width: 0; }
.hdr-wm-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; white-space: nowrap; }
.hdr-wm-btn svg { width: 17px; height: 17px; }
.hdr-wm-btn.active { background: var(--brand); color: #fff; }
.hdr-words-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hdr-words-row .hdr-word { flex: 1 1 200px; min-width: 0; min-height: 42px; box-sizing: border-box; }
@media (max-width: 860px) { .hdr-line2 { flex-wrap: wrap !important; } .hdr-wm-btn { width: 100%; justify-content: center; } }

/* Ajuste de los botones de día */
.dstyle-al .dstyle-ctl { display: flex; }
.dstyle-al .align-icon-bar { width: 100%; }

/* Logo del evento: caja grande + 2 líneas */
.evl-grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 12px; align-items: stretch; }
.evl-dz .dropzone { height: 100%; min-height: 96px; box-sizing: border-box; flex-direction: column; justify-content: center; align-items: center; padding: 8px; gap: 6px; margin: 0; }
.evl-grid .evl-dz { width: auto !important; flex: none !important; }
.evl-grid .evl-dz .dz-thumb { width: 100% !important; height: 100% !important; min-height: 56px; flex: 1; }
.evl-ctl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.evl-line { display: flex; gap: 12px; align-items: center; min-height: 42px; }
.evl-line > * { flex: 1 1 0; min-width: 0; }
.evl-line .align-3pos-track { flex: 0 0 auto; }
.evl-line .align-seg { display: flex; }
.evl-line .align-seg button { flex: 1; white-space: nowrap; }
@media (max-width: 860px) { .evl-grid { grid-template-columns: 1fr; } .evl-line { flex-wrap: wrap; } .evl-line > * { flex: 1 1 100%; } }

/* Sponsors: paginador */
.sp-logos-card .ecard-title { display: flex; align-items: center; justify-content: space-between; }
.sp-pager { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sp-pager .icon-btn { width: 28px; height: 28px; font-size: 18px; line-height: 1; }
.sp-pager .icon-btn[disabled] { opacity: .35; cursor: default; }
.evl-dz .dropzone { position: relative; }
.evl-dz .evl-clear { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 0; min-height: 0 !important; }
.evl-grid .evl-dz .dz-thumb { margin: 0; }
/* Sponsors: logos y título a igual alto */
#editorCol .sp-top { align-items: stretch !important; }
#editorCol .sp-top > .ecard { height: 100%; box-sizing: border-box; }
.sp-logos-card { display: flex; flex-direction: column; }
.sp-logos-card .sp-logo-grid { flex: 1; align-content: start; }
/* Logo del evento: alineación a todo el ancho en móvil */
@media (max-width: 860px) {
  .evl-line .align-3pos-track, .evl-line .align-3pos-track .align-3pos-bar { flex: 1 1 100% !important; width: 100% !important; }
  .evl-line .align-3pos-dot { flex: 1; }
}
@media (max-width: 860px) {
  #editorCol .evl-line .align-3pos-track, #editorCol .evl-line .align-3pos-track.sm { max-width: none !important; width: 100% !important; display: flex; }
  #editorCol .evl-line .align-3pos-track .align-3pos-bar { width: 100%; }
}
/* Sponsors: logos más altos, llenan el contenedor */
#editorCol .sp-logos-card .sp-logo-grid { flex: 1; align-content: stretch; align-items: stretch; grid-template-rows: repeat(2, minmax(0, 1fr)); }
#editorCol .sp-logos-card .sp-tile { display: flex; flex-direction: column; }
#editorCol .sp-logos-card .sp-tile > .sp-dz { flex: 1; display: flex !important; min-height: 96px; }
#editorCol .sp-logos-card .sp-tile .sp-thumb { height: auto !important; min-height: 96px; flex: 1; }

/* ===== Inicio centrado; sin temblor en hover; asa de arrastre ===== */
.home-wrap { display: flex !important; flex-direction: column; }
.home-wrap > .home-container { margin: auto !important; flex: 0 0 auto; width: 100%; }
.home-act-card:hover, .home-proj-card:hover, .welcome-card-sq:hover, .tb-install-btn:hover,
.btn:hover, .icon-btn:hover, .btn:active, .icon-btn:active { transform: none !important; }
.home-act-card, .home-proj-card { transition: background-color .15s, border-color .15s, box-shadow .15s !important; }
.sess-item .drag-handle { cursor: grab; touch-action: none; }
.sess-item:not([draggable="true"]) { -webkit-user-drag: none; }

/* Stepper ‹ n › y fila de botón flotante */
.stepper { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 8px 0 14px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 12px; background: rgba(148,163,184,.07); min-width: 0; }
.stepper .stp-lbl { font-size: 12px; font-weight: 700; margin-right: 6px; white-space: nowrap; }
.stepper .stp-btn { width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(2,132,199,.2); color: #7dd3fc; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; }
.stepper .stp-btn:hover:not([disabled]) { background: var(--brand); color: #fff; }
.stepper .stp-btn[disabled] { opacity: .3; cursor: default; }
.stepper .stp-val { min-width: 22px; text-align: center; font-size: 14px; color: var(--brand); }
.ssp-cols.stepper { flex: 0 0 auto; max-width: none; min-width: 0; }
.fb-line { display: flex; gap: 12px; align-items: flex-end; }
.fb-f-txt { flex: 1 1 auto; min-width: 0; }
.fb-f-col, .fb-f-ic { flex: 0 0 auto; }
.fb-f-col .color-row { height: 42px; }
.fb-f-ic .check-pill { height: 42px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; white-space: nowrap; }
.fb-f-ic > label:first-child, .fb-f-col > label:first-child { display: block; }
@media (max-width: 520px) { .fb-line { flex-wrap: wrap; } .fb-f-txt { flex: 1 1 100%; } }

/* ===== Sponsors: botón Opciones + panel lateral ===== */
.sp-opt-btn { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 0; border-radius: 9px; background: rgba(2,132,199,.14); color: #7dd3fc; font: 700 12.5px/1 inherit; cursor: pointer; }
.sp-opt-btn svg { width: 15px; height: 15px; }
.sp-opt-btn:hover { background: rgba(2,132,199,.28); }
.sp-opt-btn.active { background: var(--brand); color: #fff; }
#editorCol .sp-top { position: relative; }
#editorCol .sp-top > .sp-opt-panel { grid-column: 1; grid-row: 1; z-index: 6; overflow-y: auto; background: #101a2f; border: 1px solid var(--brand); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
#editorCol .sp-top > .sp-opt-panel .ecard-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#editorCol .sp-top > .sp-opt-panel .ecard-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { #editorCol .sp-top > .sp-opt-panel { grid-column: 1; grid-row: 3; } }
.sp-top .sp-tile { padding-bottom: 8px; }

/* ===== Sponsors en grupo: tarjetas individuales, hasta 6 por fila ===== */
.sgrp-assigned-grid { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sgrp-member-row.sgrp-card-sp { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px !important; border-radius: 12px; border: 1px solid rgba(148,163,184,.2); background: rgba(148,163,184,.06); min-width: 0; }
.sgrp-sp-logo { height: 64px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 6px; box-sizing: border-box; overflow: hidden; }
.sgrp-sp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sgrp-sp-logo span { font-size: 11px; color: #64748b; }
.sgrp-card-sp .sgrp-member-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgrp-card-sp .sgrp-move-sel { width: 100%; min-width: 0; font-size: 11.5px; height: 36px; min-height: 36px !important; }
.sgrp-sp-actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 1200px) { .sgrp-assigned-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sgrp-assigned-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-opt-btn { font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; }
#editorCol .sp-top > .ecard:not(.sp-logos-card):not(.sp-opt-panel) { grid-column: 1; grid-row: 1; }
#editorCol .sp-top > .sp-logos-card { grid-column: 2; grid-row: 1; }
@media (max-width: 1100px) {
  #editorCol .sp-top > .ecard:not(.sp-logos-card):not(.sp-opt-panel) { grid-column: 1; grid-row: 1; }
  #editorCol .sp-top > .sp-logos-card { grid-column: 1; grid-row: 2; }
}
#editorCol .sp-top > .sp-opt-panel { height: 0 !important; min-height: 100% !important; contain: size; box-sizing: border-box; align-self: stretch; }
@media (max-width: 1100px) { #editorCol .sp-top > .sp-opt-panel { height: auto !important; min-height: 0 !important; contain: none; } }
#editorCol .sp-opt-panel .fgrid { gap: 8px !important; margin-top: 0 !important; }
#editorCol .sp-opt-panel .ecard-title { margin-bottom: 8px; }
#editorCol .sp-opt-panel .sp-checks { flex-direction: row !important; flex-wrap: wrap; gap: 6px 14px; }
#editorCol .sp-opt-panel label small { display: inline; }
#editorCol .sp-opt-panel .sp-checks { gap: 6px 10px; font-size: 11.5px; }
.fb-line { align-items: flex-end !important; }
.fb-f-ic > label:first-child { display: none !important; }
.fb-f-ic .check-pill, .fb-f-col .color-row, .fb-f-txt .input { height: 42px; min-height: 42px; box-sizing: border-box; margin: 0; }

/* ===== Inicio: título + buscador en una línea ===== */
.home-recents-section { margin-top: 22px; }
.home-recents-head { align-items: center !important; flex-wrap: nowrap !important; gap: 16px !important; }
.home-recents-head h2 { margin: 0 0 4px; }
.home-recents-head p { font-size: 12.5px; }
.home-recents-head input.input { width: 240px !important; height: 40px; }
@media (max-width: 860px) { .home-recents-head { flex-wrap: wrap !important; } .home-recents-head > div:last-child { width: 100%; } .home-recents-head input.input { flex: 1; width: auto !important; } }

/* ===== Charlas: botones de día + agregar/quitar en la misma barra ===== */
.days-bar { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; }
.days-bar .day-pill { flex: 1 1 140px; width: auto !important; max-width: 340px; min-height: 42px; }
.days-bar > .btn { flex: 0 0 auto; width: auto !important; min-height: 42px; height: 42px; padding: 0 14px; }
.days-bar .day-sep { align-self: center; height: 26px; }
@media (max-width: 860px) {
  .days-bar { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .days-bar .day-pill { max-width: none; }
  .days-bar .day-sep { display: none; }
}

/* ===== Sponsors: columna izquierda (título + separación) ===== */
#editorCol .sp-top > .sp-left { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#editorCol .sp-top > .sp-left > .ecard { margin: 0 !important; height: auto; }
#editorCol .sp-top > .sp-left > .sp-sep-card { flex: 1 1 auto; }
.sp-color-line { display: flex; gap: 12px; align-items: center; }
.sp-color-line .color-row { flex: 1 1 auto; min-width: 0; }
.sp-sep-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; white-space: nowrap; }
.sp-sep-btn svg { width: 15px; height: 15px; }
.sp-phrase-inp { text-transform: none !important; }
#editorCol .sp-top > .sp-logos-card { grid-column: 2; grid-row: 1; }
#editorCol .sp-logos-card .sp-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, auto) !important; align-content: space-evenly; align-items: start; }
#editorCol .sp-logos-card .sp-tile { display: block; }
#editorCol .sp-logos-card .sp-tile > .sp-dz { display: block !important; flex: none; min-height: 0; }
#editorCol .sp-logos-card .sp-tile .sp-thumb { height: 92px !important; min-height: 0; flex: none; }
@media (max-width: 1100px) {
  #editorCol .sp-top > .sp-left { grid-column: 1; grid-row: 1; }
  #editorCol .sp-top > .sp-logos-card { grid-column: 1; grid-row: 2; }
}

/* ===== Categorías: selector de tipo, insignia y sin tarjetas de logos ===== */
.sgrp-picker { margin: 0 0 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--brand); background: rgba(2,132,199,.07); }
.sgrp-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 13px; }
.sgrp-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.sgrp-kind { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--kc) 45%, transparent); background: color-mix(in srgb, var(--kc) 14%, transparent); color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; min-width: 0; }
.sgrp-kind svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--kc); }
.sgrp-kind span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgrp-kind:hover { background: color-mix(in srgb, var(--kc) 28%, transparent); }
.sgrp-kind-badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--kc) 20%, transparent); border: 1px solid color-mix(in srgb, var(--kc) 55%, transparent); font-size: 11.5px; font-weight: 800; white-space: nowrap; max-width: 220px; }
.sgrp-kind-badge svg { width: 15px; height: 15px; color: var(--kc); flex: 0 0 auto; }
.sgrp-kind-badge span { overflow: hidden; text-overflow: ellipsis; }
.sgrp-card[style*="--kc"] { border-left: 4px solid var(--kc); }
.sgrp-showtitle { height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; font-size: 12px; }
.sgrp-count { font-size: 12px; color: var(--text-muted); padding: 4px 2px 2px; }
.sgrp-head input[readonly] { opacity: .85; cursor: default; }
.sp-title-card .visual-slider-row { gap: 8px; padding-left: 12px; padding-right: 12px; }
.sp-title-card .visual-slider-row .slider-lbl { font-size: 11.5px; white-space: nowrap; }
.sp-title-card .visual-slider-row input[type=range] { min-width: 40px; flex: 1 1 auto; }
.sp-title-card .visual-slider-row .slider-val { min-width: 26px; text-align: right; flex: 0 0 auto; }

/* Cabecera de categoría: todos los controles del mismo alto y centrados */
.sgrp-head { align-items: center !important; }
.sgrp-head > div { align-items: center !important; }
.sgrp-head .input, .sgrp-head .sgrp-showtitle, .sgrp-head .btn, .sgrp-head .icon-btn, .sgrp-head .sgrp-kind-badge { height: 40px !important; min-height: 40px !important; box-sizing: border-box; margin: 0; }
.sgrp-head .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; white-space: nowrap; }
.sgrp-head .icon-btn { width: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* ===== Servidor desactivado: se oculta todo lo relacionado ===== */
body.srv-off #userAuthBtn,
body.srv-off #exportJsonBtn,
body.srv-off #publishNowBtn,
body.srv-off [data-exp-tab="publish"],
body.srv-off #expPanePublish,
body.srv-off .m-sheet-item[data-m-click="userAuthBtn"],
body.srv-off .m-sheet-item[data-m-click="exportJsonBtn"],
body.srv-off #authModal,
body.srv-off #userProfileModal { display: none !important; }

/* ---- Respaldo de programas ---- */
.bk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-btns .btn { justify-content: center; }
.home-bk, .hm-bk { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(251,191,36,.45);
  background: rgba(251,191,36,.12); color: #fbbf24; font: 700 12px 'Inter', sans-serif; cursor: pointer; }
.home-bk svg, .hm-bk svg { width: 14px; height: 14px; flex: 0 0 auto; }
.home-bk:hover { background: rgba(251,191,36,.2); }
.hm-bk { margin-top: 5px; padding: 4px 10px; font-size: 11.5px; }

/* =====================================================================
   Inicio de escritorio — mismo esquema que el Inicio de Placas
   ===================================================================== */
.home-wrap.hp { display: flex; flex-direction: column; align-items: center; padding: 34px 28px 18px; }
.hp-card { position: relative; z-index: 1; width: 100%; max-width: 1120px; box-sizing: border-box; padding: 26px 36px 22px;
  background: rgba(17,25,44,.9); border: 1px solid rgba(148,163,184,.2); border-radius: 18px; box-shadow: 0 25px 60px rgba(0,0,0,.55); }
.hp-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hp-badge { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(2,132,199,.16); border: 1px solid rgba(56,189,248,.35); color: #e2e8f0; }
.hp-badge svg { width: 24px; height: 24px; }
.hp-head h1 { margin: 22px 0 0; font: 800 20px/1.25 'Inter', sans-serif; color: #f8fafc; letter-spacing: -.01em; }
.hp-head p { margin: 10px 0 0; font: 500 13px/1.45 'Inter', sans-serif; color: #94a3b8; }
.hp-head .home-bk { margin-top: 12px; }

.hp-body { display: grid; grid-template-columns: minmax(250px, 300px) 1fr; gap: 0; margin-top: 30px; }
.hp-actions { display: flex; flex-direction: column; gap: 12px; padding-right: 28px; border-right: 1px solid rgba(148,163,184,.16); }
.hp-act { display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 0 20px; border-radius: 10px; text-align: left; cursor: pointer;
  background: rgba(8,13,26,.55); border: 1px solid rgba(148,163,184,.2); color: #f8fafc; transition: border-color .15s, background .15s; }
.hp-act:hover { border-color: rgba(56,189,248,.55); background: rgba(2,132,199,.08); }
.hp-act:focus-visible, .hp-proj:focus-visible, .hp-continue button:focus-visible, .hp-folder:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.hp-act > svg { width: 24px; height: 24px; flex: 0 0 auto; color: #cbd5e1; }
.hp-act span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hp-act b { font: 800 14px 'Inter', sans-serif; }
.hp-act small { font: 500 12px/1.35 'Inter', sans-serif; color: #94a3b8; }

.hp-recent { padding-left: 28px; min-width: 0; }
.hp-recent-head { display: flex; align-items: center; justify-content: space-between; height: 34px; margin-bottom: 12px; }
.hp-recent-head > span { display: inline-flex; align-items: center; gap: 7px; font: 700 12px 'Inter', sans-serif; color: #cbd5e1; }
.hp-recent-head > span svg { width: 14px; height: 14px; color: #94a3b8; }
.hp-folder { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(8,13,26,.55); border: 1px solid rgba(148,163,184,.25); color: #cbd5e1; }
.hp-folder:hover { border-color: rgba(56,189,248,.55); color: #fff; }
.hp-folder svg { width: 15px; height: 15px; }
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.hp-proj { display: flex; flex-direction: column; padding: 8px 8px 9px; border-radius: 8px; cursor: pointer; min-width: 0;
  background: rgba(8,13,26,.6); border: 1px solid rgba(148,163,184,.2); transition: border-color .15s; }
.hp-proj:hover { border-color: rgba(56,189,248,.55); }
.hp-thumb { position: relative; aspect-ratio: 16 / 9.4; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hp-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); pointer-events: none; }
.hp-thumb-logo { position: relative; z-index: 1; max-width: 72%; max-height: 54%; display: flex; align-items: center; justify-content: center; text-align: center; }
.hp-thumb-logo img { max-width: 100%; max-height: 60px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.hp-thumb-logo b { font: 800 13px/1.2 'Inter', sans-serif; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hp-del { position: absolute; z-index: 2; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 6px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; opacity: .75; }
.hp-del:hover { opacity: 1; background: #e11d48; }
.hp-del svg { width: 12px; height: 12px; }
.hp-proj-t { margin-top: 9px; font: 700 12.5px/1.3 'Inter', sans-serif; color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-proj-m { margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; font: 500 11px 'Inter', sans-serif; color: #94a3b8; }
.hp-proj-m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-free { display: flex; align-items: center; justify-content: center; min-height: 150px; border-radius: 8px; border: 1px dashed rgba(148,163,184,.28);
  font: 700 12px 'Inter', sans-serif; color: #64748b; }
.hp-continue { display: flex; justify-content: center; margin-top: 22px; }
.hp-continue button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 700 13px 'Inter', sans-serif; color: #cbd5e1; }
.hp-continue button:hover { color: #fff; }
.hp-continue svg { width: 15px; height: 15px; }
.hp-org { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px 0 0; text-align: center; }
.hp-org-k { font: 700 11px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #cbd5e1; }
.hp-org img { max-height: 30px; max-width: 220px; object-fit: contain; }
.hp-org-c { font: 500 11px 'Inter', sans-serif; color: #94a3b8; }
@media (max-width: 1180px) {
  .hp-card { padding: 24px 24px 20px; }
  .hp-body { grid-template-columns: 250px 1fr; }
  .hp-actions { padding-right: 20px; } .hp-recent { padding-left: 20px; }
}

/* ---- Exportar: datos del QR solo para ver ---- */
.exp-qr-url { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-width: 0; }
.exp-qr-url-k { flex: 0 0 auto; font: 700 11px 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }
.exp-qr-url code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 9px; border-radius: 6px;
  background: rgba(8,13,26,.6); border: 1px solid rgba(148,163,184,.22); font: 600 12px 'Inter', sans-serif; color: #38bdf8; user-select: all; }
.exp-qr-url code.is-default { color: #94a3b8; }
.exp-qr-edit { align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: 700 12px 'Inter', sans-serif; color: #38bdf8; }
.exp-qr-edit:hover { text-decoration: underline; }
.hp-recent { container-type: inline-size; }
@container (max-width: 520px) {
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-grid > :nth-child(n+5) { display: none; }
}

/* =====================================================================
   Escritorio: Fila y Alineación en una sola línea
   ===================================================================== */
.hl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hl-pair-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 4px 4px 4px 10px;
  border-radius: 10px; border: 1px solid rgba(148,163,184,.18); background: rgba(8,13,26,.35); }
.hl-pair-lbl { font: 700 11.5px 'Inter', sans-serif; color: #94a3b8; white-space: nowrap; }
.hl-pair-item .align-seg { flex: 0 0 auto; }

/* =====================================================================
   Editor angosto (modo escritorio): todo en una columna, sin cortes
   ===================================================================== */
#editorCol.ed-narrow .fgrid > .col-4,
#editorCol.ed-narrow .fgrid > .col-6:has(> .visual-slider-row),
#editorCol.ed-narrow .fgrid > .col-6:has(> .visual-slider-row) { grid-column: span 12 !important; }
#editorCol.ed-narrow .fgrid > .col-3, #editorCol.ed-narrow .fgrid > .col-2 { grid-column: span 6 !important; }
#editorCol.ed-narrow .visual-slider-row { min-width: 0; }
#editorCol.ed-narrow .visual-slider-row .slider-lbl { white-space: nowrap; }
/* Datos del evento y Sede */
#editorCol.ed-narrow .hdr-line { flex-wrap: wrap !important; }
#editorCol.ed-narrow .hdr-line > .hdr-f-name, #editorCol.ed-narrow .hdr-line > .hdr-f-date, #editorCol.ed-narrow .hdr-line > .hdr-f-title { flex: 1 1 100% !important; max-width: none !important; }
#editorCol.ed-narrow .hdr-line2 { flex-wrap: wrap !important; }
#editorCol.ed-narrow .hdr-line2 .hdr-f-size { flex: 1 1 100% !important; }
#editorCol.ed-narrow .hdr-wm-btn { width: 100%; justify-content: center; }
#editorCol.ed-narrow .venue-addr-row { grid-template-columns: 1fr 1fr !important; }
#editorCol.ed-narrow .venue-align-cell { grid-column: span 2; }
#editorCol.ed-narrow .venue-align-cell > label { display: none; }
/* Logo del evento */
#editorCol.ed-narrow .evl-grid { grid-template-columns: 1fr; }
#editorCol.ed-narrow .evl-grid .evl-dz .dz-thumb { min-height: 90px; }
#editorCol.ed-narrow .evl-line { flex-wrap: wrap; }
#editorCol.ed-narrow .evl-line > * { flex: 1 1 100%; }
#editorCol.ed-narrow .evl-line .align-3pos-track, #editorCol.ed-narrow .evl-line .align-3pos-track .align-3pos-bar { width: 100% !important; max-width: none !important; display: flex; }
#editorCol.ed-narrow .evl-line .align-3pos-dot { flex: 1; }
/* Colores y botones flotantes */
#editorCol.ed-narrow .fb-grid { grid-template-columns: 1fr; }
#editorCol.ed-narrow .fb-line { flex-wrap: wrap; }
#editorCol.ed-narrow .fb-f-txt { flex: 1 1 100%; }
/* Botones de día */
#editorCol.ed-narrow .days-bar { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#editorCol.ed-narrow .days-bar .day-pill { max-width: none; }
#editorCol.ed-narrow .days-bar .day-sep { display: none; }
/* Sponsors: un panel debajo del otro */
#editorCol.ed-narrow .sp-top { grid-template-columns: 1fr !important; }
#editorCol.ed-narrow .sp-top > .ecard { height: auto !important; }
#editorCol.ed-narrow .sp-logos-card .sp-logo-grid { grid-template-rows: none !important; }
#editorCol.ed-narrow .sp-logos-card .sp-tile > .sp-dz { min-height: 84px; }
#editorCol.ed-narrow .sgrp-head { flex-wrap: wrap !important; gap: 8px !important; }
#editorCol.ed-narrow .sgrp-head > div:first-child { flex: 1 1 100% !important; min-width: 0 !important; }
#editorCol.ed-narrow .sgrp-head > div:last-child { flex: 1 1 100%; justify-content: flex-end; }
#editorCol.ed-narrow .sgrp-head > div:last-child .btn { flex: 1; }
/* Escritorio: tarjetas de logos */
#editorCol.ed-narrow .hlogos-grid { grid-template-columns: 1fr !important; }
#editorCol.ed-narrow .sp-top > .sp-left { grid-column: 1 !important; grid-row: 1 !important; }
#editorCol.ed-narrow .sp-top > .sp-logos-card { grid-column: 1 !important; grid-row: 2 !important; }
#editorCol.ed-narrow .sp-top > .sp-opt-panel { grid-column: 1 !important; grid-row: 3 !important; height: auto !important; min-height: 0 !important; contain: none !important; overflow: visible; }

/* ---- Sponsors: lugar de cada logo y orden A→Z ---- */
.sp-tile { position: relative; }
.sp-ord { position: absolute; z-index: 3; top: 12px; left: 12px; min-width: 24px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(2,132,199,.92); color: #fff; font: 800 11px 'Inter', sans-serif; pointer-events: none; }
.sp-logos-card .ecard-title { display: flex; align-items: center; gap: 10px; }
.sp-logos-card .ecard-title > span:first-of-type { flex: 1; min-width: 0; }
.sp-az { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sp-az svg { width: 15px; height: 15px; }
.sp-pos-row { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; align-items: center; }
.sp-pos-row .icon-btn { width: 40px; height: 40px; font-size: 20px; line-height: 1; }
.sp-pos-row .icon-btn[disabled] { opacity: .35; }
.sp-pos-row .select { height: 40px; }

/* ---- Diseño de las charlas ---- */
.cl-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cl-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(8,13,26,.45); border: 1px solid rgba(148,163,184,.22); color: #f8fafc; }
.cl-opt:hover { border-color: rgba(56,189,248,.5); }
.cl-opt.active { border-color: var(--brand, #0284c7); box-shadow: 0 0 0 1px var(--brand, #0284c7) inset; background: rgba(2,132,199,.1); }
.cl-opt b { font: 800 13px 'Inter', sans-serif; margin-top: 6px; }
.cl-opt small { font: 500 11.5px/1.35 'Inter', sans-serif; color: #94a3b8; }
.cl-mock { width: 100%; box-sizing: border-box; height: 74px; padding: 10px; border-radius: 8px; background: #f8fafc; display: flex; gap: 8px; }
.cl-mock i { display: block; border-radius: 3px; background: #cbd5e1; }
.cl-mock i.t { width: 26px; height: 8px; background: #0891b2; flex: 0 0 auto; }
.cl-mock i.h { height: 7px; background: #334155; }
.cl-mock i.h.s { width: 70%; }
.cl-mock i.p { height: 5px; width: 50%; background: #94a3b8; margin-top: 4px; }
.cl-mock.side { flex-direction: row; position: relative; }
.cl-mock.side .cl-r { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cl-mock.side .cl-ic { position: absolute; left: 10px; top: 26px; display: flex; flex-direction: column; gap: 5px; }
.cl-mock .cl-ic i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.cl-mock.stacked { flex-direction: column; gap: 5px; }
.cl-mock.stacked .cl-top { display: flex; align-items: center; justify-content: space-between; }
.cl-mock .cl-ic.row { display: flex; flex-direction: row; gap: 6px; }
.cl-mock i.full { width: 100%; }
.cl-mock i.full.s { width: 85%; }
.cl-mock i.p.full { width: 45%; }
/* El panel de opciones del logo crece con su contenido (lugar, sitio web, imagen y casillas visibles sin scroll interno) */
#editorCol .sp-top > .sp-opt-panel { height: auto !important; min-height: 100% !important; contain: none !important; overflow: visible !important; }
