/* ================================
   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.4;
  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;
}

/* =================
   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;
  }

}