* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  position: relative;
  min-height: 300px; /* antes 450px */
  overflow: visible;
}

.hero-container img {
  width: 100%;
  height: auto; /* en vez de height: 100% */
  object-fit: contain; /* la imagen se verá completa sin recortarse */
}

.hero-container {
  position: relative;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(122, 122, 122, 0.26);
  z-index: 1;
}

.hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: white;
  flex-direction: row;
  gap: 10px;
}

.hero-text .titulo {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  flex: 1;
  text-align: right;
}

.hero-text .info {
  text-align: left;
  padding-left: 40px;
  flex: 2;
}

/* obliga fondo blanco + texto oscuro a tus cards */
.row .card.h-100.shadow-sm {
  background-color: #ffffff !important;
  color: #111111 !important;
}

.row .card.h-100.shadow-sm .card-title,
.row .card.h-100.shadow-sm .card-text {
  color: inherit !important;
}


@media (min-width: 769px) {
  .hero-overlay::before {
    clip-path: polygon(100% 100%, 100% 70%, 0 100%);
  }
}

@media (max-width: 768px) {

  .hero {
    position: relative;
    height: 100vh;
    max-height: 600px;
    overflow: hidden;
  }

  .hero-container {
    height: 100%;
  }

  .hero-container img {
    height: 100%;
    object-fit: cover;
  }

  .hero-overlay {
    height: 50%;
  }

  .hero-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    padding: 0;
    color: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: none;
  }

  .hero-text .titulo {
    font-size: 50px;
    margin: 0;
    padding: 0;
  }

  .hero-text .info {
    padding-left: 0;
    text-align: left;
  }

  .hero-overlay::before {
    display: none;
  }
}

.titulo {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Segoe UI', sans-serif;
}

@media (max-width: 600px) {
   .hero-container h1 {
    font-size: 32px;
    right: 20px;
    bottom: 10px;
  }
}

/* Tarjetas de temarios */
.card {
  background-color: #fff;  /* Fondo blanco */
  color: #111;             /* Texto oscuro */
}

.card .card-title {
  color: #111;
  font-weight: bold;
}

.card .card-text {
  color: #333;
}
