/* ESTILOS MODERNOS CON FORMAS OVALADAS - Versión HGW Verde */
:root {
  --primary: #15803d;          /* Verde oscuro principal HGW (salud/naturaleza) */
  --secondary: #065f46;        /* Verde más oscuro para degradados */
  --accent: #22c55e;           /* Verde claro/vivo para acentos y hover */
  --light: #f8fafc;
  --dark: #0f172a;
  --success: #16a34a;          /* Verde medio para entregado */
  --gray: #64748b;
  --border: #dcfce7;           /* Verde muy claro para bordes */
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8fafc;
  color: var(--dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* TÍTULO CON DEGRADADO OVALADO */
h1 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1.5rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 50px;
}

/* BUSCADOR OVALADO MODERNO */
.search-container {
  background: white;
  padding: 1.8rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.12);
  margin-bottom: 3rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(21, 128, 61, 0.18);
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box input {
  flex: 1;
  padding: 1rem 1.8rem;
  border: 2px solid #dcfce7;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  outline: none;
  background-color: white;
}

.search-box button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.25);
}

.search-box button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.35);
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1rem;
}

.filter-container input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.filter-container input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.filter-container input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ESTADÍSTICAS OVALADAS */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.04), rgba(34, 197, 94, 0.02));
  z-index: 0;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.15);
}

.stat-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
}

.stat-card p {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
}

/* TABLA */
.table-master-container {
  background: white;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.08);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: all 0.4s ease;
}

.table-master-container:hover {
  box-shadow: 0 20px 50px rgba(21, 128, 61, 0.12);
}

.table-scroll-container {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 30px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 1000px;
}

.data-table th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-weight: 500;
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.data-table th:first-child {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.data-table th:last-child {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.data-table td {
  padding: 1.2rem 1.5rem;
  background-color: white;
  border: none;
  position: relative;
}

.data-table tr td:first-child {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

.data-table tr td:last-child {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

.data-table tr:hover td {
  background-color: #f0fdf4;  /* Verde muy suave en hover */
}

/* FILAS ANTIGUAS - Verde suave y positivo */
.antiguo td {
  background-color: #f0fdf4;     /* Verde menta claro positivo */
  color: #065f46;                /* Verde oscuro para texto */
}

.antiguo:hover td {
  background-color: #d1fae5 !important;
}

.antiguo td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

/* PAGINACIÓN */
.paginacion-cuadrados {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.08);
}

.paginacion-cuadrados .pagina-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  text-decoration: none;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: #f0fdf4;
  border: none;
}

.paginacion-cuadrados .pagina-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 15px rgba(21, 128, 61, 0.25);
}

.paginacion-cuadrados .pagina-btn.actual {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  cursor: default;
  transform: scale(1.1);
  box-shadow: 0 8px 15px rgba(21, 128, 61, 0.3);
}

.paginacion-cuadrados .pagina-btn.disabled {
  color: #94a3b8;
  background: #f1f5f9;
  cursor: not-allowed;
}

.paginacion-cuadrados .separador {
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .container { padding: 1.5rem; }
  h1 { font-size: 2rem; }
  .stat-card { padding: 1.5rem; }
  .stat-card p { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  .container { padding: 1rem; }
  .search-container { padding: 1.5rem; border-radius: 30px; }
  .search-box { flex-direction: column; }
  .search-box button { width: 100%; justify-content: center; }
  .stats-container { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 1rem; }
  .paginacion-cuadrados .pagina-btn { width: 2.8rem; height: 2.8rem; }
}

/* Bordes visibles en celdas */
.data-table th, .data-table td {
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
}

.data-table th:first-child, .data-table td:first-child { border-left: 1px solid var(--border); }
.data-table th:last-child, .data-table td:last-child { border-right: 1px solid var(--border); }

/* Botón entregar - Verde HGW */
.btn-entregado {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-entregado:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(21, 128, 61, 0.25);
}

.btn-entregado.entregado {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Contador de premiados - Verde HGW */
.contador-premios {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contador-premios span {
  font-size: 1.5rem;
  font-weight: 700;
}