body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background: #005bac;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 0;
}

nav a.active {
  border-bottom: 3px solid #ffe600;
}

/* Sección de catálogo */
.catalogo-section {
  padding: 60px 20px;
  background-color: #fff;
}

.catalogo-section h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #004085;
  margin-bottom: 20px;
}

.catalogo-section p.descripcion {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.linea {
  margin-bottom: 60px;
}

.linea h2 {
  font-size: 2rem;
  color: #005bac;
  border-left: 6px solid #005bac;
  padding-left: 12px;
  margin-bottom: 20px;
}

.subcategoria {
  margin-bottom: 30px;
}

.subcategoria h3 {
  font-size: 1.5rem;
  color: #2980b9;
  margin-bottom: 10px;
  border-bottom: 2px solid #2980b9;
  padding-bottom: 5px;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.producto {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.producto img {
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 12px; /* esquinas redondeadas */
}

.producto h4 {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.catalogo-general {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.lineas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.linea-catalogo {
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.linea-catalogo:hover {
  transform: translateY(-5px);
}

.linea-catalogo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.linea-catalogo h3 {
  margin: 0;
  padding: 20px;
  font-size: 1.3rem;
  background-color: #005bac;
  color: white;
}

.volver-productos {
  text-align: center;
  margin-top: 60px;
}

.btn-volver {
  display: inline-block;
  background-color: #005bac;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #004080;
}

/* Ajustes responsive extra */
@media (max-width: 768px) {
  .catalogo-section h1 {
    font-size: 2rem;
  }

  .catalogo-section p.descripcion {
    font-size: 1rem;
    padding: 0 10px;
  }

  .linea h2 {
    font-size: 1.5rem;
  }

  .subcategoria h3 {
    font-size: 1.2rem;
  }

  .producto img {
    height: 120px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .producto img {
    height: 100px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
