/* =========================================================
   SICOAD · VERSIÓN DEMOSTRATIVA
   Todos los estilos de la demostración (colores del sistema real)
   ========================================================= */
:root {
  --color-primario: #1a2a40;
  --color-secundario: #b38e5d;
  --gris-encabezado: #d5d8dc;
  --gris-menu: #566573;
  --fondo: #f0f2f5;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--fondo);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

main {
  flex: 1 0 auto;
}

.site-width {
  max-width: 1400px;
  margin: auto;
}

/* ---------- Franja de demostración ---------- */
.franja-demo {
  background: var(--color-secundario);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 12px;
}

.franja-demo a {
  color: #fff;
  font-weight: 700;
  margin-left: 12px;
  text-decoration: underline;
}

/* ---------- Encabezado y pie ---------- */
.encabezado-siseop {
  z-index: 1050;
}

.nav-superior {
  background-color: var(--gris-encabezado);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-superior strong {
  color: #2c3e50;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.municipio-demo {
  color: #566573;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-inferior {
  background-color: var(--gris-menu);
}

.pie-siseop {
  background-color: var(--gris-menu);
  border-top: 1px solid var(--gris-encabezado);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.modal-demo {
  background: var(--color-primario);
  color: #fff;
}

/* ---------- Contenedores ---------- */
.contenedor-principal {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin: 25px 0;
}

.panel-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 25px;
}

.panel-container h3,
.panel-container h2 {
  font-weight: 800;
  letter-spacing: -1px;
}

.panel-container small {
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 600;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gris-menu);
  letter-spacing: 1px;
  border-left: 4px solid #3498db;
  padding-left: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.seccion-titulo {
  background-color: #f8f9fa;
  border-left: 4px solid var(--color-secundario);
  padding: 10px 15px;
  margin-bottom: 20px;
  color: var(--color-primario);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.titulo-pagina {
  color: var(--color-primario);
  font-weight: 700;
}

/* ---------- Tablero ---------- */
.grafica {
  position: relative;
  height: 250px;
}

.bg-resumen-gray {
  background: linear-gradient(135deg, #606c88 0%, #3f4c6b 100%);
  color: #fff;
}

.bg-resumen-orange {
  background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
  color: #fff;
}

.bg-resumen-blue {
  background: linear-gradient(135deg, #3498db 0%, #1a2a40 100%);
  color: #fff;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.status-card {
  background: #fff;
  border: 1px solid #edf0f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.status-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #1a4968;
}

.status-icon-box {
  font-size: 2rem;
  margin-right: 15px;
}

.status-info-box h6 {
  font-weight: 700;
  color: #7f8c8d;
  margin: 0;
  font-size: 0.8rem;
}

.status-info-box span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2c3e50;
}

.accordion-item {
  margin-bottom: 10px;
}

.tabla-resumen th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #95a5a6;
}

/* ---------- Listado ---------- */
.grafica-chica {
  position: relative;
  height: 220px;
}

.card-filtros {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #edf0f2;
}

.tabla-siseop thead th {
  background-color: var(--color-primario);
  color: #fff;
  font-size: 0.85rem;
  vertical-align: middle;
}

.celda-objeto {
  max-width: 400px;
}

.texto-justificado {
  text-align: justify;
  line-height: 1.25;
}

.btn-action {
  padding: 5px 8px;
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.2s;
}

.btn-action:hover {
  transform: scale(1.2);
}

.avance-badge {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  border: 1px solid #a3cfbb;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 12px 25px;
}

.nav-tabs .nav-link.active {
  border-bottom: 3px solid var(--color-secundario);
  color: var(--color-primario);
  background: transparent;
}

.btn-primario {
  background-color: var(--color-primario);
  color: #fff;
}

.btn-primario:hover {
  background-color: #0f1a29;
  color: #fff;
}

/* ---------- Detalle de obra ---------- */
.dato-label {
  font-weight: 700;
  color: var(--color-primario);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 2px;
}

.dato-valor {
  color: #555;
  font-size: 0.95rem;
  border-bottom: 1px dotted #ccc;
  display: block;
  margin-bottom: 15px;
  padding-bottom: 2px;
}

.card-grafica {
  border: 1px solid #edf0f2;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  height: 100%;
}

.foto-demo {
  height: 140px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: linear-gradient(135deg, #dfe4ea 0%, #b8c2cc 100%);
  color: #566573;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.foto-demo i {
  font-size: 2rem;
}

/* ---------- Formularios y tablas de captura ---------- */
.form-label-siseop {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.titulo-form {
  color: var(--color-primario);
  font-weight: bold;
}

.bg-calculado {
  background-color: #f8f9fa;
  font-weight: bold;
  color: var(--color-primario);
}

.switch-grande {
  width: 50px;
  height: 25px;
  cursor: pointer;
}

.input-tabla {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.85rem;
}

.tabla-captura {
  font-size: 0.85rem;
}

.tabla-captura th {
  vertical-align: middle;
  text-align: center;
  font-size: 0.75rem;
}

.tabla-captura td {
  vertical-align: middle;
  text-align: center;
}

.col-cantidad {
  width: 110px;
}

.total-programa {
  background: #eef1f4;
  font-size: 1.05rem;
}

/* ---------- Inicio de sesión ---------- */
.pagina-login {
  background: linear-gradient(135deg, #7b7d7d 0%, #4a4a4a 100%);
  justify-content: center;
  align-items: center;
}

.main-card {
  background-color: #ccd1d1;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  max-width: 900px;
}

.siglas {
  letter-spacing: 2px;
}

.logo-login {
  font-size: 7rem;
  color: var(--color-primario);
}

.aviso-login {
  background: #fff8e6;
  border-left: 4px solid var(--color-secundario);
  font-size: 0.9rem;
}

.btn-ojo {
  border-color: #dee2e6;
  background-color: #fff;
  color: #6c757d;
}

/* ---------- Reporte ---------- */
.reporte {
  border-top: 4px solid var(--color-secundario);
}

.header-reporte {
  background: var(--color-primario);
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.numero-reporte {
  color: var(--color-secundario);
}

.label-titulo {
  color: var(--color-secundario);
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.dato-obra {
  font-size: 1.05rem;
  color: var(--color-primario);
  font-weight: 500;
  margin-bottom: 15px;
}

.total-row td {
  background-color: #eee;
  color: var(--color-primario);
}

.firma {
  border-top: 1px solid #333;
  padding-top: 6px;
  margin-top: 70px;
  font-size: 0.85rem;
}

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* ---------- Celular ---------- */
@media (max-width: 768px) {
  .franja-demo a {
    display: block;
    margin: 4px 0 0;
  }

  .contenedor-principal {
    padding: 18px;
  }

  .main-card {
    padding: 1.5rem;
  }
}

/* =========================================================
   PROPIOS DE SICOAD
   ========================================================= */
.barra-integracion {
  height: 18px;
  min-width: 110px;
  font-size: 0.7rem;
  font-weight: 700;
}

.celda-barra {
  min-width: 130px;
}

.kpi-rojo {
  background: linear-gradient(135deg, #e74c3c 0%, #922b21 100%);
  color: #fff;
}

.kpi-verde {
  background: linear-gradient(135deg, #27ae60 0%, #145a32 100%);
  color: #fff;
}

.ficha-proc {
  background: #f8f9fa;
  border-left: 4px solid var(--color-secundario);
  border-radius: 8px;
  padding: 15px 20px;
}

.contador {
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-weight: 700;
}

.contador span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.fila-seccion td {
  background: var(--color-primario);
  color: #fff;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.tabla-cedula td {
  font-size: 0.82rem;
}

.col-estatus {
  width: 95px;
}

.col-obs {
  width: 170px;
}

.sel-estatus {
  font-weight: 700;
}

.estatus-Si {
  background-color: #d1e7dd;
  color: #0f5132;
}

.estatus-No {
  background-color: #f8d7da;
  color: #842029;
}

.estatus-NA {
  background-color: #e9ecef;
  color: #6c757d;
}

.btn-archivo {
  font-size: 1.15rem;
  line-height: 1;
}

/* Anchos de las barras de avance (0% a 100%) */
.ancho-0 { width: 0%; }
.ancho-1 { width: 1%; }
.ancho-2 { width: 2%; }
.ancho-3 { width: 3%; }
.ancho-4 { width: 4%; }
.ancho-5 { width: 5%; }
.ancho-6 { width: 6%; }
.ancho-7 { width: 7%; }
.ancho-8 { width: 8%; }
.ancho-9 { width: 9%; }
.ancho-10 { width: 10%; }
.ancho-11 { width: 11%; }
.ancho-12 { width: 12%; }
.ancho-13 { width: 13%; }
.ancho-14 { width: 14%; }
.ancho-15 { width: 15%; }
.ancho-16 { width: 16%; }
.ancho-17 { width: 17%; }
.ancho-18 { width: 18%; }
.ancho-19 { width: 19%; }
.ancho-20 { width: 20%; }
.ancho-21 { width: 21%; }
.ancho-22 { width: 22%; }
.ancho-23 { width: 23%; }
.ancho-24 { width: 24%; }
.ancho-25 { width: 25%; }
.ancho-26 { width: 26%; }
.ancho-27 { width: 27%; }
.ancho-28 { width: 28%; }
.ancho-29 { width: 29%; }
.ancho-30 { width: 30%; }
.ancho-31 { width: 31%; }
.ancho-32 { width: 32%; }
.ancho-33 { width: 33%; }
.ancho-34 { width: 34%; }
.ancho-35 { width: 35%; }
.ancho-36 { width: 36%; }
.ancho-37 { width: 37%; }
.ancho-38 { width: 38%; }
.ancho-39 { width: 39%; }
.ancho-40 { width: 40%; }
.ancho-41 { width: 41%; }
.ancho-42 { width: 42%; }
.ancho-43 { width: 43%; }
.ancho-44 { width: 44%; }
.ancho-45 { width: 45%; }
.ancho-46 { width: 46%; }
.ancho-47 { width: 47%; }
.ancho-48 { width: 48%; }
.ancho-49 { width: 49%; }
.ancho-50 { width: 50%; }
.ancho-51 { width: 51%; }
.ancho-52 { width: 52%; }
.ancho-53 { width: 53%; }
.ancho-54 { width: 54%; }
.ancho-55 { width: 55%; }
.ancho-56 { width: 56%; }
.ancho-57 { width: 57%; }
.ancho-58 { width: 58%; }
.ancho-59 { width: 59%; }
.ancho-60 { width: 60%; }
.ancho-61 { width: 61%; }
.ancho-62 { width: 62%; }
.ancho-63 { width: 63%; }
.ancho-64 { width: 64%; }
.ancho-65 { width: 65%; }
.ancho-66 { width: 66%; }
.ancho-67 { width: 67%; }
.ancho-68 { width: 68%; }
.ancho-69 { width: 69%; }
.ancho-70 { width: 70%; }
.ancho-71 { width: 71%; }
.ancho-72 { width: 72%; }
.ancho-73 { width: 73%; }
.ancho-74 { width: 74%; }
.ancho-75 { width: 75%; }
.ancho-76 { width: 76%; }
.ancho-77 { width: 77%; }
.ancho-78 { width: 78%; }
.ancho-79 { width: 79%; }
.ancho-80 { width: 80%; }
.ancho-81 { width: 81%; }
.ancho-82 { width: 82%; }
.ancho-83 { width: 83%; }
.ancho-84 { width: 84%; }
.ancho-85 { width: 85%; }
.ancho-86 { width: 86%; }
.ancho-87 { width: 87%; }
.ancho-88 { width: 88%; }
.ancho-89 { width: 89%; }
.ancho-90 { width: 90%; }
.ancho-91 { width: 91%; }
.ancho-92 { width: 92%; }
.ancho-93 { width: 93%; }
.ancho-94 { width: 94%; }
.ancho-95 { width: 95%; }
.ancho-96 { width: 96%; }
.ancho-97 { width: 97%; }
.ancho-98 { width: 98%; }
.ancho-99 { width: 99%; }
.ancho-100 { width: 100%; }
