/* Tipografía base */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: linear-gradient(180deg, #fff 0%, #f9f0ff 100%);
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Encabezado */
.header-bar {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.logo img {
  width: 50px;
  height: 50px;
  margin-bottom: 0.5rem;
}

.highlight {
  color: #b66dff;
}
.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}
.main-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #b66dff;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.main-nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero-gradient {
  background: linear-gradient(135deg, #fbb03b, #b66dff);
  color: white;
  text-align: center;
  padding: 80px 20px 40px;
  animation: fadeIn 1.5s ease-in;
}
.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  animation: bounceIn 1s ease;
}
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 20px;
}
.hero-buttons {
  margin-top: 20px;
}
.btn-yellow {
  background-color: #ffe600;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn-yellow:hover {
  transform: scale(1.05);
}
.btn-outline {
  border: 2px solid white;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.btn-outline:hover {
  transform: scale(1.05);
  background-color: rgba(255,255,255,0.1);
}

.hero-icons {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Cambiado para que todos tengan misma altura */
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
}

.icon-block {
  width: 220px;
  height: 220px;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}


@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.icon-block:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.icon-block img {
  width: 75px;
  height: 68px;
  margin-bottom: 0.5rem;
}

.icon-block h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.4rem 0;
  color: #fff;
  text-align: center;
}

.icon-block p {
  font-size: 0.9rem;
  color: #f5f5f5;
  text-align: center;
  margin: 0;
}

/* Productos en Liquidación */
.liquidacion-section {
  background-color: #fff0f5;
  padding: 60px 20px;
  text-align: center;
}
.section-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}
.subtitle {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 40px;
  text-align: center;
}
.liquidacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.liquidacion-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.liquidacion-card:hover {
  transform: translateY(-5px);
}
.liquidacion-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.liquidacion-card h3 {
  margin: 0 0 10px;
}
.oferta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #b66dff, #ff66c4);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s ease;
}
.oferta-button:hover {
  background: linear-gradient(135deg, #a455f0, #ff3399);
  transform: scale(1.05);
}

/* Redes Sociales */
.redes-section {
  background: linear-gradient(135deg, #e0e0ff, #f5d9ff);
  padding: 60px 20px;
  text-align: center;
}
.redes-section h2 {
  font-size: 2.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}
.redes-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.redes-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  width: 180px;
}
.redes-card:hover {
  transform: translateY(-5px);
  background: #f0e6ff;
}
.redes-card img {
  width: 48px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}
.redes-card:hover img {
  transform: scale(1.1);
}
.redes-card h4 a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  display: inline-block;
  transition: color 0.3s;
}
.redes-card h4 a:hover {
  color: #b66dff;
}

/* Sección de Ubicación */
.ubicacion-final {
  background-color: #fff6fc;
  padding: 60px 20px;
  text-align: center;
}
.ubicacion-final h2 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.ubicacion-final p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}
.mapa-info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.mapa-box iframe {
  border: 0;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  height: 300px;
}
.info-box {
  text-align: left;
  max-width: 400px;
}
.info-box p {
  font-size: 1rem;
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* Formulario de contacto */
.mayoristas-section {
  background: #f2eaff;
  padding: 60px 20px;
}
.mayoristas-section h2 {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}
.formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.form-status {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ===== Catálogo público ===== */
.catalogo-publico .catalog-controls{
  display:flex; gap:14px; justify-content:space-between; align-items:center; flex-wrap:wrap; margin:14px 0 18px;
}
.catalogo-publico #buscar{
  width:100%; max-width:420px; padding:12px 14px; border:1px solid #ddd; border-radius:10px; outline:none;
}
.catalogo-publico #buscar:focus{ border-color:#b66dff; box-shadow:0 0 0 3px rgba(182,109,255,.15); }
.catalogo-publico #orden{
  padding:10px 12px; border-radius:10px; border:1px solid #ddd; background:#fff; cursor:pointer;
}

.tabla-publica thead th{ background:#f6f1ff; border-bottom:1px solid #eadfff; }
.tabla-publica tbody td{ vertical-align:middle; }

.stock-badge{
  display:inline-block; padding:4px 10px; border-radius:999px; font-weight:700; font-size:.85rem;
}
.stock-badge.ok{ background:#e7f8ef; color:#128a4a; }
.stock-badge.mid{ background:#fff6df; color:#a06d00; }
.stock-badge.out{ background:#ffe6e9; color:#c1384d; }

.btn-mini.comprar{
  background:#b66dff; color:#fff; text-decoration:none; padding:8px 12px; border-radius:8px; font-weight:700;
}
.btn-mini.comprar:hover{ filter:brightness(1.05); }

/* ===== Filtro por categorías ===== */
.cat-pills{
  display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 18px;
}
.pill{
  border:1px solid #e6d7ff; background:#fff; color:#5c2fbf;
  padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:700;
  transition:all .2s ease;
}
.pill:hover{ background:#f4ecff; }
.pill.active{ background:#b66dff; border-color:#b66dff; color:#fff; }

/* Encabezado de grupo (categoría) */
.cat-header td{
  background:#faf6ff; color:#5c2fbf; font-weight:800; letter-spacing:.2px;
  padding:14px; border-top:2px solid #eadfff;
}

/* Centrado general */
.container { max-width: 1100px; margin: 0 auto; }
.catalogo-publico { text-align: center; }
.catalogo-publico .section-title, .catalogo-publico .subtitle { text-align: center; }

/* Controles centrados */
.catalog-controls{
  display:flex; flex-wrap:wrap; gap:14px; justify-content:center; align-items:center;
  margin:14px 0 18px;
}
.catalog-controls .left, .catalog-controls .right { display:flex; gap:10px; align-items:center; }
#buscar{ width: min(420px, 90vw); padding:12px 14px; border:1px solid #ddd; border-radius:10px; }
#orden{ padding:10px 12px; border-radius:10px; border:1px solid #ddd; background:#fff; }

/* Pills centradas (multi select) */
.cat-pills{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:10px 0 18px; }
.pill{
  border:1px solid #e6d7ff; background:#fff; color:#5c2fbf; padding:8px 12px;
  border-radius:999px; cursor:pointer; font-weight:700; transition:all .2s ease;
}
.pill:hover{ background:#f4ecff; }
.pill.active{ background:#b66dff; border-color:#b66dff; color:#fff; }

/* Tabla centrada */
.table-wrap{ margin: 0 auto; border-radius:12px; box-shadow:0 6px 16px rgba(0,0,0,.06); background:#fff; }
.tabla{ width:100%; border-collapse:collapse; }
.tabla thead th{ text-align:center; background:#f6f1ff; border-bottom:1px solid #eadfff; }
.tabla tbody td{ text-align:center; padding:14px; border-bottom:1px solid #f1f1f1; }

/* Encabezado de grupo (categoría) */
.cat-header td{
  background:#faf6ff; color:#5c2fbf; font-weight:800; letter-spacing:.2px;
  padding:14px; border-top:2px solid #eadfff; text-align:center;
}

/* Badges/CTA */
.badge-sku{ background:#efe8ff; color:#5c2fbf; padding:4px 8px; border-radius:8px; font-weight:600; }
.stock-badge{ display:inline-block; padding:4px 10px; border-radius:999px; font-weight:700; font-size:.85rem; }
.stock-badge.ok{ background:#e7f8ef; color:#128a4a; }
.stock-badge.mid{ background:#fff6df; color:#a06d00; }
.stock-badge.out{ background:#ffe6e9; color:#c1384d; }
.btn-mini.comprar{ background:#b66dff; color:#fff; text-decoration:none; padding:8px 12px; border-radius:8px; font-weight:700; }
.btn-mini.comprar:hover{ filter:brightness(1.05); }

.catalogo-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #ff6600, #ff9900);
    color: white;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.catalogo-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.catalogo-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn-catalogo {
    display: inline-block;
    padding: 14px 30px;
    background-color: white;
    color: #ff6600;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-catalogo:hover {
    background-color: #ffcc99;
    color: #cc5200;
}

/* === Carrito: layout más espacioso y legible === */

/* separa visualmente los ítems entre sí */
.cart-body{
  display: flex;
  flex-direction: column;
  gap: 12px;              /* espacio entre tarjetas */
  padding-right: 6px;     /* margen para que no toque el borde */
}

/* cada ítem como tarjeta */
.cart-item{
  display: grid;                      /* redefinimos la grilla del ítem */
  grid-template-columns: 1fr 90px;    /* info / lado derecho */
  grid-template-areas:
    "info   remove"
    "qty    totals";
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid #ece7ff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* mapeo por orden de hijos (no cambiamos el HTML) */
.cart-item > :nth-child(1){ grid-area: info;   }
.cart-item > :nth-child(2){ grid-area: qty;    justify-self: start; }
.cart-item > :nth-child(3){ grid-area: totals; justify-self: end;   text-align: right; }
.cart-item > :nth-child(4){ grid-area: remove; justify-self: end;   }

/* textos más respirados */
.cart-item .mini{
  line-height: 1.25;
  color: #7a7395;
}

/* input cantidad un poquito más cómodo */
.cart-item .qty{
  width: 80px;
  padding: 10px;
  border: 1px solid #e6d9ff;
  border-radius: 10px;
}

/* botón quitar más “flotado” */
.cart-item [data-del]{
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 26px;
  text-align: center;
  border-radius: 8px;
}

/* en pantallas grandes volvemos a una fila amplia */
@media (min-width: 900px){
  .cart-panel{ width: 420px; } /* un pelín más ancha */
  .cart-item{
    grid-template-columns: 1fr 90px 140px 28px;
    grid-template-areas: "info qty totals remove";
    gap: 12px;
  }
}
/* ====== Barra de filtros más prolija/pegajosa ====== */
.toolbar {
  position: sticky;
  top: 72px;                 /* debajo del header */
  z-index: 30;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.92));
  backdrop-filter: blur(6px);
  border: 1px solid #f0eaff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 14px 16px;
}

/* Input de búsqueda más “lindo” */
.pill {
  border-radius: 12px;
  border: 1px solid #e6d9ff;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: border .2s, box-shadow .2s;
}
.pill:focus {
  outline: none;
  border-color: #c7a7ff;
  box-shadow: 0 0 0 4px rgba(182,109,255,.15);
}

/* Selector */
.select {
  border-radius: 12px;
  border: 1px solid #e6d9ff;
  background: #fff;
}

/* ====== Chips de categorías “premium” ====== */
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 4px 0;
  position: relative;
}

/* Estado “colapsado” con desvanecido abajo */
.categories-filter.collapsed {
  max-height: 104px;              /* ~dos filas */
  overflow: hidden;
}
.categories-filter.collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

/* Chip */
.cat-chip {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid #e6d9ff;
  background: #faf7ff;
  color: #5a2d9c;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease, border-color .2s ease;
}
.cat-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(182,109,255,.15);
  background: #f6efff;
  border-color: #d8c4ff;
}
.cat-chip.active {
  background: linear-gradient(135deg, #b66dff, #ff66c4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(182,109,255,.25);
}

/* Botón Ver más / Ver menos */
.btn-chip-toggle {
  border: 1px solid #e6d9ff;
  background: #fff;
  color: #5a2d9c;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  transition: border .2s, box-shadow .2s;
}
.btn-chip-toggle:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  border-color: #c7a7ff;
}

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .toolbar { top: 64px; padding: 12px; border-radius: 12px; }
  .pill, .select { width: 100%; }
  .toolbar-left, .toolbar-right { gap: 10px; }
}

/* Ingreso empleados (footer-bottom) */
.ingreso-empleados{
  text-align:center; padding:22px 16px; background:#0f0f10; border-top:1px solid #222;
}
.btn-empleados{
  display:inline-block; font-weight:800; padding:12px 18px; border-radius:12px;
  background:linear-gradient(90deg, var(--brand), var(--brand-2)); color:#111;
  box-shadow:0 10px 24px rgba(0,0,0,.15);
}
.btn-empleados:focus{ outline:3px solid rgba(182,109,255,.3); outline-offset:3px; }

/* Footer + botón sutil (izquierda) */
.footer-bar{
  max-width:1200px; margin:0 auto; display:flex; align-items:center; gap:12px;
  justify-content:flex-start;
}
.footer-bar p{ margin-left:auto; } /* empuja el texto a la derecha */

.btn-emp-sutil{
  font-size:.92rem; font-weight:700; padding:8px 12px; border-radius:10px;
  background:rgba(255,255,255,.06); color:#eee; border:1px solid rgba(255,255,255,.12);
  text-decoration:none; display:inline-block; transition:all .2s ease;
}
.btn-emp-sutil:hover,
.btn-emp-sutil:focus-visible{
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  color:#111; border-color:transparent;
  box-shadow:0 0 0 6px rgba(182,109,255,.18), 0 12px 28px rgba(182,109,255,.28);
  outline:none;
}
@media (max-width:560px){
  .footer-bar{ flex-direction:column; gap:10px; text-align:center; }
  .footer-bar p{ margin-left:0; }
}
