/* Bloque hero general */
.hero {
  background: linear-gradient(135deg, #f5f5f5, #eaeaea);
  padding: 40px 20px;

  max-width: 1000px;
  margin: 40px auto;
  background-color: #f0f0f0;

}

/* Contenido interno: texto + imagen */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 350px; /* altura mínima de la sección */
}

/* Texto */
.hero-text {
  flex: 1;
  max-width: 400px;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.hero-text h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555;
}

/* Imagen */
.hero-image {
  height: 100%;          /* ocupa toda la altura del contenedor */
  max-height: 350px;     /* límite para no desbordar */
  width: auto;           /* mantiene proporción */

  object-fit: contain;   /* ajusta la imagen dentro del espacio */
}

/* 📱 Responsive para móviles */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 0; /* elimina espacio vertical entre elementos */
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero-text h1 {
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .hero-text h3 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
  }

  .hero-image {
    max-width: 80%;
    height: auto;
    margin-top: 0;
    display: block;
  }
}



