@import url("/tema-isc/tema.css");
/* =============================================
   INGENIO SANCARLOS - CRONOGRAMA PARO SEMESTRAL
   Tema: Cana de Azucar / Ingenio Azucarero
   ============================================= */

:root {
  --bg-body: #f2f4f2;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-header: #145c2b;
  --bg-header-dark: #0f4520;
  --bg-nav: #f7f9f7;

  --border: #d5dbd6;
  --border-dark: #c3ccc5;

  --cane-green: #145c2b;
  --cane-green-light: #1e7b3c;
  --cane-green-pale: #eaf4ed;
  --cane-gold: #d9a300;
  --cane-gold-light: #fff0c2;
  --cane-brown: #4d5752;
  --cane-brown-light: #6a7570;
  --cane-cream: #f7f9f7;
  --cane-sugar: #fff8e2;

  --status-green: #1e7b3c;
  --status-yellow: #f9a825;
  --status-orange: #e65100;
  --status-red: #c00000;
  --status-blue: #1565c0;

  --text-dark: #1f2723;
  --text-primary: #1f2723;
  --text-secondary: #6a7570;
  --text-muted: #8a948f;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--isc-fuente);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== FONDO ===== */
.bg-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at top left, rgba(20,92,43, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(217,163,0, 0.04) 0%, transparent 50%);
}

.bg-particles { display: none; }

/* ===== HEADER ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--cane-green-light) 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.main-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cane-gold), var(--cane-gold-light), var(--cane-gold));
}

.header-left { display: flex; align-items: center; }

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-hex {
  width: 46px;
  height: 46px;
  background: var(--cane-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(217,163,0, 0.4);
}

.logo-icon {
  font-family: var(--isc-fuente);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.logo-text h1 {
  font-family: var(--isc-fuente);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.logo-text .subtitle {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  margin-top: 1px;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #66ff66;
  box-shadow: 0 0 6px rgba(102, 255, 102, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.status-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.clock {
  font-size: 13px;
  color: #fff;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

/* ===== NAVEGACION ===== */
.main-nav {
  position: relative;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 10px 28px;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--isc-fuente);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn svg {
  width: 18px;
  height: 18px;
}

.nav-btn:hover {
  color: var(--cane-green);
  background: var(--cane-green-pale);
}

.nav-btn.active {
  color: #fff;
  background: var(--cane-green);
  border-color: var(--cane-green);
  box-shadow: 0 2px 8px rgba(20,92,43, 0.25);
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
  position: relative;
  z-index: 10;
  padding: 24px 28px;
  max-width: 1600px;
  margin: 0 auto;
}

.view {
  display: none;
  animation: fadeIn 0.35s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--isc-fuente);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.title-accent {
  color: var(--cane-green);
  margin-right: 6px;
  font-weight: 800;
}

/* ===== BOTONES ===== */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--isc-fuente);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cane-green), var(--cane-green-light));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(20,92,43, 0.25);
}

.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20,92,43, 0.35);
}

.btn-neon svg {
  width: 16px;
  height: 16px;
}

/* Variante roja para acciones destructivas manteniendo el layout de btn-neon */
.btn-neon.btn-clear {
  background: linear-gradient(135deg, #b71c1c, #c00000);
  box-shadow: 0 2px 6px rgba(183, 28, 28, 0.25);
}
.btn-neon.btn-clear:hover {
  background: linear-gradient(135deg, #a01818, #b71c1c);
  box-shadow: 0 4px 14px rgba(183, 28, 28, 0.35);
}

.btn-cancel {
  padding: 10px 22px;
  font-family: var(--isc-fuente);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel:hover {
  background: #eae5da;
  color: var(--text-primary);
}

.btn-danger {
  padding: 10px 22px;
  font-family: var(--isc-fuente);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--status-red);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #a01e1e;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  border-color: var(--cane-green);
  color: var(--cane-green);
  background: var(--cane-green-pale);
}

.btn-icon.edit:hover { border-color: var(--status-blue); color: var(--status-blue); background: #e3f0fc; }
.btn-icon.delete:hover { border-color: var(--status-red); color: var(--status-red); background: #fce4e4; }

.btn-icon svg {
  width: 15px;
  height: 15px;
}

/* ===== TABLAS ===== */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--cane-sugar);
  border-bottom: 2px solid var(--border);
}

.data-table th {
  font-family: var(--isc-fuente);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cane-brown);
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 13px 16px;
  border-bottom: 1px solid #f0ebe0;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: var(--cane-cream);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges de estado */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.3px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-pendiente {
  color: #8a6b00;
  background: #fff3cd;
  border: 1px solid #ffe082;
}

.badge-en_progreso {
  color: #0d47a1;
  background: #e3f2fd;
  border: 1px solid #90caf9;
}

.badge-completada {
  color: #1b5e20;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.badge-cancelada {
  color: #b71c1c;
  background: #ffebee;
  border: 1px solid #ef9a9a;
}

/* Badges de puesto */
.badge-puesto {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10.5px;
  letter-spacing: 0.3px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-MECAFCA { color: #1a5276; background: #d4e6f1; }
.badge-SOLDAFCA { color: #7e4400; background: #fdebd0; }
.badge-LUBRIFCA { color: #1e6e30; background: #d5f5e3; }
.badge-CIVILFCA { color: #5b2a86; background: #ead3f0; }
.badge-SERVCONT { color: #00838f; background: #b2ebf2; }

/* Barra de avance en tabla */
.avance-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.avance-bar {
  flex: 1;
  height: 8px;
  background: #e3e9e5;
  border-radius: 4px;
  overflow: hidden;
}

.avance-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.avance-bar-fill.low { background: linear-gradient(90deg, #e57373, #ef9a9a); }
.avance-bar-fill.mid { background: linear-gradient(90deg, #ffb74d, #ffd54f); }
.avance-bar-fill.high { background: linear-gradient(90deg, #66bb6a, #81c784); }

.avance-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 32px;
  text-align: right;
}

/* Responsables tags */
.responsable-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--cane-green-pale);
  color: var(--cane-green);
  border: 1px solid #c5ddb5;
  border-radius: 4px;
  margin: 2px;
  white-space: nowrap;
}

/* Acciones */
.acciones-cell {
  display: flex;
  gap: 6px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  opacity: 0.3;
  stroke: var(--cane-green);
}

.empty-state p {
  font-size: 15px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* ===== DASHBOARD ===== */
.dashboard-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #c5ddb5;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30,123,60,0.08), rgba(217,163,0,0.08));
  color: var(--cane-green);
  font-family: var(--isc-fuente);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Hero card: avance general + KPIs */
.card-hero {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 30px;
  background:
    radial-gradient(1200px 300px at 10% 0%, rgba(30,123,60,0.10), transparent 60%),
    radial-gradient(900px 260px at 90% 100%, rgba(217,163,0,0.10), transparent 60%),
    var(--bg-card);
}

.card-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--cane-green), var(--cane-gold));
}

.hero-ring-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  justify-self: center;
}

.progress-ring-xl {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 4px 14px rgba(30,123,60,0.18));
}

.progress-ring-xl .progress-ring-bg {
  fill: none;
  stroke: #e3e9e5;
  stroke-width: 16;
}

.progress-ring-xl .progress-ring-fill {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 628.32;
  stroke-dashoffset: 628.32;
  transition: stroke-dashoffset 1.2s cubic-bezier(.22,.61,.36,1);
}

.progress-ring-caption {
  display: block;
  font-family: var(--isc-fuente);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.kpi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-white);
  transition: var(--transition);
}

.kpi-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg {
  width: 22px;
  height: 22px;
}

.kpi-total    .kpi-icon { background: #eaf4ed; color: var(--cane-green); }
.kpi-progress .kpi-icon { background: #e3f2fd; color: var(--status-blue); }
.kpi-completed .kpi-icon { background: #e8f5e9; color: var(--status-green); }
.kpi-pending  .kpi-icon { background: #fff8e1; color: #c48300; }

.kpi-value {
  font-family: var(--isc-fuente);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.kpi-total    .kpi-value { color: var(--cane-green); }
.kpi-progress .kpi-value { color: var(--status-blue); }
.kpi-completed .kpi-value { color: var(--status-green); }
.kpi-pending  .kpi-value { color: #c48300; }

.kpi-label {
  font-family: var(--isc-fuente);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Tarjetas por seccion */
.section-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  position: relative;
}

.section-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
}

.section-mecanicos::before             { background: linear-gradient(90deg, #1565c0, #42a5f5); }
.section-soldadura::before             { background: linear-gradient(90deg, #e65100, #ff9800); }
.section-lubricacion::before           { background: linear-gradient(90deg, #1e7b3c, #66bb6a); }
.section-obras_civiles::before         { background: linear-gradient(90deg, #6a1b9a, #ab47bc); }
.section-servicios_contratados::before { background: linear-gradient(90deg, #00838f, #26c6da); }

.section-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-card-icon svg {
  width: 18px;
  height: 18px;
}

.section-mecanicos    .section-card-icon { background: #e3f2fd; color: #1565c0; }
.section-soldadura    .section-card-icon { background: #fdebd0; color: #e65100; }
.section-lubricacion  .section-card-icon { background: #e8f5e9; color: #1e7b3c; }
.section-obras_civiles .section-card-icon { background: #ead3f0; color: #6a1b9a; }
.section-servicios_contratados .section-card-icon { background: #b2ebf2; color: #00838f; }

.section-card-title {
  font-family: var(--isc-fuente);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-primary);
}

.mini-ring-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  align-self: center;
  margin: 4px 0 4px 0;
}

.mini-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mini-ring-bg {
  fill: none;
  stroke: #e3e9e5;
  stroke-width: 10;
}

.mini-ring-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke: var(--cane-green);
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 1s cubic-bezier(.22,.61,.36,1), stroke 0.3s ease;
}

.mini-ring-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.mini-ring-value {
  font-family: var(--isc-fuente);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.mini-ring-pct {
  font-family: var(--isc-fuente);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.section-card-stats {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-top: auto;
}

.stat-pill {
  flex: 1;
  text-align: center;
  font-family: var(--isc-fuente);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 6px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.stat-pill span {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 1px;
}

.stat-done { color: #1b5e20; background: #e8f5e9; border-color: #a5d6a7; }
.stat-wip  { color: #0d47a1; background: #e3f2fd; border-color: #90caf9; }
.stat-pend { color: #8a5500; background: #fff8e1; border-color: #ffd54f; }

/* Card de estados */
.card-estados {
  grid-column: span 2;
}

.estado-chart {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: #e3e9e5;
  border: 1px solid var(--border);
  margin: 10px 0 16px 0;
}

.estado-segment {
  height: 100%;
  transition: width 0.9s cubic-bezier(.22,.61,.36,1);
}

.seg-completada { background: linear-gradient(90deg, #1e7b3c, #66bb6a); }
.seg-progreso   { background: linear-gradient(90deg, #1565c0, #42a5f5); }
.seg-pendiente  { background: linear-gradient(90deg, #e65100, #ffb74d); }

.estado-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--isc-fuente);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
}

.legend-item b {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-completada { background: #1e7b3c; }
.dot-progreso   { background: #1565c0; }
.dot-pendiente  { background: #e65100; }

/* Cards de resumen */
.card-total, .card-progress, .card-completed, .card-pending {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-total .card-icon { background: #eaf4ed; color: var(--cane-green); }
.card-progress .card-icon { background: #e3f2fd; color: var(--status-blue); }
.card-completed .card-icon { background: #e8f5e9; color: var(--status-green); }
.card-pending .card-icon { background: #fff8e1; color: var(--status-yellow); }

.card-value {
  display: block;
  font-family: var(--isc-fuente);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.card-total .card-value { color: var(--cane-green); }
.card-progress .card-value { color: var(--status-blue); }
.card-completed .card-value { color: var(--status-green); }
.card-pending .card-value { color: var(--status-yellow); }

.card-label {
  display: block;
  font-family: var(--isc-fuente);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Card avance general */
.card-avance-general {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-family: var(--isc-fuente);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cane-brown);
  margin-bottom: 16px;
  text-align: center;
}

.progress-ring-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: #e3e9e5;
  stroke-width: 14;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--cane-green);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 534.07;
  stroke-dashoffset: 534.07;
  transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-ring-value {
  font-family: var(--isc-fuente);
  font-size: 48px;
  font-weight: 800;
  color: var(--cane-green);
  line-height: 1;
}

.progress-ring-label {
  font-family: var(--isc-fuente);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Card secciones */
.card-secciones {
  grid-column: span 2;
}

.seccion-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.seccion-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.seccion-bar-name {
  font-family: var(--isc-fuente);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.seccion-bar-value {
  font-size: 13px;
  font-weight: 800;
}

.seccion-bar-track {
  height: 12px;
  background: #e3e9e5;
  border-radius: 4px;
  overflow: hidden;
}

.seccion-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  position: relative;
}

.seccion-bar-fill.mecanicos {
  background: linear-gradient(90deg, #1565c0, #42a5f5);
}

.seccion-bar-fill.soldadura {
  background: linear-gradient(90deg, #e65100, #ff9800);
}

.seccion-bar-fill.lubricacion {
  background: linear-gradient(90deg, #1e7b3c, #66bb6a);
}

.seccion-bar-fill.obras_civiles {
  background: linear-gradient(90deg, #6a1b9a, #ab47bc);
}

.seccion-bar-fill.servicios_contratados {
  background: linear-gradient(90deg, #00838f, #26c6da);
}

/* Card recientes */
.card-recientes {
  grid-column: span 4;
}

/* ===== MODALES ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(44, 36, 22, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--cane-green), var(--cane-gold), var(--cane-green-light));
  border-radius: 4px 4px 0 0;
}

.modal-sm { max-width: 420px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--isc-fuente);
  font-size: 15px;
  font-weight: 700;
  color: var(--cane-green);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-body);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--status-red);
  color: var(--status-red);
  background: #ffebee;
}

.modal-body { padding: 24px; }

/* ===== FORMULARIOS ===== */
form {
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--isc-fuente);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--cane-brown);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--isc-fuente);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cane-green);
  box-shadow: 0 0 0 3px rgba(20,92,43, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a6e5d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group select option {
  background: var(--bg-white);
  color: var(--text-primary);
}

/* ===== MULTISELECT DROPDOWN PROFESIONAL ===== */
.multiselect {
  position: relative;
}

.multiselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  min-height: 42px;
}

.multiselect-trigger:hover {
  border-color: var(--border-dark);
}

.multiselect.open .multiselect-trigger {
  border-color: var(--cane-green);
  box-shadow: 0 0 0 3px rgba(20,92,43, 0.1);
  border-radius: 4px 4px 0 0;
}

.multiselect-placeholder {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.multiselect-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--cane-green-pale);
  color: var(--cane-green);
  border: 1px solid #c5ddb5;
  border-radius: 4px;
}

.multiselect-tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--cane-brown-light);
  font-weight: 700;
}

.multiselect-tag-remove:hover {
  color: var(--status-red);
}

.multiselect-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.multiselect.open .multiselect-arrow {
  transform: rotate(180deg);
}

.multiselect-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-white);
  border: 1.5px solid var(--cane-green);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.multiselect:not(.open) .multiselect-dropdown {
  display: none;
}

.multiselect.open .multiselect-dropdown {
  display: flex;
}

.multiselect-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.multiselect-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.multiselect-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--isc-fuente);
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
}

.multiselect-search input::placeholder {
  color: var(--text-muted);
}

.multiselect-options {
  overflow-y: auto;
  max-height: 200px;
  padding: 4px;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.multiselect-option:hover {
  background: var(--cane-green-pale);
}

.multiselect-option.selected {
  background: var(--cane-green-pale);
}

.multiselect-option .ms-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.multiselect-option.selected .ms-check {
  background: var(--cane-green);
  border-color: var(--cane-green);
}

.multiselect-option .ms-check svg {
  width: 12px;
  height: 12px;
  color: #fff;
  display: none;
}

.multiselect-option.selected .ms-check svg {
  display: block;
}

.multiselect-option .ms-name {
  flex: 1;
}

.multiselect-option .ms-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.multiselect-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== AVANCE EDITABLE EN TABLA ===== */
.avance-editable {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.avance-editable .avance-bar {
  flex: 1;
  height: 8px;
  background: #e3e9e5;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.avance-editable .avance-bar:hover {
  height: 12px;
}

.avance-editable .avance-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 32px;
  text-align: right;
}

.avance-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.avance-input {
  width: 52px;
  padding: 4px 6px;
  font-family: var(--isc-fuente);
  font-size: 13px;
  font-weight: 700;
  color: var(--cane-green);
  text-align: center;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.avance-input:focus {
  border-color: var(--cane-green);
  box-shadow: 0 0 0 2px rgba(20,92,43, 0.1);
}

.avance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  font-weight: 700;
}

.avance-btn-save {
  background: var(--cane-green);
  color: #fff;
}

.avance-btn-save:hover {
  background: var(--cane-green-light);
  box-shadow: 0 2px 6px rgba(20,92,43, 0.3);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cane-brown-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-hero { grid-column: span 2; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .card-hero .hero-kpis { width: 100%; }
  .card-avance-general { grid-column: span 1; grid-row: span 1; }
  .card-secciones { grid-column: span 2; }
  .card-estados { grid-column: span 2; }
  .card-recientes { grid-column: span 2; }
}

@media (max-width: 768px) {
  .main-header { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .main-nav { flex-wrap: wrap; padding: 8px 16px; }
  .nav-btn { padding: 8px 12px; font-size: 11px; }
  .nav-btn span { display: none; }
  .main-content { padding: 16px; }
  .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card-hero { grid-column: span 1; grid-template-columns: 1fr; }
  .card-hero .hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .card-avance-general, .card-secciones, .card-estados, .card-recientes { grid-column: span 1; }
  .section-card { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .modal { width: 95%; }
}

/* ===== NOTIFICACIONES ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
  min-width: 260px;
  box-shadow: var(--shadow);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.toast-success {
  color: #1b5e20;
  background: #e8f5e9;
  border-color: #a5d6a7;
}

.toast-error {
  color: #b71c1c;
  background: #ffebee;
  border-color: #ef9a9a;
}

.toast-info {
  color: #0d47a1;
  background: #e3f2fd;
  border-color: #90caf9;
}

/* ===== EXCEL BUTTONS ===== */
.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-excel-down {
  background: linear-gradient(135deg, #1565C0, #1976D2);
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
  text-decoration: none;
}
.btn-excel-down:hover {
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.45);
}

.btn-excel-up {
  background: linear-gradient(135deg, #6A1B9A, #7B1FA2);
  box-shadow: 0 2px 6px rgba(106, 27, 154, 0.3);
  cursor: pointer;
}
.btn-excel-up:hover {
  box-shadow: 0 4px 14px rgba(106, 27, 154, 0.45);
}

.toast-info {
  background: #1565C0;
  color: #fff;
}

.toast-warning {
  background: #E65100;
  color: #fff;
}

@media (max-width: 768px) {
  .section-actions { width: 100%; justify-content: flex-start; }
}
/* === tema-isc === */
/* Estilo común ISC (tablero Inventario y Costos) */
:root{
  --bg-body:var(--isc-fondo); --bg-white:#ffffff; --bg-card:#ffffff; --bg-header:var(--isc-verde-osc); --bg-header-dark:#0f4520; --bg-nav:var(--isc-panel-2);
  --border:var(--isc-borde); --border-dark:#c3ccc5;
  --cane-green:var(--isc-verde-osc); --cane-green-light:var(--isc-verde); --cane-green-pale:var(--isc-verde-claro);
  --cane-gold:var(--isc-dorado-osc); --cane-gold-light:#fff0c2; --cane-brown:#4d5752; --cane-brown-light:var(--isc-suave);
  --cane-cream:var(--isc-panel-2); --cane-sugar:var(--isc-dorado-claro);
  --status-green:var(--isc-verde); --status-red:var(--isc-rojo);
  --text-dark:var(--isc-texto); --text-primary:var(--isc-texto); --text-secondary:var(--isc-suave); --text-muted:#8a948f;
  --font-display:var(--isc-fuente); --font-body:var(--isc-fuente);
  --radius:var(--isc-radio); --radius-lg:var(--isc-radio);
  --shadow-sm:var(--isc-sombra); --shadow:var(--isc-sombra); --shadow-lg:0 8px 24px rgba(20,40,28,.12);
}
/* === fin tema-isc === */
