/* Utility: Remove horizontal margins at >=1280px */
@media (min-width: 1280px) {
  .mx-1280-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/*------------Sección de carrusel con video--------------------*/
#heroCarousel {
  width: 100%;
}

.sub {
  font-family: 'Roboto-Black';
  color: var(--azul-fuerte);
}

/* Flechas siempre visibles */
.carousel-control-prev,
.carousel-control-next {
  width: 6%;
  opacity: 1;
}

/* Indicadores visibles */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, .85);
}

/* Slide clickeable */
.slide-link {
  display: block;
  width: 100%;
}

/* Video */
.hero-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  /* deja pasar el click al <a> */
}

/* Desktop / Mobile */
.desktop-video {
  display: block;
}

.mobile-video {
  display: none;
}

@media (max-width: 767px) {
  .desktop-video {
    display: none;
  }

  .mobile-video {
    display: block;
  }
}

/* Altura inicial mínima para que Bootstrap renderice */
.carousel-item {
  min-height: 200px;
}

/* En desktop puedes subirla si quieres */
@media (min-width: 768px) {
  .carousel-item {
    min-height: 320px;
  }
}

/*/ infinito */

.seccion-productos {
  max-width: 1355px;
  margin: 7rem auto 0;
  padding: 0 1rem;
}

.carrusel-infinito {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 42, 86, 0.06) 0%, rgba(202, 184, 129, 0.16) 50%, rgba(0, 42, 86, 0.06) 100%);
}

.carrusel-infinito::before,
.carrusel-infinito::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 1;
  pointer-events: none;
}

.carrusel-infinito::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.carrusel-infinito::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.carrusel-track {
  display: flex;
  width: max-content;
  animation: carruselMarcas 22s linear infinite;
}

.carrusel-infinito:hover .carrusel-track {
  animation-play-state: paused;
}

.carrusel-grupo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
}

.carrusel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 132px;
  height: 72px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 42, 86, 0.08);
  box-shadow: 0 10px 24px rgba(0, 42, 86, 0.08);
}

.carrusel-autocad-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes carruselMarcas {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767.98px) {
  .seccion-productos {
    margin-top: 5rem;
  }

  .carrusel-infinito::before,
  .carrusel-infinito::after {
    width: 36px;
  }

  .carrusel-track {
    animation-duration: 18s;
  }

  .carrusel-grupo {
    gap: 0.75rem;
    padding-right: 0.75rem;
  }

  .carrusel-item {
    width: 108px;
    height: 56px;
    padding: 0.5rem 0.85rem;
  }
}

/*/ Contadores */

.contadores {
  max-width: 1355px;
  margin: 7rem auto 9rem;
  padding: 1.5rem 1rem 0.5rem;
}

.contadores-texto h6 {
  font-family: "Roboto-Bold";
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--azul-fuerte);
}

.contadores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.contador-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 1.35rem 1.1rem;
  text-align: center;
  border-radius: 1.2rem;
  background: var(--azul-fuerte);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 30px rgba(0, 26, 54, 0.35);
}

.contador-icono-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(202, 184, 129, 0.28) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(0, 42, 86, 0.12);
}

.contador-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  text-align: center;
  color: var(--azul-fuerte);
  transform: translateY(2px);
}

.contador-icono::before {
  display: block;
  line-height: 1;
}

.contador-numero {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Roboto-Bold";
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.contador-card p {
  margin: 0;
  font-family: "Roboto-Bold";
  font-size: 1rem;
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .contadores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .contadores {
    padding-top: 1rem;
  }

  .contadores-grid {
    grid-template-columns: 1fr;
  }

  .contador-card {
    min-height: 190px;
  }
}



/*------------Sección de agentes -------------*/

.agente-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.agente-card:hover {
  box-shadow: 0 8px 32px rgba(202, 184, 129, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px) scale(1.03);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0.2, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.agente-whatsapp {
  background-image: url("https://res.cloudinary.com/dwvatbtfk/image/upload/v1755457972/backgroundwhatsapp_jtmmny.png");
  background-color: #25d366;
}

.agente-telefono {
  background-image: url("https://res.cloudinary.com/dwvatbtfk/image/upload/v1755457972/Backgroundtelefono_zqw1hf.png");
  background-color: var(--azul-oscuro);
}

.agente-telegram {
  background-image: url("https://res.cloudinary.com/dwvatbtfk/image/upload/v1755457972/Backgroundtelegram_dbwtes.png");
  background-color: var(--azul-botones);
}

.agente-icon {
  width: 90px;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

.agentes-texto {
  font-family: "Roboto-Bold";
  font-size: 2rem;
  color: var(--azul-fuerte);
  margin-top: 3rem;
}

.agentes-subtexto {
  font-family: "Roboto-Regular";
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--azul-bajo);
}

/*/ Mis cursos */

.cursos-texto {
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.cursos-texto h6 {
  font-family: "Roboto-Bold";
  font-size: 2rem;
  color: var(--azul-fuerte);
}

.cursos-texto p {
  font-family: "Roboto-Regular";
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--azul-bajo);
}

.buscador-div {
  margin-top: 1rem;
  position: relative;
}

.buscador-input {
  width: 100%;
  border-radius: 2rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s;
  font-family: "Roboto-Regular";
}

.buscador-input:focus {
  border-color: #007bff;
}

.opcion {
  text-decoration: none;
  margin-right: 2.5rem;
  font-family: "Roboto-Bold";
  color: var(--azul-bajo);
  cursor: pointer;
}

.opcion.activa {
  text-decoration: underline;
  text-underline-offset: 5px;
  color: var(--azul-botones);
}

.cursos-opciones {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.cursos-destacados-titulo {
  font-family: "Roboto-Bold";
  font-size: 1.2rem;
  color: var(--azul-fuerte);
  margin-bottom: 1.2rem;
}

.cursos-destacados-liston {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0.58rem 1.4rem;
  border-radius: 999px;
  text-align: center;
  font-family: "Roboto-Bold";
  font-size: clamp(0.9rem, 1.7vw, 1.3rem);
  letter-spacing: 0.03em;
  color: #2f2208;
  text-transform: uppercase;
  background: linear-gradient(110deg, #b89245 0%, #d8bb72 35%, #f4e4ad 50%, #d8bb72 68%, #b89245 100%);
  border: 1px solid rgba(122, 87, 20, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 248, 222, 0.72), 0 8px 20px rgba(112, 82, 28, 0.28);
}

.featured-course-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.1rem;
  padding: 1.25rem;
  min-height: 390px;
  height: 100%;
  cursor: pointer;
  perspective: 1300px;
  background: var(--featured-overlay, linear-gradient(130deg, rgba(6, 23, 56, 0.56) 0%, rgba(10, 43, 106, 0.46) 55%, rgba(8, 24, 59, 0.56) 100%)),
    var(--featured-bg-image, linear-gradient(180deg, #1b4da4 0%, #113371 100%));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(2, 13, 43, 0.28);
}

.featured-course-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured-course-card.is-flipped .featured-course-flip-inner {
  transform: rotateY(180deg);
}

.featured-course-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.featured-course-face-back {
  transform: rotateY(180deg);
}

.featured-course-back-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-course-back-title {
  margin: 0.2rem 0 0.5rem;
  font-family: "Roboto-Bold";
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.featured-course-back-text {
  margin: 0;
  font-family: "Roboto-Regular";
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.97);
  text-wrap: pretty;
}

.featured-course-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-course-title {
  margin: 0;
  font-family: "Roboto-Bold";
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  min-height: 14rem;
  text-align: center;
  margin-bottom: 0.85rem;

  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.featured-course-subtitle {
  margin-top: 0;
  margin-bottom: 0.65rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Roboto-Bold";
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 15px;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px rgba(4, 14, 40, 0.28);
}

.featured-course-subtitle span {
  display: block;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.featured-course-info {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.featured-course-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0b2c6d;
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  min-height: 2.6rem;
  font-family: "Roboto-Bold";
  font-size: 0.82rem;
}

.featured-course-cta {
  margin-top: auto;
  display: inline-block;
  background: #0d306d;
  border-radius: 0.6rem;
  margin-top: 0.5rem;

  padding: 0.58rem 0.9rem;
}

.featured-course-cta a {
  color: #ffffff;
  text-decoration: none;
  font-family: "Roboto-Bold";
  font-size: 0.88rem;
}

.gold-metal {
  background: linear-gradient(110deg,
      #b89245 0%,
      #d8bb72 35%,
      #f4e4ad 52%,
      #d8bb72 70%,
      #b89245 100%);
}

.cursos-categoria.cursos-categoria-destacado {
  font-size: 1.05rem;
}

.gold-metal .card-title {
  font-size: 1.2rem;

}

.gold-metal .card-text {
  font-size: 1.06rem;
}

.curso-vista {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26rem;
}

.cursos-categoria {
  font-family: "Roboto-Bold";
  font-size: 1rem;
  color: var(--azul-fuerte);
  background: #f1f5fa;
  padding: 0.35rem 1rem 0.35rem 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  z-index: 2;
  position: static;
  text-align: center;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.03);
  display: block;
  padding: 0.8rem;
  margin-bottom: -0.1rem;
}

.card {
  display: flex;
  flex-direction: column;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  flex: 1 1 auto;
  padding-bottom: 1.5rem;
  height: 50%;
  width: 100%;
  position: relative;
}

.curso-boton {
  width: 100%;
  margin-top: auto;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  font-family: "Roboto-Bold";
  font-size: 0.9rem;
  color: #f1f5fa;
  background: var(--azul-fuerte);
  padding: 0.8rem;
}

.curso-boton:hover {
  color: var(--azul-fuerte);
  background: #f1f5fa;
  transition: all 0.3s ease;
}

.card-img-top {
  width: 100%;
  object-fit: cover;
  height: 50%;
}

.card-title {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-family: "Roboto-Bold";
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.card-text {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-family: "Roboto-Bold";
  font-size: 1rem;
  color: var(--azul-fuerte);
}

.curso-destacado-label {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  font-family: "Roboto-Bold";
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: #1d2430;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 13rem;
}

@media (max-width: 1024px) and (max-height: 600px) {
  .curso-vista {
    min-height: 80vh;
  }

  .card-title {
    min-height: 6rem;
  }
}

@media (max-width: 991.98px) {
  .featured-course-card {
    flex-direction: column-reverse;
    text-align: left;
    padding: 1.2rem;
  }

  .featured-course-left,
  .featured-course-right {
    width: 100%;
  }
}

.btn.btn-lg.btn-primary.btn-oferta {
  font-family: "Roboto-Bold";
  background-color: var(--azul-fuerte);
  color: #f1f5fa;
  border: none;
  font-size: 1rem;
  padding: 0.8rem 2.5rem;
}

.btn.btn-lg.btn-primary.btn-oferta:hover {
  color: var(--azul-fuerte);
  background: #f1f5fa;
  transition: all 0.3s ease;
}

/*/ Directivos */

.perfil-shell {
  max-width: 1320px;
  margin: 40px auto;
}

.perfil-hero {
  padding: 40px 6%;
  background: transparent;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 42, 86, 0.14);
}

/* =========================
   CARRUSEL ESPECÍFICO
========================= */
.firmas-carousel {
  position: relative;
  padding: 10px 0 30px;
}

.firmas-carousel .carousel-inner {
  overflow: visible;
  padding: 0 64px;
}

/* Reducir padding lateral del carrusel en móvil */
@media (max-width: 767.98px) {
  .firmas-carousel .carousel-inner {
    padding: 0 16px;
  }
}

@media (width: 1280px) {
  .perfil-shell h6 {
    padding-left: 1.5rem;
  }
}

.firmas-carousel .carousel-item {
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.perfil-slide {
  min-height: 100%;
}

#firmasCarousel .carousel-indicators.firmas-indicators {
  position: static;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 30px;
}

#firmasCarousel .carousel-indicators.firmas-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--azul-fuerte);
  background-color: var(--blanco);
  opacity: 0.7;
  box-shadow: 0 0 0 4px rgba(0, 42, 86, 0.06);
  transition: all 0.3s ease;
}

#firmasCarousel .carousel-indicators.firmas-indicators .active {
  background-color: var(--azul-fuerte);
  border-color: var(--azul-fuerte);
  width: 36px;
  opacity: 1;
  box-shadow: 0 10px 22px rgba(0, 42, 86, 0.18);
}

.firmas-control {
  width: 48px;
  height: 48px;
  padding: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 42, 86, 0.35));
  background: var(--blanco);
  border: 2px solid rgba(0, 42, 86, 0.15);
  border-radius: 50%;
}

.firmas-control.carousel-control-prev {
  left: -38px;
}

.firmas-control.carousel-control-next {
  right: -38px;
}

.firmas-control .carousel-control-prev-icon,
.firmas-control .carousel-control-next-icon {
  background-size: 18px 18px;
  filter: invert(15%) sepia(58%) saturate(1491%) hue-rotate(175deg) brightness(95%) contrast(92%);
}

.firmas-control:hover {
  background: rgba(0, 42, 86, 0.08);
}

.firmas-outer-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.firmas-outer-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0, 42, 86, 0.15);
  background: var(--blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-fuerte);
  box-shadow: 0 8px 18px rgba(0, 42, 86, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.firmas-outer-btn:hover {
  background: rgba(0, 42, 86, 0.08);
  box-shadow: 0 10px 24px rgba(0, 42, 86, 0.25);
  transform: translateY(-1px);
}

/* =========================
   IMAGEN
========================= */
.perfil-img {
  display: flex;
  justify-content: center;
}

.img-wrapper {
  position: relative;
  width: 85%;
  z-index: 1;
  animation: fadeUp 1.2s ease both;
}

/* Halo elegante */
.img-wrapper::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
      rgba(0, 146, 205, 0.25) 0%,
      rgba(0, 146, 205, 0.15) 40%,
      transparent 70%);
  filter: blur(10px);
  z-index: -2;
}

/* Marco dorado */
.img-wrapper::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid var(--dorado);
  z-index: -1;
  transition: inset 0.6s ease;
}

.img-wrapper:hover::after {
  inset: 10px;
}

.img-wrapper img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 42, 86, 0.2);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* Micro movimiento */
.img-wrapper img {
  animation: floatImage 6s ease-in-out infinite;
}

/* =========================
   TEXTO
========================= */
.perfil-contenido {
  animation: fadeUp 1.2s ease both;
}

.perfil-eyebrow {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--azul-bajo);
}

/* TÍTULO */
.perfil-titulo {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 10px 0 20px;
  line-height: 1.1;
  color: var(--azul-fuerte);
}

.perfil-titulo span {
  font-weight: 600;
  position: relative;
}

.perfil-titulo span::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--dorado);
}

/* SUBTÍTULO */
.perfil-subtitulo {
  font-size: 10px;
  font-weight: 400;
  max-width: 450px;
  margin-bottom: 25px;
  line-height: 1.4;
  text-align: justify;
}

/* DESTACADO */
.perfil-destacado {
  font-size: 17px;
  font-weight: 500;
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.5;
  text-align: justify;
  color: var(--azul-fuerte);
}

/* =========================
   TEXTO / BULLETS
========================= */
.perfil-texto p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 710px;
  margin-bottom: 18px;
  text-align: justify;
}

.perfil-hero strong {
  color: var(--azul-fuerte);
}

/* =========================
   FIRMA
========================= */
.perfil-firma {
  margin-top: 40px;
  padding-left: 18px;
  border-left: 3px solid var(--azul-botones);
}

.perfil-nombre {
  font-size: 20px;
  font-weight: 600;
  color: var(--azul-fuerte);
}

.perfil-cargo {
  font-size: 18px;
  color: #444;
  margin-top: 6px;
  line-height: 1.4;
}

.perfil-slogan {
  font-size: 18px;
  font-style: italic;
  margin-top: 12px;
  color: var(--azul-bajo);
  line-height: 1.4;
}

/* =========================
   ANIMACIONES
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

/* =========================
   ACCESIBILIDAD
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
  .perfil-hero {
    padding: 50px 5%;
  }

  .perfil-shell {
    margin: 20px auto;
    border-radius: 12px;
  }

  .perfil-titulo {
    font-size: 42px;
  }

  .perfil-subtitulo {
    font-size: 20px;
  }

  .perfil-destacado {
    font-size: 18px;
  }

  .firmas-control {
    display: none;
  }

  #firmasCarousel .carousel-indicators.firmas-indicators {
    margin-top: 36px;
  }

  .img-wrapper img {
    margin-bottom: 30px;
    animation: none;
  }
}

/*/ Directivos */

.nav-btn {
  position: absolute;
  top: 110%;
  transform: translateY(-50%);
  width: 35px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--azul-fuerte);
  color: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.nav-prev {
  left: 6px;
}

.nav-next {
  right: 6px;
}

.text-justify {
  text-align: justify;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #2d5a8e;
  color: #fff;
  margin-right: 8px;
  text-decoration: none;
}

.share-buttons span {
  font-size: 0.8rem;
  color: #6b7280;
  margin-right: 8px;
}

@media (max-width: 576px) {
  .news-card {
    height: 280px;
  }
}

/*/ Valores */

.valores-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 8rem;
}

.valores-texto h6 {
  font-family: "Roboto-Bold";
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--azul-fuerte);
}

.mis-valores {
  margin-top: 4rem;
}

.valor-titulo {
  font-family: "Montserrat-Bold";
  font-size: 1.2rem;
  color: var(--azul-botones);
}

.valor p {
  font-family: "Montserrat-Regular";
  font-size: 1.07rem;
}

/*/ Partners */

.partners-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 7rem;
}

.partners-texto h6 {
  font-family: "Roboto-Bold";
  font-size: 2rem;
  color: var(--azul-fuerte);
}

.partner-img {
  filter: grayscale(100%);
  transition: filter 0.4s;
  cursor: pointer;
}

.partner-img:hover {
  filter: grayscale(0%);
}

.partner-img {
  margin-right: 0;
}

@media (min-width: 992px) {

  /* desktop: mantener logos centrados, dejando a Bootstrap manejar el row-cols */
  .mis-partners {
    justify-content: center;
  }

  .mis-partners .partner-img {
    margin: 0 auto;
    max-width: 240px;
    height: auto;
  }
}

@media (max-width: 991.98px) {

  /* tablet/móvil: sin desplazamientos laterales extras */
  .mis-partners .partner-img {
    margin-left: 0 !important;
  }
}

/*/ Sedes */

.sucursales-div {
  margin-top: 4rem;
}

.sucursales-texto {
  margin-bottom: 2rem;
}

.sucursales-texto h6 {
  font-family: "Roboto-Bold";
  font-size: 2rem;
  color: var(--azul-fuerte);
  margin-bottom: 1rem;
}

.mis-sedes {
  margin-bottom: 8rem;
}

.sucursal {
  width: 100%;
  min-height: 23rem;
  position: relative;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #e9f2fb;
  display: block;
}

.sede-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.sucursal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(84, 136, 240, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 0;
}

.sucursal-overlay i {
  font-size: 3rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.sucursal-overlay h6 {
  font-family: "Roboto-Bold";
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.modal-lg-custom {
  max-width: 70% !important;
}

.modal-lg-custom .modal-content {
  height: 90vh;
}

.sede-mapa {
  height: 100%;
}

@media (max-width: 769px) {
  .modal-lg-custom {
    max-width: 98% !important;
  }

  .sede-info {
    margin-top: 10%;
    height: auto;
  }

  .modal-lg-custom {
    max-width: 95% !important;
  }
}

@media (min-width: 769px) {

  .modal-lg-custom .modal-content,
  .modal-lg-custom .modal-body,
  .modal-lg-custom .modal-body .row,
  .modal-lg-custom .modal-body .col-md-6 {
    height: 100%;
  }

  .sede-mapa {
    height: 100%;
  }

  .sede-mapa iframe {
    height: 100%;
    min-height: 80vh;
    width: 100%;
    display: block;
  }

  .sede-info {
    margin-top: 19%;
  }
}

.sede-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin-left: 2rem;
  padding-right: 5rem;
}

.sede-info h6 {
  font-family: "Roboto-Bold";
  font-size: 1.5rem;
  color: var(--azul-fuerte);
  margin-bottom: 1.4rem;
}

.sede-info h5 {
  font-family: "Roboto-Bold";
  font-size: 1.4rem;
  color: var(--azul-botones);
}

.sede-info p {
  font-family: "Montserrat-Regular";
  font-size: 0.9rem;
  color: black;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sede-icono {
  font-size: 2rem;
  color: var(--azul-botones);
}

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 400px;
  width: 100%;
  margin: auto;
  gap: 0.5rem;
}

.bar {
  width: 20%;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  color: white;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 10px 5px;
  text-align: center;
}

.default-text {
  font-size: 1.5rem;
  margin-bottom: auto;
  transition: transform 0.3s;
  font-family: "Montserrat-Bold";
  opacity: 0;
}

.icon {
  opacity: 1;
  font-size: 4rem;
  transition: opacity 0.3s;
  position: absolute;
  margin-bottom: 5rem;
}

.expanded-text {
  opacity: 0;
  font-size: 1remx;
  margin-top: auto;
  transition: opacity 0.3s;
  font-family: "Montserrat-Regular";
}

.bar.active {
  height: 25rem;
}

.bar.active .default-text {
  opacity: 1;
}

.bar.active .expanded-text {
  opacity: 1;
  padding-bottom: 20px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.bar.active .icon {
  opacity: 1;
  position: relative;
  margin-bottom: 2rem;
}

.bar:nth-child(1) {
  background-color: #002a56;
}

.bar:nth-child(2) {
  background-color: #003a6a;
}

.bar:nth-child(3) {
  background-color: #004f7c;
}

.bar:nth-child(4) {
  background-color: #006897;
}

.bar:nth-child(5) {
  background-color: #0081b0;
}

.bar:nth-child(6) {
  background-color: #0092cd;
}

@media (max-width: 768px) {
  .chart {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .bar {
    width: 90%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 1rem;
    justify-content: center;
  }

  .bar.active {
    height: auto;
  }

  .bar .default-text,
  .bar .icon,
  .bar .expanded-text {
    opacity: 1;
  }

  .bar .icon {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    position: static;
  }

  .bar .expanded-text {
    padding: 0;
    font-size: 0.95rem;
  }

  .bar:hover {
    height: auto;
  }
}

/*/agentes*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto-Black";
  color: #0e0f12;
  background: #fff;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 10px;
}

.hero {
  text-align: center;
  padding: 48px 0 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--azul-fuerte);
  font-size: clamp(44px, 7vw, 82px);
}

.brand .ia {
  color: var(--dorado);
}

.sub {
  margin: 14px auto 26px;
  max-width: 840px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.5;
}

.ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s transform ease, 0.2s box-shadow ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: var(--azul-botones);
  color: var(--blanco);
}

.btn-ghost {
  background: #eef6fb;
  color: #0b3c5c;
}

.agents {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 22px auto 0;
  align-items: center;
  justify-items: center;
}

@media (max-width: 800px) {
  .agents {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 22px auto 0;
  }
}

.agent {
  background: var(--gris);
  border-radius: 22px;
  padding: 18px 18px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: 0.25s transform ease, 0.25s box-shadow ease;
  border: 1px solid #e7ecf2;
  width: 100%;
  max-width: 520px;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  /* permitir que los hijos (la imagen) ocupen todo el ancho del card */
  align-items: stretch;
}

.agent:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.agent__status {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: 'Roboto-Regular';
  color: #1a2b3a;
  background: #fff;
  border: 1px solid #e9eef4;
  padding: 6px 10px;
  border-radius: 999px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #27c93f;
  box-shadow: 0 0 0 6px rgba(39, 201, 63, 0.12);
}

.agent__media {
  /* La imagen ocupa todo el cuadro del agente */
  width: 100%;
  max-width: none;
  height: 100%;
  display: block;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
  /* Evitar que se encoja en contenedores flex */
  flex: 0 0 auto;
}

@media (max-width: 800px) {
  .agent {
    min-height: auto;
  }

  .agent__media {
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: none;
    margin: 10px 0;
  }
}

.whatsapp {
  background: #e9fcf3;
}

.telegram {
  background: #edf6ff;
}

.web {
  background: #ffffff;
}

.agent__title {
  font-weight: 800;
  font-size: 18px;
  color: var(--azul-fuerte);
  font-family: 'Roboto-Bold';
}

.agent__hint {
  font-size: 13px;
  color: #3c4a57;
  font-family: 'Roboto-Regular';
}

.chips {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e9eef4;
  color: #264156;
  font-family: 'Roboto-Regular';

}

.agent a.stretch {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

.mini {
  margin-top: 28px;
  text-align: center;
  color: #4a5a6a;
  font-size: 13px;
}

.mini code {
  background: #f5f7fb;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #edf1f6;
}

@media (prefers-reduced-motion: reduce) {
  .agent__media {
    animation: none;
  }
}

#perfilCarousel .carousel-indicators {
  bottom: -10px;
}

@media (min-width: 992px) {
  .perfil-carousel {
    position: relative;
    overflow: visible;
  }

  #perfilCarousel .carousel-control-prev {
    left: -68px;
  }

  #perfilCarousel .carousel-control-next {
    right: -68px;
  }
}

/*/flechas responsivas móvil*/

@media (max-width: 991.98px) {
  .perfil-carousel {
    position: relative;
    overflow: visible;
  }

  #perfilCarousel .carousel-control-prev,
  #perfilCarousel .carousel-control-next {
    top: 30%;
    transform: translateY(-50%);
    bottom: auto;
    width: 36px;
    height: 36px;
    z-index: 3;
  }

  #perfilCarousel .carousel-control-prev {
    left: max(8px, env(safe-area-inset-left));
  }

  #perfilCarousel .carousel-control-next {
    right: max(8px, env(safe-area-inset-right));
  }

  #perfilCarousel .carousel-control-prev-icon,
  #perfilCarousel .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem 1.25rem;
    filter: none;
  }

  #perfilCarousel .carousel-control-prev,
  #perfilCarousel .carousel-control-next {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
  }

  #perfilCarousel .perfil-texto {
    padding-left: 8px;
    padding-right: 8px;
  }
}