@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================================
   FUENTES Y CONFIGURACIÓN GLOBAL
================================ */
body, input, button, select {
  font-family: 'Poppins', sans-serif;
  color: #2d3748;
  margin: 0;
  padding: 0;
}

.contenedor-global {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 15px;
}

/* ================================
   TARJETAS DE PROYECTOS (AGREGAR TAREAS)
================================ */
.at-card {
  background: #ffffff;
  border-radius: 12px; 
  padding: 20px;
  margin: 20px auto;
  width: 100%;
  box-shadow: 0 4px 15px rgba(134, 21, 66, 0.1);
  position: relative;
  border: 1px solid #e6e2e8;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 3;
}

.at-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(134, 21, 66, 0.2);
}

.at-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px; 
  height: 100%;
  background: linear-gradient(180deg, #861542, #a83267);
  border-radius: 12px 0 0 12px;
}

/* ================================
   TITULARES (AGREGAR TAREAS)
================================ */
.at-nombre-proyecto {
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 15px;
  color:#000;
  text-transform: uppercase;
  text-align: center;
}

/* ================================
   INFO DE TARJETA (AGREGAR TAREAS)
================================ */
/* ================================
   INFO DE TARJETA (AGREGAR TAREAS)
================================ */
.at-info {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Aumentado a 10px para más separación vertical entre fechas */
  margin-bottom: 25px; /* Aumentado a 25px para separar más el bloque de fechas del botón */
  padding: 10px 0; /* Agregamos padding para un poco de aire con el nombre del proyecto */
  border-top: 1px solid #f0f0f0; /* Línea de separación sutil */
  border-bottom: 1px solid #f0f0f0; /* Línea de separación sutil */
}

.at-info-item {
  display: flex;
  align-items: center;
  gap: 10px; /* Ajuste sutil */
  font-size: 16px;
  color: #000;
  justify-content: center;
}

.at-info-icon {
  font-size: 1.5rem;
  color: #861542;
}

/* El botón puede quedar igual, ya que el margen del at-info lo separará. */
.at-botones {
  display: flex;
  justify-content: center;
  margin-top: 15px; /* Podrías reducir esto a 0 si la separación de at-info es suficiente */
}

.at-btn-agregar-tarea {
  padding: 8px 16px;
  background: #861542;
  color: white;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.at-btn-agregar-tarea:hover {
  background: linear-gradient(90deg, #861542, #a83267);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(134,21,66,0.3);
}

/* ================================
   CONTENEDOR DE FILTROS (AGREGAR TAREAS)
================================ */
.at-filtros-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
}

.at-search-filter-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.at-search-box {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  position: relative;
  display: flex;
  align-items: center;
}

.at-search-icon {
  position: absolute;
  left: 15px;
  color: #861542;
  font-size: 1.2rem;
  z-index: 2;
}

.at-search-input {
  width: 100%;
  padding: 12px 45px 12px 45px;
  border: 2px solid rgba(134, 21, 66, 0.15);
  border-radius: 50px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(134, 21, 66, 0.1);
  font-size: 16px;
  transition: all 0.3s ease;
  color: #2d3748;
  font-family: 'Poppins', sans-serif;
}

.at-search-input:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(134, 21, 66, 0.2);
  border-color: #861542;
}

.at-search-clear-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: #861542;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.at-search-clear-btn:hover {
  color: #a83267;
  transform: scale(1.1);
}

.at-filter-box {
  position: relative;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.at-filter-icon {
  color: #861542;
  font-size: 1.2rem;
}

.at-search-results-info {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 8px 0;
  border-top: 1px solid rgba(134, 21, 66, 0.1);
}

.at-results-count {
  font-weight: 700;
  color: #861542;
  font-size: 1.1em;
}


/* ================================
   ANIMACIONES
================================ */
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================================
   RESPONSIVE (AGREGAR TAREAS)
================================ */
@media (max-width: 768px) {
  .at-card { padding: 15px; }
  .at-nombre-proyecto { font-size: 18px; }
  .at-search-input { font-size: 13px; padding: 10px 40px 10px 40px; }
  .at-search-filter-wrapper { flex-direction: column; }
  .at-search-box { min-width: 100%; max-width: 100%; }
  .at-filter-box { min-width: 100%; }
  .at-btn-agregar-tarea { padding: 6px 12px; font-size: 12px; }
}