/* ================================
   Banner principal con texto encima
   ================================*/
.banner-area {
  position: relative;
  background-size: cover;
  height: 725px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.banner-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

/* 🎯 Imágenes específicas */
.banner-tesis {
  position: relative;
  background-size: cover;
  background-position: center 50%;
}

.banner-content {
  position: absolute;
  /* se posiciona respecto al banner */
  top: 55%;
  /* lo centra verticalmente */
  left: 200px;
  /* separación desde el borde izquierdo */
  transform: translateY(-50%);
  /* centra verticalmente */
  z-index: 2;
}

.titulo-normal {
  font-size: 70px;
  font-weight: bold;
  line-height: 1.2;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.65);
}

.br-mobile {
  display: inline;
}

.mobile-text {
  display: none;
}

.banner-img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center 0%;
}

/* 🔧 Adaptación del banner para móviles */
@media (max-width: 768px) {
  .banner-area {
    background-size: cover;
    height: 342px;
    top: 35px;
  }

  .banner-area.banner-servicios {
    background-position: left 0%;
    /* o el % que necesites */
  }

  .titulo-normal {
    font-size: 28px;
    line-height: 1.3;
  }

  .banner-content {
    position: absolute;
    top: 50%;
    /* centro vertical */
    left: 50%;
    /* centro horizontal */
    transform: translate(-50%, -50%);
    width: 90%;
    /* margen lateral automático */
    text-align: center;
    /* centrado */
    padding: 0 10px;
    /* respiro lateral */
    z-index: 2;
  }

  .banner-img {
    width: 120%;
    height: auto;
  }

  .br-mobile {
    display: none;
  }

  .pc-text {
    display: none;
  }

  .mobile-text {
    display: block;
  }
}

/* ===========
   MIGA DE PAN
   =========== */
.breadcrumb-nav {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.breadcrumb-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
  /* o 'center' si quieres centrar */
  margin-left: -20px;
}

.custom-breadcrumb {
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

.breadcrumb-item a.breadcrumb-link {
  color: #3D3D3F;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a.breadcrumb-link:hover {
  color: #1D2D8C;
}

.breadcrumb-item.active {
  color: #1D2D8C !important;
  font-weight: 500;
  /* Opcional para que resalte un poco */
}

.breadcrumb-nav .breadcrumb {
  background: #ffffff;
}

/* =================
   MIGA DE PAN MOVIL
   ================= */
@media (max-width: 768px) {
  .breadcrumb-wrapper {
    margin-left: 0;
    margin-top: 30px;
    margin-left: -6px;
  }

  .custom-breadcrumb {
    padding: 0.5rem;
    font-size: 14px;
    margin-bottom: -3px;
  }

  .breadcrumb-item a.breadcrumb-link,
  .breadcrumb-item.active {
    font-size: 14px;
  }
}

/* Estilos personalizados para el menú vertical de tabs */
.custom-tabs-nav {
  background-color: gray;
  border-radius: 10px;
  margin-left: 10px;
  margin-right: -80px;
}

/* Estilos para las imágenes dentro de los tabs */
.tab-img-style {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* Estilos para LOS 4 COUNTER START */
.fact-label {
  font-size: 18px !important;
}

.row-1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-lg-9 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-top: 0px;
  margin-top: -60px;
}

ul {
  margin-top: 0;
  margin-bottom: -30px;
}

/* FLECHA */
#back-to-top .btn.btn-primary:hover {
  background: #334F96;
}

#back-to-top .btn.btn-primary {
  border-radius: 100%;
  padding: 0px;
  font-size: 18px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  color: #fff;
  opacity: 0.5;
}

/* =========================================================
   LEAD FORM – Compact V2 (Banner / Móvil)  —  pegar tal cual
   ========================================================= */

/* Panel del formulario */
.lead-form-wrapper {
  /* reset tipografía dentro del panel */
  font-size: 16px !important;
  line-height: 1.25 !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  padding: 20px 20px !important;
  /* menos aire interno */
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgb(255, 255, 255);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(13, 24, 72, 0.18);
  max-width: 600px;
  box-sizing: border-box;
}

/* Debajo del título del banner */
.banner-content .lead-form-wrapper {
  margin-top: -20px !important;
  /* pegado al título */
  margin-left: 0;
}

/* Un solo gap gobierna TODAS las separaciones internas */
.lead-form {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px !important;
  /* cambia a 12px si lo quieres más suelto */
  margin: 0 !important;
  padding: 0 !important;
}

/* Bloque de 2 columnas */
.lead-form .lf-2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
}

/* Quitar márgenes que inflan */
.lead-form .lf-row,
.lead-form .lf-input,
.lead-form .lf-textarea,
.lead-form .lf-btn,
.lead-form button {
  margin: 0 !important;
  box-sizing: border-box;
}

/* Inputs (altura fija y tamaño normal) */
.lead-form .lf-input {
  width: 100%;
  height: 46px !important;
  /* altura consistente */
  padding: 12px 14px !important;
  border-radius: 12px;
  border: 1px solid rgba(29, 45, 140, 0.15);
  background: rgb(233 233 233 / 92%);
  font-size: 16px !important;
  /* evita herencia gigante */
  line-height: 1.25 !important;
  outline: none;
  transition: box-shadow .2s, border-color .2s, background .2s;
}

.lead-form .lf-input::placeholder {
  font-size: 16px !important;
  color: rgba(0, 0, 0, .55);
}

.lead-form .lf-input:focus {
  border-color: #1D2D8C;
  box-shadow: 0 0 0 4px rgba(29, 45, 140, .08);
  background: #fff;
}

/* Textarea (sin altura gigantesca) */
.lead-form .lf-textarea {
  height: auto !important;
  /* no forzar altura de input */
  min-height: 110px !important;
  resize: vertical;
}

/* Botón (rige el gap, sin márgenes extra) */
.lead-form .lf-btn {
  width: 100%;
  padding: 12px 16px !important;
  border: none;
  border-radius: 12px;
  background: #1D2D8C;
  color: #fff;
  font-weight: 700;
  font-size: 16px !important;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .2s ease, transform .05s ease, box-shadow .2s ease;
}

.lead-form .lf-btn:hover {
  background: #334F96;
}

.lead-form .lf-btn:active {
  transform: translateY(1px);
}

/* Visibilidad por dispositivo (si usas también la versión móvil bajo breadcrumb) */
.lead-form--desktop {
  display: block;
}

.lead-form-container-mobile,
.lead-form--mobile {
  display: none;
}

/* Título dentro del formulario */
.lf-title {
  margin: 0 !important;
  padding: 4px 2px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  color: #000000;
  /* texto blanco */
  text-shadow: 0 1px 2px rgba(105, 105, 105, 0.25);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .lf-title {
    font-size: 15.5px;
    padding: 9px 10px;
  }
}

/* ====== Mobile ====== */
@media (max-width: 768px) {

  /* Ocultar form del banner y mostrar el de móvil */
  .lead-form--desktop {
    display: none;
  }

  .lead-form-container-mobile,
  .lead-form--mobile {
    display: block;
  }

  /* separación bajo breadcrumb */
  .lead-form-container-mobile {
    margin-top: 15px;
    margin-bottom: 20px;
  }

  /* inputs en una sola columna */
  .lf-2col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Ajuste de fondo más sólido para legibilidad en móvil */
  .lead-form-wrapper {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 18px rgba(13, 24, 72, 0.12);
    padding: 16px;
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* =================
   TAB + CONTENIDO
   ================= */
@media (max-width: 768px) {
  .custom-tabs-nav {
    background-color: gray;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .col-lg-9 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-top: -40px;
  }

  .heading {
    padding-bottom: 5px;
    margin-top: 10px;
    transition: all 0.3s ease;
  }

  ul {
    margin-top: 0;
    margin-bottom: -30px;
  }

  .tab-img-style {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: -50px;
  }

}