/* ════════════════════════════════════════════════════════
   Módulo Plataformas — cuadro sinóptico jerárquico, tema claro,
   scopeado bajo .plataformas-root para no chocar con el shell.
   ════════════════════════════════════════════════════════ */
.plataformas-root * { box-sizing: border-box; margin: 0; padding: 0; }
.plataformas-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #FAFAF7; color: #1a1a1a; font-size: 14px; line-height: 1.45;
  border-radius: 12px; -webkit-font-smoothing: antialiased;
}
.plataformas-root .plat-wrap { max-width: 900px; margin: 0 auto; padding: 24px 20px 80px; }

/* TOPBAR */
.plataformas-root .plat-topbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #E8E6DF;
  flex-wrap: wrap; gap: 12px;
}
.plataformas-root .plat-title h1 {
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
}
.plataformas-root .plat-subtitle { font-size: 12px; color: #8a8676; margin-top: 4px; letter-spacing: 0.02em; }
.plataformas-root .plat-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plataformas-root .plat-btn {
  padding: 7px 14px; font-size: 13px; border: 1px solid #D6D3C7; border-radius: 8px;
  background: white; cursor: pointer; color: #1a1a1a; font-family: inherit;
}
.plataformas-root .plat-btn:hover { background: #F2F0E9; border-color: #B8B3A0; }

/* PLATFORM CARD */
.plataformas-root .plat-card {
  background: white; border: 1px solid #E8E6DF; border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.plataformas-root .plat-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  background: #F8F6EE; border-bottom: 1px solid #EFEDE5;
}
.plataformas-root .plat-chevron {
  background: transparent; border: none; cursor: pointer; font-size: 14px;
  color: #6a6760; width: 20px; flex-shrink: 0;
}
.plataformas-root .plat-nombre {
  flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 6px;
  padding: 5px 8px; font-size: 15px; font-weight: 600; font-family: inherit;
  background: transparent; color: #1a1a1a;
}
.plataformas-root .plat-nombre:focus { outline: none; border-color: #D6D3C7; background: white; }
.plataformas-root .plat-count { font-size: 11px; color: #8a8676; white-space: nowrap; flex-shrink: 0; }
.plataformas-root .plat-del {
  background: transparent; border: none; cursor: pointer; color: #b8b3a0;
  font-size: 14px; padding: 4px 6px; flex-shrink: 0;
}
.plataformas-root .plat-del:hover { color: #C7553B; }

/* BODY / PROJECT ROWS */
.plataformas-root .plat-body { padding: 10px 14px 12px; }
.plataformas-root .plat-empty { font-size: 12px; color: #b8b3a0; padding: 6px 2px 10px; }
.plataformas-root .proy-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.plataformas-root .proy-row input {
  border: 1px solid #E0DDD0; border-radius: 8px; padding: 7px 9px;
  font-size: 13px; background: white; font-family: inherit; color: #1a1a1a;
}
.plataformas-root .proy-row input:focus { outline: none; border-color: #1a1a1a; }
.plataformas-root .proy-nombre { flex: 2; min-width: 0; }
.plataformas-root .proy-estado { flex: 1; min-width: 0; }
.plataformas-root .proy-nota   { flex: 2; min-width: 0; color: #6a6760; }
.plataformas-root .proy-del {
  background: transparent; border: none; cursor: pointer; color: #b8b3a0;
  font-size: 13px; padding: 4px 6px; flex-shrink: 0;
}
.plataformas-root .proy-del:hover { color: #C7553B; }

.plataformas-root .plat-add-proy {
  margin-top: 4px; background: #2e7d5b12; border: 1px solid #2e7d5b33; color: #2e7d5b;
  border-radius: 6px; padding: 6px 12px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.plataformas-root .plat-add-proy:hover { background: #2e7d5b1f; }

.plataformas-root .plat-add {
  width: 100%; margin-top: 6px; background: white; border: 1px dashed #C6C2B2;
  color: #6a6760; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
}
.plataformas-root .plat-add:hover { background: #F2F0E9; color: #1a1a1a; }

/* MOBILE */
@media (max-width: 640px) {
  .plataformas-root .plat-wrap { padding: 16px 12px 80px; }
  .plataformas-root .plat-title h1 { font-size: 22px; }
  .plataformas-root .proy-row { flex-wrap: wrap; position: relative; padding-right: 24px; }
  .plataformas-root .proy-nombre, .plataformas-root .proy-estado, .plataformas-root .proy-nota {
    flex: 1 1 100%;
  }
  .plataformas-root .proy-del { position: absolute; top: 2px; right: 0; }
}
