/* HERO */

.hero-novedades {
  position: relative;
  height: 55vh;
  min-height: 420px;
  overflow: hidden;
}

.hero-novedades .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.55)
    );

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 850px;
  color: white;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
}


/* INTRO */

.intro-novedades {
  background: #fff;
}

.intro-novedades .lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #555;
}


/* GRID */

.novedades-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 2rem;
}


/* CARD */

.novedad-card {
  background: white;

  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

  display: flex;
  flex-direction: column;

  height: 100%;
}

.novedad-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.12);
}

.novedad-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.novedad-content {
  padding: 1.5rem;

  display: flex;
  flex-direction: column;

  flex-grow: 1;
}

.novedad-content h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.novedad-content p {
  color: #666;
  line-height: 1.7;

  flex-grow: 1;
}

.novedad-content .botonx {
  margin-top: 1.5rem;
  align-self: flex-start;
}


/* CTA */

.cta-section {
  background: #111;
  color: white;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}


/* MOBILE */

@media (max-width: 768px) {

  .hero-novedades {
    height: 45vh;
    min-height: 340px;
  }

  .novedad-img {
    height: 220px;
  }

}