/* --- General --- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0 10px;
}

header {
  background-color: #343a40;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  max-width: 960px;
  margin: auto;
  padding: 20px 0;
}

h1, h2 {
  margin-bottom: 20px;
}

/* --- Formulario --- */
form {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

form input,
form select,
form textarea,
form button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background-color: #0d6efd;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0a58ca;
}

/* --- Buscador y botones --- */
#buscadorClientes {
  margin-bottom: 10px;
  padding: 8px;
}

/* --- Tarjetas de cliente --- */
.card-cliente {
  background-color: white;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.card-cliente:hover {
  transform: scale(1.01);
}

.card-cliente h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #333;
}

.card-cliente p {
  margin: 5px 0;
  font-size: 0.95rem;
}

/* --- Botones de acción --- */
.acciones {
  margin-top: 10px;
}

.btn-editar, .btn-eliminar {
  margin-right: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-editar {
  background-color: #ffc107;
  color: black;
}

.btn-eliminar {
  background-color: #dc3545;
  color: white;
}

.btn-editar:hover, .btn-eliminar:hover {
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  form input, form select, form textarea, form button {
    font-size: 0.95rem;
  }

  .card-cliente {
    padding: 15px;
  }

  .btn-editar, .btn-eliminar {
    font-size: 0.85rem;
  }
}
/* --- Dashboard resumen --- */
.resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: space-between;
}

.resumen-box {
  flex: 1;
  min-width: 200px;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  text-align: center;
}

.resumen-box h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.resumen-box p {
  font-size: 1.4rem;
  font-weight: bold;
  color: #0d6efd;
}
.modal-seguimiento {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#clientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 20px;
}

.card-cliente {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-cliente:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-cliente .seguimientos {
  display: none;
  margin-top: 10px;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
}

.card-cliente.expandido .seguimientos {
  display: block;
}
.estado-verde {
  border-left: 6px solid #2ecc71;
  background-color: #eafaf1;
}

.estado-naranja {
  border-left: 6px solid #f39c12;
  background-color: #fff9e6;
}

.estado-rojo {
  border-left: 6px solid #e74c3c;
  background-color: #fdecea;
}

.estado-gris {
  border-left: 6px solid #bdc3c7;
  background-color: #f4f4f4;
}

.alerta-seguimiento {
  display: inline-block;
  margin-top: 6px;
  font-weight: bold;
  color: #d35400;
}
#filtrosSeguimiento {
  margin-top: 10px;
  margin-bottom: 10px;
}

.btn-filtro {
  margin: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background-color: #e0e0e0;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-filtro:hover {
  background-color: #ccc;
}

#agenda {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
#agenda {
  max-width: 100%;
  height: 600px;
  margin: auto;
}
