/* =========================
   HERO CENTRADO PERFECTO
========================= */

.hero-personal {
  position: relative;
  max-height: 40vh;
  background: url('../img/trabaja_con_nosotros.webp') center / cover no-repeat;

  /* 🔑 CLAVE DEL CENTRADO */
  display: flex;
  align-items: center;     /* CENTRO VERTICAL */
  justify-content: center; /* CENTRO HORIZONTAL */
}

/* Overlay */
.hero-personal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}



@media (max-width: 768px) {
  .hero-personal {
    max-height: 32vh;
    padding-top: 150px; /* navbar */
  }

  .hero-personal h1 {
    font-size: 1.9rem;
  }

  .hero-personal p {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Texto largo optimizado mobile */
@media (max-width: 576px) {
  .text-accent + p,
  section p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left !important;
  }
}

/* Formulario responsive */
@media (max-width: 576px) {
  .card-body {
    padding: 1.25rem !important;
  }

  form.p-4 {
    padding: 1.25rem !important;
  }

  .form-control,
  .btn {
    font-size: 1rem;
    padding: 12px;
  }
}

.social-icon {
  width: 44px;
  height: auto;
}

@media (max-width: 576px) {
  .social-icon {
    width: 36px;
  }
}


@media (max-width: 576px) {
  section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  h2 {
    font-size: 1.5rem;
  }
}


