@media (min-width: 576px) {
  #hero .btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
  }
  #hero .btn + .btn {
    margin-top: 0 !important;
    margin-left: 0.5rem !important;
  }
}
@media (min-width: 576px) {
  #hero .btn + .btn {
    margin-top: 0 !important;
    margin-left: 0.5rem !important;
  }
}
  /* Reducir espacio debajo de #hero en mobile */
  #hero {
    padding-bottom: 1.2rem !important;
  }
  /* Más espacio debajo del último botón del hero en mobile */
  #hero .btn:last-of-type {
    margin-bottom: 1.2rem;
  }
/* =========================
   Colores corporativos
   ========================= */
:root {
  --color-principal: #2e3b6a;
  --color-acento: #38c4e4;
  --color-fondo: #f3f4f8; 
  --color-texto: #333;
  --color-fondo-card: #f6f6f6;
}
/* =========================
   Utilidades generales
   ========================= */
.titulo-azul {
  color: #0D2B7A !important;
}

/* =========================
   Reset básico
   ========================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-texto);
  background-color: #fff;
  line-height: 1.6;
}

/* =========================
   Header y Footer
   ========================= */
.main-header {
  background-color: var(--color-principal);
}
.main-header h1 {
  font-size: 1.55rem; /* ligeramente mayor para más presencia */
  line-height: 1.12;
}
.main-header p.lead {
  font-size: 1rem;
}

/* Ajustes responsive: mantener legibilidad en pantallas pequeñas */
@media (max-width: 575.98px) {
  .main-header h1 {
    font-size: 1.15rem;
  }
  .main-header p.lead {
    font-size: 0.9rem;
  }
  /* Header vertical on small screens to avoid text overflow */
  .main-header .container {
    flex-direction: column !important;
    align-items: center !important;
  }
  .main-header .text-end {
    text-align: center !important;
    margin-top: 0.5rem;
  }
  .main-header img {
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }
  /* Logo más pequeño en móviles */
  .main-header img {
    height: 48px !important;
  }
  /* Alinear botones en el hero para mobile */
  #hero .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  #hero .btn + .btn {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
}
.main-footer {
  background-color: var(--color-principal);
  font-size: 0.9rem;
}
.main-footer a {
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
.main-footer a:hover {
  color: var(--color-acento);
  text-decoration: underline;
}

/* =========================
   Botones
   ========================= */
.btn-custom {
  background-color: var(--color-acento);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}
.btn-custom:hover {
  background-color: #2aa9c9;
  transform: translateY(-2px);
}

.btn-outline-custom {
  border: 2px solid var(--color-acento);
  color: var(--color-principal);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}
.btn-outline-custom:hover {
  background-color: var(--color-acento);
  color: #fff;
}

/* =========================
   Secciones generales
   ========================= */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
section h2 {
  color: var(--color-principal);
}
.bg-light {
  background-color: var(--color-fondo) !important;
}

/* =========================
   Hero
   ========================= */

.bg-gris-intermedio {
  background-color: #f3f4f8 !important;
}

   #hero h1 {
  font-size: 2.2rem;
}
#hero p.lead {
  font-size: 1.2rem;
}
.hero-img-rect {
  width: 100%;
  height: 320px;         /* Ajusta la altura a tu gusto */
  object-fit: cover;     /* Mantiene la imagen recortada y sin deformar */
  border-radius: 12px;   /* Opcional: bordes redondeados */
}

.hero-full {
  position: relative;
  /*width: 100vw;*/
  height: 500px; /* Ajusta aquí la altura a tu gusto */
  /*min-height: 220px;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;*/
  
  background-image: url('img/hand-using-laptop-computer-with-virtual-screen-document-online-approve-paperless-quality-assurance-erp-management-concept.jpg');
  background-size: 50%; /* O prueba con 'cover' */
  background-repeat: no-repeat;
  background-position: center bottom; /* O prueba con 'center center', 'center top', etc. */
}

.hero-bg-img {
  position: absolute;
  top: 0; left: 0;
  /*width: 100vw;*/
  height: 100%;
  object-fit: cover;
  object-position: center center; /* O prueba con 'center center', 'center bottom', etc. */
  z-index: 1;
  display: none; /* Oculta el <img> si usas fondo */
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.15); /* Fondo negro semitransparente */
  border-radius: 16px;
}

/* =========================
   Beneficios
   ========================= */
#beneficios ul li {
  font-size: 1rem;
  align-items: center;
}
#beneficios span.text-primary {
  font-size: 1.2rem;
  color: var(--color-acento) !important;
}

/* =========================
   Características (cards)
   ========================= */
#caracteristicas .card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#caracteristicas .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
#caracteristicas .card div {
  font-size: 2rem; /* tamaño de icono */
}
/* Fondo gris claro para las cards de características */
.bg-card-light {
  background-color: #f8f9fa !important;
}

/* =========================
   Casos de éxito
   ========================= */
#casos-exito .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
#casos-exito .card p {
  font-style: italic;
}

/* =========================
   Contacto
   ========================= */
#contacto .card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
#contacto h2 {
  color: var(--color-principal);
}

/* Asterisco rojo en labels de campos obligatorios */
.form-label.required::after,
.form-check-label.required::after {
  content: " *";
  color: #dc3545; /* bootstrap danger red */
  margin-left: 0.25rem;
  font-weight: 700;
}
