/* ================================
   HERO SECTION BASE
================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 400px;
  background-image: url('../imagen/1115-fondo-concreto.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5vw;
}

/* Imagen central (diploma) */
.hero-image {
  position: absolute;
  top: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  margin: auto;
  z-index: 0;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.hero-image:hover {
  filter: grayscale(0%);
}

/* Logo y texto */
.logo-container {
  position: absolute;
  top: 10px;
  right: 50px;
  text-align: right;
  color: #fff;
  z-index: 2;
}
.logo-container img {
  max-width: 180px;
  height: auto;
  margin-bottom: 10px;
}
.hero-section .logo-container h4 {
  margin: 5px 0 !important;
  font-size: 16px !important;
  color: #fff !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
}

/* ================================
   MEDIA QUERIES (Responsividad)
================================ */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .hero-section {
    height: 80vh;
    padding-right: 3vw;
  }

  .hero-image {
    width: 90%;
    height: auto;
    top: 15%;
  }

  .logo-container {
    top: 20px;
    right: 30px;
  }

  .logo-container img {
    max-width: 140px;
  }

  .hero-section .logo-container h4 {
    font-size: 14px !important;
  }
}

/* Móviles (pantallas pequeñas) */
@media (max-width: 600px) {
  .hero-section {
    height: 70vh;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
  }

  .hero-image {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 40px;
    opacity: 0.7; /* para mejorar legibilidad del texto */
  }

  .logo-container {
    position: relative;
    top: 0;
    right: 0;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
  }

  .logo-container img {
    max-width: 120px;
    margin-bottom: 8px;
  }

  .hero-section .logo-container h4 {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
}
