/* ============================================================
   ESTILOS COMPLETOS HGW BOLIVIA
   ============================================================ */

:root {
  --hgw-green: #1a3b2e;
  --hgw-green-light: #2d6a4f;
  --hgw-green-bright: #52b788;
  --hgw-gold: #c9a96b;
  --hgw-gray: #f9fafb;
  --text-main: #333333;

  --col-master-bg: rgba(205, 185, 213, 1);
  --col-master-bv-bg: rgba(205, 142, 189, 1);
  --col-dist-bg: rgba(203, 232, 201, 1);
  --col-dist-bv-bg: rgba(149, 213, 178, 1);
  --col-pub-bg: rgba(243, 243, 169, 1);
  --col-alimentos-bg: rgba(12, 114, 51, 1);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--hgw-gray);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* HUB (MENÚ PRINCIPAL) MODERNIZADO CON TONOS VERDES HGW */
.hub-card { 
  background: linear-gradient(135deg, #ffffff 0%, #f4f9f6 100%); 
  border: 1px solid #d8e2dc; 
  border-radius: 1rem; 
  padding: 2.2rem 1.5rem; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: 0 4px 6px -1px rgba(26, 59, 46, 0.04), 0 2px 4px -1px rgba(26, 59, 46, 0.02); 
  text-decoration: none; 
  color: inherit; 
  height: 100%; 
  cursor: pointer; 
  position: relative;
  overflow: hidden;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--hgw-green), var(--hgw-green-bright));
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.hub-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 20px 25px -5px rgba(26, 59, 46, 0.12), 0 8px 10px -6px rgba(26, 59, 46, 0.08); 
  border-color: var(--hgw-green-bright); 
  background: linear-gradient(135deg, #ffffff 0%, #ebf5ef 100%);
}

.hub-card:hover::before {
  opacity: 1;
  height: 6px;
}

.icon-wrapper { 
  width: 68px; 
  height: 68px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.1), rgba(82, 183, 136, 0.15)); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 1.5rem; 
  transition: all 0.35s ease; 
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.icon-wrapper i { 
  font-size: 1.7rem; 
  color: var(--hgw-green-light); 
  transition: transform 0.3s ease, color 0.3s ease;
}

.hub-card:hover .icon-wrapper { 
  background: linear-gradient(135deg, var(--hgw-green), var(--hgw-green-light)); 
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(45, 106, 79, 0.3);
}

.hub-card:hover .icon-wrapper i { 
  color: white; 
  transform: scale(1.1);
}

.hub-card h3 { 
  font-weight: 700; 
  font-size: 1.15rem; 
  color: var(--hgw-green); 
  margin-bottom: 0.5rem; 
  margin-top: 0; 
  letter-spacing: -0.01em;
}

.hub-card p { 
  font-size: 0.875rem; 
  color: #5c6b63; 
  margin: 0; 
  line-height: 1.4;
}

.region-tab { padding: 0.5rem 1.5rem; border-radius: 9999px; font-weight: 600; font-size: 0.9rem; background-color: #e5e7eb; color: #4b5563; transition: all 0.2s ease; border: none; cursor: pointer; font-family: inherit; }
.region-tab:hover { background-color: #d1d5db; }
.region-tab.active { background-color: var(--hgw-green); color: white; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

/* TABLA */
.table-container {
  border: 2px solid #1e8c5a; 
  border-radius: 4px;
  overflow: hidden;
  background: white;
}

.price-table {
  border-collapse: collapse;
  width: 100%;
}

.price-table th, 
.price-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  vertical-align: middle;
  font-size: 0.85rem;
  text-align: center;
}

.price-table td:last-child,
.price-table th:last-child {
  border-right: none;
}

/* Textos */
.prod-code { font-size: 0.7rem; color: #dc2626; font-weight: 600; display: block; margin-bottom: 2px; }
.prod-name { font-weight: 700; color: #1f2937; line-height: 1.2; display: block; }
.prod-desc { color: #4b5563; font-size: 0.8rem; line-height: 1.3; }
.prod-img { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto; }

.price-table td:nth-child(1) { text-align: center !important; background-color: #f9fafb; width: 60px; border-right: 1px solid #fff;}
.price-table td:nth-child(2) { text-align: left !important; background-color: #f9fafb; }
.price-table td:nth-child(3) { text-align: left !important; background-color: #f9fafb; }

/* NUEVA CLASE: Para las categorías que van de lado a lado */
.full-category-row td {
  background-color: #0c7233 !important;
  color: #f6ed23 !important; /* Amarillo */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 8px 12px;
  text-align: center;
  border-right: none;
}

/* RESPONSIVIDAD */
@media (max-width: 900px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { margin-bottom: 15px; border: 1px solid #d1d5db; border-radius: 8px; background-color: white; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; }
  
  .price-table tr.header-row { display: flex; flex-wrap: wrap; }
  .price-table tr.header-row td { width: auto; flex: 1; padding: 10px; text-align: center; }

  .price-table td { text-align: right; padding-left: 50%; position: relative; border-bottom: 1px solid #f3f4f6; border-right: none; min-height: 40px; }
  .price-table td::before { content: attr(data-label); position: absolute; left: 10px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: 700; color: #4b5563; font-size: 0.75rem; }
  .price-table td:nth-child(1), .price-table td:nth-child(2), .price-table td:nth-child(3) { text-align: left; padding-left: 15px; background: #f9fafb; }
  .price-table td:nth-child(1) { padding-top: 15px; }
  .price-table td:nth-child(1)::before { display: none; }
  .price-table td:nth-child(2) { padding-top: 5px; }
  .price-table td:nth-child(2)::before { display: none; }
  .price-table td:nth-child(3) { border-bottom: 2px solid #e5e7eb; padding-bottom: 15px; }
  .price-table td:nth-child(3)::before { display: none; }

  .price-table td:nth-child(4)::before { content: "MASTER:"; }
  .price-table td:nth-child(5)::before { content: "BV MASTER:"; }
  .price-table td:nth-child(6)::before { content: "DISTRIBUIDOR:"; }
  .price-table td:nth-child(7)::before { content: "BV DIST:"; }
  .price-table td:nth-child(8)::before { content: "PÚBLICO:"; }
  .price-table td:nth-child(8) { font-weight: 700; font-size: 1rem; }
}