* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; /* AUMENTADO (antes 64px) */
}

.logo-icon {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100px;   /* Ajusta este valor según lo grande que lo quieras */
  height: auto;
  display: block;
}



.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: #2563eb;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 224px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

.search-container {
  flex: 1;
  max-width: 384px;
  margin: 0 32px;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 40px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: rgba(243, 244, 246, 0.5);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #2563eb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn {
  position: relative;
  padding: 8px;
  text-decoration: none;
  color: #374151;
  transition: color 0.2s;
}

.cart-btn:hover {
  color: #2563eb;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #374151;
}

/* Hero Section */
.hero {
  background: url('images/wide\ laboratory\ back.png') center center / cover no-repeat;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #2563eb;
}

.btn-primary:hover {
  background: #f3f4f6;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #2563eb;
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background: white;
}

.benefits h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
  color: #1f2937;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.benefit-card {
  text-align: center;
  padding: 32px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 24px;
}

.benefit-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1f2937;
}

.benefit-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Product Catalog Section */
.product-catalog {
  padding: 80px 0;
  background: #f8fafc;
}

.product-catalog h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
  color: #1f2937;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.category-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 64px;
  height: 64px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 24px;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #1f2937;
}

.category-card p {
  color: #6b7280;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background: white;
}

.testimonials h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
  color: #1f2937;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: #f8fafc;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 16px;
  color: #374151;
  line-height: 1.6;
}

.testimonial-author strong {
  color: #1f2937;
  display: block;
}

.testimonial-author span {
  color: #6b7280;
  font-size: 14px;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 600;
}

.footer-section h3 {
  margin-bottom: 16px;
  color: #f9fafb;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 12px;
}

.services-list p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.services-list i {
  color: #10b981;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.social-links a:hover {
  background: #2563eb;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hours h4 {
  margin: 16px 0 8px;
  color: #f9fafb;
}

.upload-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: background-color 0.2s;
}

.upload-btn:hover {
  background: #1d4ed8;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}

.photo-placeholder {
  background: #374151;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: #9ca3af;
}

.photo-placeholder i {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.photo-placeholder p {
  font-size: 12px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .search-container {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .benefits-grid,
  .catalog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
/* --- RESPONSIVE HEADER PARA MÓVILES --- */
@media (max-width: 768px) {

    /* Reorganiza todo el header en columna */
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Oculta el menú grande en móvil */
    .nav {
        display: none;
    }

    /* Asegura que el botón hamburguesa sí aparezca */
    .mobile-menu-btn {
        display: block;
    }

    /* El buscador ocupa todo el ancho */
    .search-container {
        width: 100%;
        order: 3; /* Lo coloca debajo del logo */
    }

    .search-box {
        width: 100%;
    }

    .search-input {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    /* Ajustes opcionales para que el carrito no se rompa */
    .header-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* --- RESPONSIVE PARA LOS FILTROS DEL CATÁLOGO --- */
@media (max-width: 768px) {

    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}
/* --- BUSCADOR RESPONSIVE COMO EN LA VISTA DERECHA --- */
@media (max-width: 768px) {

    /* Reorganiza el header en columna */
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Oculta el menú grande en móvil */
    .nav {
        display: none;
    }

    /* Asegura que el botón hamburguesa sí aparezca */
    .mobile-menu-btn {
        display: block;
    }

    /* --- BUSCADOR ESTILO MÓVIL --- */
    .search-container {
        width: 100%;
        order: 2; /* Lo coloca debajo del logo */
        padding: 0 10px;
    }

    .search-box {
        width: 100%;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-icon {
        font-size: 18px;
        color: #6b7280;
    }

    .search-input {
        width: 100%;
        border: none;
        outline: none;
        font-size: 16px;
        background: transparent;
    }

    /* Ajuste del carrito y menú */
    .header-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    /* --- FILTROS RESPONSIVE (SEGUIRÁN APARECIENDO) --- */
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        width: 100%;
        padding: 0 10px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}
/* --- ALINEACIÓN DEL BUSCADOR Y FILTROS EN LA MISMA FILA --- */
.filters-container {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se acomoden en varias líneas si no hay espacio */
    align-items: center;
    gap: 10px; /* Espaciado entre elementos */
}

#categoryFilter, #brandFilter, .search-container {
    flex: 1; /* Ocupan el mismo espacio disponible */
    min-width: 120px; /* Un ancho mínimo para que no se reduzcan demasiado */
}

/* --- EN PANTALLAS PEQUEÑAS, LOS ELEMENTOS SE APILAN --- */
@media (max-width: 600px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch; /* Los coloca uno debajo del otro */
    }

    .search-container {
        order: -1; /* El buscador se coloca primero, arriba de los filtros */
        margin-bottom: 10px; /* Un pequeño margen para separarlo de los filtros */
    }
}
/* --- AJUSTE PARA PANTALLAS MUY PEQUEÑAS --- */
@media (max-width: 480px) {
    .filters-container {
        flex-direction: column; /* Mantiene la columna */
    }

    .search-container {
        display: block; /* Aseguramos que siga visible */
        order: 1; /* Mantiene su posición o se ajusta según prefieras */
        margin-bottom: 10px;
    }
}

}
