.hero {
  background: url('/wp-content/themes/bioingentechtheme/assets/images/ccplab5.webp') center/cover no-repeat;
  height: 85vh;
  position: relative;
  display: flex;
  align-items: stretch; /* o quítalo; no lo necesitamos centrado aquí */
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 3, 51, 0.88) 1%, rgba(128, 108, 254, 0.633) 90%);
  display: flex;
  align-items: flex-end;                      /* ↓ baja el bloque */
  padding: 0 5rem 3rem 5rem; /* top right bottom left */
}

.hero-content {
  max-width: 1200px;
  margin: 0;                   /* quita el margin-top que lo empujaba raro */            /* mantén un poco de aire interno si quieres */
  text-align: left;
}

.hero-content h1 {
  font-size: 3rem; /* ajusta el tamaño a tu diseño */
  font-weight: 500;
  color: #fff; /* color base del texto */
}

.hero-content strong, .hero-content b {
  color: white!important; /* o el color que quieras */
  font-weight: 700; /* mantiene el bold */
}



.hero-content p {
  font-size: 25px;
  margin-top: 1rem;
  margin-bottom:0;
  color: white;
}

.hero-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.8rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-button:hover {
  background: white;
  color: #001b3a;
}

/* =========================================================
   HERO — TABLET (<= 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .hero {
    height: 75vh;
    background-position: center top;
  }

  .hero-overlay {
    padding: 0 3rem 2.5rem;
  }

  .hero-content {
    max-width: 800px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 20px;
    margin-top: 0.75rem;
  }

  .hero-button {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 15px;
  }
}

/* =========================================================
   HERO — MOBILE / iPhone (<= 767px)
   ========================================================= */
@media (max-width: 767.98px) {
  /* Ajuste de fondo y altura */
  .hero {
    height: 70svh; /* altura segura en iPhone */
    min-height: 480px;
    background-position: center center;
    background-size: cover;
    align-items: flex-end; /* alinea el contenido abajo */
  }

  .hero-overlay {
    padding: 0 1.25rem 2rem;
    background: linear-gradient(
      to bottom,
      rgba(11, 3, 51, 0.9) 15%,
      rgba(98, 101, 254, 0.75) 100%
    );
    align-items: flex-end;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: #f5f6ff;
  }

  .hero-button {
    width: 100%;
    max-width: 320px;
    display: inline-block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 15px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
  }
}

/* =========================================================
   HERO — EXTRA COMPACT (<= 360px)
   ========================================================= */
@media (max-width: 360px) {
  .hero {
    height: 65svh;
    min-height: 400px;
  }

  .hero-overlay {
    padding: 0 1rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-button {
    font-size: 14px;
    padding: 0.6rem 1rem;
  }
}

/* =========================================================
   HERO — ACCESIBILIDAD Y SUAVIDAD
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-button {
    transition: none !important;
  }
}
