/* ======= FILTROS ======= */
.pm-filtros-container {
  background: white;
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
  max-width: 700px;
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
}

.pm-search-filter-wrapper {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
  width: 100%;
}

.pm-search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.pm-search-icon {
  position: absolute;
  left: 0.9rem;
  color: #861542;
  font-size: 1rem;
}

.pm-search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.pm-search-input:focus {
  outline: none;
  border-color: #861542;
  background: white;
  box-shadow: 0 0 0 3px rgba(134, 21, 66, 0.1);
}

.pm-search-clear-btn {
  position: absolute;
  right: 0.9rem;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pm-search-clear-btn:hover {
  background: #f1f3f5;
  color: #495057;
}

.pm-filter-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: auto;
}

.pm-filter-icon {
  color: #861542;
  font-size: 1rem;
}

.pm-search-results-info {
  text-align: center;
  padding: 0.6rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #495057;
  border: 1px solid #dee2e6;
}

.pm-results-count {
  background: #861542;
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-weight: 600;
  margin-right: 0.4rem;
}

/* ======= GRID PRINCIPAL ======= */
.pm-lista {
  display: grid;
  gap: 1.2rem;
  margin-top: 0.8rem;
  justify-content: center;
  max-width: 650px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr;
}

/* ======= TARJETAS ======= */
.pm-proyecto-card {
  background: white;
  border-radius: 5px;
  padding: 1.2rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pm-proyecto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.pm-proyecto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  transition: width 0.3s ease;
}

.pm-proyecto-card:hover::before {
  width: 7px;
}

.pm-proyecto-card.borde-en-proceso::before { background: #ffc107; }
.pm-proyecto-card.borde-finalizado::before { background: #28a745; }
.pm-proyecto-card.borde-pendiente::before { background: #6c757d; }

/* ======= HEADER TARJETA ======= */
.pm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #f1f3f5;
}

.pm-nombre {
  font-size: 1.2rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
  line-height: 1.2;
  flex: 1;
  text-transform: uppercase;
}

.pm-status-badge span {
  padding: 0.35rem 0.8rem;
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}


.pm-info-grid {
    display: grid;
    
    gap: 0.8rem;
    margin-bottom: 1rem;
   
    width: 100%; /* Asegura que se adapte en pantallas pequeñas */

    margin-left: auto;
    margin-right: auto;

}
.pm-info-item {
  display: flex;
  flex-direction: column; /* Cambiar a columna para centrar verticalmente */
  align-items: center; /* Centrar horizontalmente */
  justify-content: center; /* Centrar verticalmente */
  gap: 0.3rem; /* Reducir espacio entre icono y texto */
  padding: 0.8rem 0.5rem; /* Ajustar padding */
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  text-align: center; /* Asegurar que el texto esté centrado */
  min-height: 80px; /* Altura mínima para consistencia */
 
    display: flex;
    flex-direction: column; 
    align-items: center;    /* Centra el contenido horizontalmente (icono, label, value) */
    justify-content: center; 

}

.pm-info-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrar contenido */
  text-align: center;
  width: 100%;
}

.pm-info-item:hover {
  background: #e9ecef;
}

.pm-info-icon {
  color: #861542;
  font-size: 1.05rem;
}

.pm-info-label {
  font-size: 0.68rem;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.1rem;
}

.pm-info-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #212529;
  text-align: left;
}

/* ======= ACCIONES ======= */
.pm-botones {
  display: flex;
  justify-content: flex-end;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding: 12px 24px;
  min-width: 100px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #7a133c, #861542);
  border: 1px solid #861542;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pm-btn:hover {
  background: linear-gradient(135deg, #861542, #9a1a4f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(134, 21, 66, 0.3);
}

/* ======= MEDIA QUERIES ======= */
@media (min-width: 992px) {
  .pm-filtros-container {
    max-width: 900px;
  }
  
  .pm-lista {
    max-width: 1100px;
  }
  
  .pm-info-grid {
        max-width: 600px; 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 2rem;
    }
  .pm-info-item {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 0.5rem 0.8rem;
  }
}


