/* ===== RESET BÁSICO ===== */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 20px;
  background: #f4f6f9;
  color: #333;
}

/* ===== TÍTULO ===== */
h2 {
  margin-bottom: 20px;
  color: #1f2937;
  font-weight: 600;
}

/* ===== CONTENEDOR FILTROS ===== */
.filtros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* ===== INPUTS ===== */
.filtros input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filtros input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* ===== BOTÓN ===== */
.filtros button {
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.filtros button:hover {
  background: #1d4ed8;
}

.filtros button:active {
  transform: scale(0.97);
}

/* ===== TABLA ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

thead {
  background: #1f2937;
}

thead th {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  text-align: left;
}

tbody td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #e5e7eb;
}

tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f1f5f9;
}

/* ===== DETALLE ===== */
#detalle {
  margin-top: 20px;
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#detalle h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2563eb;
  font-weight: 600;
}

#detalle p {
  margin: 6px 0;
  font-size: 14px;
}

#detalle b {
  color: #1f2937;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h2 {
    font-size: 18px;
  }

  thead {
    display: none;
  }

  table, tbody, tr, td {
    display: block;
    width: 100%;
  }

  tbody tr {
    margin-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
  }

  tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #374151;
  }
}
/* ===== SUBIDA CSV ===== */
.upload-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.upload-label {
  background: #e5e7eb;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.upload-label input {
  display: none;
}

.upload-box button {
  background: #16a34a;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.upload-box button:hover {
  background: #15803d;
}

#uploadMsg {
  font-size: 13px;
}
