/* Reset y base - IGUAL QUE TU NETLIFY */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #111827;
  line-height: 1.6;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Menú Hamburguesa - IGUAL QUE NETLIFY */
.menu-toggle-with-text {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background: #1e40af;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle-with-text:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .menu-toggle-with-text {
    flex-direction: column;
    padding: 5px 10px;
    gap: -3px;
    border-radius: 12px;
    top: 16px;
    left: 8px;
    min-width: 42px;
  }
  
  .menu-toggle-with-text span:first-child {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 0.8 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: -4px !important;
    padding: 0 1px !important;
  }
  
  .menu-toggle-with-text span:last-child {
    font-size: 0.95rem !important;
    line-height: 0.9 !important;
    margin-top: -2px !important;
  }
}

/* Sidebar Menú - IGUAL QUE NETLIFY */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
  z-index: 1050;
  transition: left 0.3s ease;
  padding-top: 80px;
}

.sidebar-menu.active {
  left: 0;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  padding: 15px 25px;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.sidebar-menu li:hover {
  background: #f3f4f6;
}

.sidebar-menu a {
  text-decoration: none;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-menu a:hover {
  color: #2563eb;
}

.sidebar-menu .menu-icon {
  font-size: 1.8rem;
  width: 30px;
  text-align: center;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header Sticky - IGUAL QUE NETLIFY */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 20px 0;
  margin-bottom: 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.logo-img {
  width: 400px;
  max-width: 90%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 200px;
  }
}

/* Main */
main {
  flex: 1;
  padding: 20px 0 60px;
  margin-top: 20px;
}

main h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #1e40af;
}

main h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #1e40af;
}

/* Grid de Categorías */
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.categoria-card {
  background: white;
  border-radius: 16px;
  padding: 25px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.categoria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  border-color: #cbd5e1;
}

.categoria-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #2563eb;
}

.categoria-card h3 {
  font-size: 1.4rem;
  color: #1e40af;
  margin: 0;
}

/* Grid de Productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.producto-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.producto-imagen {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.producto-imagen img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.imagen-placeholder {
  font-size: 4rem;
  color: #94a3b8;
}

.producto-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.categoria-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.producto-info h3 {
  font-size: 1.4rem;
  color: #1e40af;
  margin-bottom: 10px;
}

.producto-descripcion {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.producto-precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e40af;
}

.stock-disponible {
  color: #10b981;
  font-size: 0.9rem;
  font-weight: 600;
}

.stock-agotado {
  color: #ef4444;
  font-size: 0.9rem;
  font-weight: 600;
}

.producto-actions {
  display: flex;
  gap: 12px;
}

.btn-cotizar {
  display: inline-block;
  background: #2563eb;
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.btn-cotizar:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-block;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background: #20bb59;
  transform: translateY(-2px);
}

.btn-whatsapp-large {
  display: inline-block;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large:hover {
  background: #20bb59;
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Botones Flotantes - IGUAL QUE NETLIFY */
.floating-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.whatsapp-btn {
  background-color: #25d366;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

/* Footer - IGUAL QUE NETLIFY */
footer {
  background-color: #111827;
  color: #e5e7eb;
  text-align: center;
  padding: 25px 0;
  margin-top: auto;
}

footer p {
  margin: 6px 0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  main h1 {
    font-size: 1.8rem;
  }
  
  main h2 {
    font-size: 1.6rem;
  }
  
  .producto-imagen {
    height: 180px;
  }
  
  .btn-whatsapp-large {
    font-size: 1.1rem;
    padding: 14px 24px;
  }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}