@import url("inicio.css");


/* ===== PRODUCTOS ===== */
.productos {
  text-align: center;
  padding: 4rem 2rem;
  background: #fafafa;
}

.productos h2 {
  font-size: 1.1rem;
  color: #e63946;
  margin-bottom: .5rem;
}

.productos h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

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

/* ==== Tarjetas ==== */
.producto-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden; /* evita bordes blancos al redondear */
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ==== Imagen ==== */
.producto-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3; /* mantiene proporción bonita sin cortar raro */
  object-fit: cover;
  display: block;
}

/* ==== Contenido ==== */
.producto-card h4,
.producto-card p {
  padding: 0 1rem 1rem;
  text-align: left;
}

.producto-card h4 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.2rem;
  color: #333;
}

.producto-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ===== BANNER ===== */
.banner {
  position: relative;
  margin: 3rem 0;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(85%);
}

.banner-text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  width: 90%;
  max-width: 600px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.6);
}

.banner-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.banner-text p {
  font-size: 1.3rem;
  font-weight: 400;
}