* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*Estilo  para visializacion de cada producto */
/* --- EFECTO HOVER EN LA TABLA --- */
.products-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.products-table tbody tr:hover {
    background-color: #f1f5f9; /* Color gris muy clarito al pasar el mouse */
}

/* --- ESTILOS DEL CARTEL FLOTANTE (MODAL PRODUCTO) --- */
.modal-producto-container {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); /* Difumina el fondo */
}

.modal-producto-card {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: aparecerModal 0.3s ease-out forwards;
}

@keyframes aparecerModal {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-producto-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-producto-close:hover {
    color: #e11d48; /* Se pone rojo al pasar el mouse */
}

.modal-producto-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-prod-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.modal-prod-info h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.4rem;
    text-transform: capitalize;
}

.modal-prod-info p {
    margin: 8px 0;
    color: #475569;
    font-size: 1.1rem;
}

.modal-prod-total {
    margin-top: 15px;
    font-size: 1.3rem;
    color: #059669; /* Color verde */
    background: #ecfdf5;
    padding: 10px 25px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #a7f3d0;
}







/*Estilo scrolla tabla lateral*/
/* Ocultar el indicador en computadoras */
.scroll-indicator {
  display: none;
}

@media (max-width: 768px) {
  .scroll-indicator {
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #f8fafc; /* Color suave de fondo */
      color: #64748b;            /* Color de texto gris */
      padding: 8px;
      font-size: 14px;
      border-radius: 8px 8px 0 0;
      border: 1px solid #e2e8f0;
      border-bottom: none;
      margin-top: 10px;
  }

  .scroll-indicator span {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 500;
  }

  /* Animación de las flechas para que se muevan de lado a lado */
  .arrow-left {
      animation: slideLeft 1.5s infinite;
  }
  
  .arrow-right {
      animation: slideRight 1.5s infinite;
  }

  @keyframes slideLeft {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(-5px); }
  }

  @keyframes slideRight {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(5px); }
  }

  /* Opcional: Asegurar que la tabla tenga un scrollbar más visible en móvil */
  .table-responsive::-webkit-scrollbar {
      height: 6px;
  }
  .table-responsive::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 10px;
  }
}





body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e7e7e8 0%, #ff6d6d 100%);
  min-height: 100vh;
  color: #333;
}

/* Header */
.header {
  background: #c50000;
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-button {
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgb(0, 0, 0);
}

.back-button:hover {
  background: #930b0b;
  transform: translateX(-3px);
}

.back-icon {
  width: 24px;
  height: 24px;
}

.header-title {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  text-transform: capitalize;
}

.header-spacer {
  width: 40px;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Catalog Section */
.catalog-section {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.download-button {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: rgb(0, 0, 0);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.download-icon {
  width: 24px;
  height: 24px;
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-box {
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.search-button {
  background: #e12b2b;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.search-button:hover {
  background: #a23232;
}

.search-icon {
  width: 20px;
  height: 20px;
}

/* Category Buttons */
.category-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-btn {
  background: white;
  border: none;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #db5656 0%, #764ba2 100%);
  color: white;
}

.category-btn.active {
  background: linear-gradient(135deg, #ea6666 0%, #764ba2 100%);
  color: white;
}

.category-icon {
  background: rgba(102, 126, 234, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-btn:hover .category-icon,
.category-btn.active .category-icon {
  background: rgba(255, 255, 255, 0.2);
}

.category-icon svg {
  width: 28px;
  height: 28px;
  color: #667eea;
}

.category-btn:hover .category-icon svg,
.category-btn.active .category-icon svg {
  color: white;
}

/* Products Table */
.products-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #667eea;
}

.table-title {
  color: #667eea;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: capitalize;
}

.table-responsive {
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table thead {
  background: linear-gradient(135deg, #ea6666 0%, #764ba2 100%);
  color: white;
}

.products-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Added styles for photo column */
.products-table th:first-child,
.products-table td:first-child {
  text-align: center;
  width: 100px;
}

.product-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.product-photo svg {
  width: 35px;
  height: 35px;
  color: #999;
}

.products-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.products-table tbody tr {
  transition: all 0.3s ease;
}

.products-table tbody tr:hover {
  background: #f5f5f5;
}

.products-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-title {
    font-size: 1.2rem;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .download-button {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .category-btn {
    padding: 1.25rem;
    font-size: 1rem;
  }

  .category-icon {
    width: 45px;
    height: 45px;
  }

  .category-icon svg {
    width: 24px;
    height: 24px;
  }

  .products-table th,
  .products-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  /* Reduced photo size on mobile */
  .products-table th:first-child,
  .products-table td:first-child {
    width: 70px;
  }

  .product-photo {
    width: 50px;
    height: 50px;
  }

  .product-photo svg {
    width: 25px;
    height: 25px;
  }

  .table-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.875rem 1rem;
  }

  .back-button {
    width: 36px;
    height: 36px;
  }

  .back-icon {
    width: 20px;
    height: 20px;
  }

  .header-spacer {
    width: 36px;
  }

  .products-table th,
  .products-table td {
    padding: 0.625rem 0.375rem;
    font-size: 0.85rem;
  }

  /* Further reduced photo size on small mobile */
  .products-table th:first-child,
  .products-table td:first-child {
    width: 60px;
  }

  .product-photo {
    width: 45px;
    height: 45px;
  }

  .product-photo svg {
    width: 22px;
    height: 22px;
  }
}

/* Footer */
.footer {
  background-color: #111827;
  color: #ffffff;
  margin-top: 80px;
  padding: 60px 0 20px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-column p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
  color: #9ca3af;
  font-size: 14px;
}

.footer-column ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

/* Social links */
.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.3s, background-color 0.3s;
}

.social-link:hover {
  transform: scale(1.1);
}

.facebook {
  background-color: #1877f2;
}

.facebook:hover {
  background-color: #145dbf;
}

.instagram {
  background-color: #e4405f;
}

.instagram:hover {
  background-color: #d02d4c;
}

.whatsapp {
  background-color: #25d366;
}

.whatsapp:hover {
  background-color: #1da851;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 14px;
}
