/* ---------- ESTILO BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: #f6f6f6;
  color: #333;
  line-height: 1.6;
}

/* ---------- ENCABEZADO ---------- */
header {
  background: linear-gradient(to right, #f3f3f3, #ffffff);
  text-align: center;
  padding: 4rem 1rem;
  border-bottom: 1px solid #ccc;
}

header h1 {
  font-size: 2.8rem;
  color: #222;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #666;
}

/* ---------- MENÚ ---------- */
nav {
  background-color: #fff;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #0078d7;
}

/* ---------- SECCIONES ---------- */
.brand-section {
  padding: 3rem 1rem;
  text-align: center;
  background-color: #f9f9f9;
}

.brand-section:nth-child(even) {
  background-color: #fff;
}

.brand-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ---------- TARJETAS ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

.product-card p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

/* ---------- PIE ---------- */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  opacity: 0;
  transition: opacity 1s ease;
}

footer.visible {
  opacity: 1;
}

/* ---------- ANIMACIONES ---------- */
.fade-in, .slide-up, .fade-in-delay {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.fade-in.visible, .slide-up.visible, .fade-in-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  transition-delay: 0.3s;
}
