.banner-section-index {
  height: 528px;
}
.titulo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 80px;       /* padding lateral */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
    height: 100%;
    gap: 12px;             /* separación natural entre títulos y barra */
  }
  
  .titulo-container .titulo-principal {
    font-size: 48px;
    margin-top: 96px;      /* distancia desde el navbar */
    margin-bottom: 0;
    font-weight: 700;
  }
  
  .titulo-container .subtitulo-principal {
    font-size: 32px;
    margin: 0;
  }
  
  /* ================== BARRA DE BUSQUEDA ================== */
  .busqueda-form-index {
    display: flex;
    width: 100%;
    max-width: 1062px;
    height: 52px;
    gap: 12px;
  margin: 0 auto;
  margin-top: auto;       /* empuja la barra hacia abajo */
  margin-bottom: 24px;    /* separación desde el borde inferior de la imagen */
  
  }
  
  .input-group-index {
    display: flex;
    align-items: center;
    flex: 1;             
    height: 52px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .input-group-text-index {
    background: transparent;
    border: none;
    margin: 0 10px;
  }
  
  .form-control-index {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    -webkit-appearance: none; /* quita estilos por defecto de iOS */
    -moz-appearance: none;
    appearance: none;
    background-color: #fff; /* forzar fondo blanco */
  }
  
  .buscar-btn-index {
    width: 102px;
    height: 52px;
    margin-left: 12px;
    border: none;
    border-radius: 4px;
    background-color: #014375;
    color: #fff;
    font-weight: 600;
  }
  
  .buscar-btn-index:hover {
    background-color: #0260a1;
  }
  
/* Quitar límite de ancho de Bootstrap en pantallas grandes */
@media (min-width: 1400px) {
  .container {
    max-width: 100%;
  }
}




  @media (max-width: 767px) {
    html, body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }
    .banner-section-index {
      height: auto; /* quita los 528px */
  }
    .image-container_index {
      position: relative;
      width: 100%;
      height: 323px !important; 
      overflow: hidden;
    }
  
    .image-container_index .img-index {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  
    .titulo-container {
      position: absolute;
      top: 50%;                    /* centrado vertical */
      left: 0;
      width: 100%;
      height: 243px;               /* altura según prototipo */
      padding: 8px 16px;           /* paddings laterales */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;     /* títulos alineados a la izquierda */
      gap: 12px;
      color: white;
      box-sizing: border-box;
      transform: translateY(-50%); /* ajusta para centrar verticalmente */
    }
  
    .titulo-container .titulo-principal {
      font-size: 24px;
      font-weight: 700;
      margin: 0;
    }
  
    .titulo-container .subtitulo-principal {
      font-size: 16px;
      margin: 0;
    }
  
    .busqueda-form-index {
      display: flex;
      flex-direction: column;    /* input arriba, botón abajo */
      width: 100%;
      height: 96px;
      justify-content: center;      /* centra verticalmente input y botón */
      align-items: stretch;  /* asegura que input y botón ocupen todo el ancho */
      margin-bottom: 0 !important;
    }
  
    .input-group-index {
      width: 100%;
      height: 40px;              /* altura según prototipo */
      display: flex;
      align-items: center;
      
      border-radius: 8px;          /* bordes más pronunciados */
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      
    }
  
    .input-group-text-index {
      background: transparent;
      border: none;
      margin: 0 10px;
    }
  
    .form-control-index {
      flex: 1;
      height: 100%;
      border: none;
      outline: none;
      font-size: 14px;
      padding: 0 8px;
      border-radius: 8px;            /* bordes internos más suaves */
    }
  
    .buscar-btn-index {
      width: 100%;
      height: 40px;              /* altura según prototipo */
      border: none;
      border-radius: 8px;           /* bordes más pronunciados */
      
      background-color: #014375;
      color: #fff;
      font-weight: 600;
      margin: 0;
    }
  
    .buscar-btn-index:hover {
      background-color: #0260a1;
    }
  }
  
  
  