@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Importar archivos base */
@import url('variables.css');
@import url('common.css');

/* HEADER - Estilos importados desde common.css */


/* HERO SECTION */
.catalog-hero {
  background: #ffffff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%232563eb" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.6;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-shadow: 0 6px 12px rgba(37, 99, 235, 0.5), 0 2px 4px rgba(37, 99, 235, 0.3);
  letter-spacing: -2px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.5;
  font-weight: 400;
}
}

/* CATALOG SECTION */
.catalog-section {
  padding: 80px 40px;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  text-align: center;
  margin-top: 80px;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 100px 40px;
}

/* TARJETAS DE PRODUCTO - Sobrescribir estilos del index */
.catalogo-grid .product-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border: 1px solid #e9ecef;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: none !important;
  min-width: auto !important;
  width: 100% !important;
}

.catalogo-grid .product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.catalogo-grid .product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.catalogo-grid .product-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.model {
  font-weight: 500;
  margin: 8px 0;
  color: var(--text-light);
  font-size: 14px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* AVAILABILITY */
.availability {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 15px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
}

.availability.in-stock {
  background-color: #dcfce7;
  color: #166534;
}

.availability.out-of-stock {
  background-color: #fef2f2;
  color: #dc2626;
  text-decoration: line-through;
}

/* BOTÓN DE VER DETALLES */
.ver-detalles {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px 0;
}

.ver-detalles:hover {
  color: var(--blue-light);
  transform: translateX(4px);
}

/* FOOTER */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 40px 0;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.company-name h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: 1px;
}

.copyright p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.contact-email p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.developer-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.developer-link a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .catalogo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 30px 100px 30px;
  }
}

@media (max-width: 900px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 25px 100px 25px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .catalog-hero {
    padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .catalogo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px 80px 20px;
  }
  
  .catalog-section {
    padding: 60px 20px;
  }
  
  .top-header {
    padding: 15px 20px;
  }
  
  .navigation a {
    margin: 0 10px;
    font-size: 14px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .product-card {
    padding: 20px;
  }
  
  .product-card h3 {
    font-size: 18px;
  }
  
  .price {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .catalogo-grid {
    padding: 0 15px 60px 15px;
    gap: 20px;
  }
  
  .catalog-section {
    padding: 40px 15px;
  }
  
  .product-card {
    padding: 15px;
  }
  
  .product-card h3 {
    font-size: 16px;
  }
  
  .price {
    font-size: 18px;
  }
  
  .footer {
    padding: 25px 0;
  }
  
  .company-name h3 {
    font-size: 20px;
  }
  
  .copyright p,
  .contact-email p,
  .developer-link a {
    font-size: 12px;
  }
}