.section-nuestra-universidad{
    width: auto;
    background-image: 
    url('../img/nosotros/bg_nosotros_iexe2025.webp');
    aspect-ratio: 1300 / 380;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode:multiply;
    height: auto;
    border-radius: 0px 0px 15px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 3px 3px #001c3a4d;
}

.section-nuestra-universidad .row{
    flex: 1;
}

.nuestra-universidad-titulo{
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-titulos-extra-grande);
    font-weight: bold;
    color: var(--color-azul-medio-oscuro);
    max-width: 462px;
}

.nuestra-universidad-descripcion{
    font-family: var(--fuente-titulo);
    font-size: var(--tamaño-fuente-medio-1);
    font-weight: normal;
    color: var(--color-azul-dark);
    max-width: 377px;
    letter-spacing: -0.23px;
}

.section-nuestra-historia{
    width: auto;
    /* max-width: min(1299px,100%); */
    min-height: 780px;
    height: auto;
}

.section-nuestra-historia .row{
    flex: 1;
    height: 100%;
}

.parrafo-slide-principal {
    max-width: 330px;
    color: var(--color-azul-dark);
}


li.parrafo-slide-principal::marker {
    color: var(--color-azul-medio-oscuro);
}


.lista-principal-css {
    list-style-type: square;
}

.h2-titulo-section {
    font-size: var(--tamaño-fuente-titulos-2);
    color: var(--color-azul-dark);
    font-family: var(--fuente-parrafo-2);
    font-weight: bold;
}
.h3-titulo-section {
    font-size: var(--tamaño-fuente-xxl-grande-2);
    color: var(--color-azul-medio-oscuro);
    font-family: var(--fuente-parrafo-2);
    font-weight: bold;
}

.parrafo-nosotros {
    font-size: var(--tamaño-fuente-medio-2);
    color: var(--color-azul-oscuro);

}
.nuestra-historia-relato{
    font-family: var(--fuente-titulo);
    font-size: var(--tamaño-fuente-medio-2);
    font-weight: 300;
    color: var(--color-azul-oscuro);
    letter-spacing: 0.26px;
    max-width: 667px;
    line-height: 20px;
}


.nuestra-historia-titulo{
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-xxl-grande-2);
    font-weight: bold;
    color: var(--color-azul-medio-oscuro);
    max-width: 667px;
}

.section-nuestra-mision{
    width: auto;
    /* max-width: min(1299px,100%); */
    min-height: 780px;
    height: auto;
}

.section-nuestra-mision .row{
    flex: 1;
}

.box-nuestra-mision{
    box-shadow: 0px 3px 6px #0F2A6117;
    border-radius: 15px;
    background-color: var(--color-blanco);
}

.nuestra-mision-titulo{
    font-family: var(--fuente-parrafo-2);
    font-size: 72px;
    font-weight: bold;
    color: white;
    text-shadow: 
    -1px -1px 0 #99C4FF,
     1px -1px 0 #99C4FF,
    -1px  1px 0 #99C4FF,
     1px  1px 0 #99C4FF;

}

.card-mision{
    max-width: 639px;
    min-height: 360px;
    border-radius: 15px;
    background-color: #D4E4F9;
    min-width: min(639px,100%);
}

.card-mision-titulo{
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-titulos-2);
    font-weight: bold;
    color: var(--color-azul-dark);
}

.card-mision-descripcion{
    font-family: var(--fuente-titulo);
    font-size: var(--tamaño-fuente-medio-2);
    font-weight: 300;
    color: var(--color-azul-oscuro);
    max-width: 543px;
    letter-spacing: 0.26px;
    line-height: 20px;
}

.card-back{
    background-color: #E5EFFC !important;
    opacity: 0.64;
    position: absolute;
    bottom: 40px;
    min-width: min(639px,100%);
    transform: scaleX(0.8);
}

.card-middle{
    background-color: #E3EEFB !important;
    opacity: 1;
    position: absolute;
    bottom: 20px;
    min-width: min(639px,100%);
    transform: scaleX(0.9);
}

.mensaje-fundador-titulo{
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-titulos-2);
    font-weight: bold;
    color: var(--color-azul-dark);
}

.mensaje-fundador-descripcion{
    font-family: var(--fuente-titulo);
    font-size: var(--tamaño-fuente-medio-2);
    font-weight: 300;
    color: var(--color-azul-oscuro);
    max-width: 861px;
}

.plantilla-profesores{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    z-index: 0;
}

.plantilla-profesor-nombre{
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-xxl-grande-2);
    font-weight: bold;
    color: var(--color-azul-dark);
    line-height: 22px;
}

.plantilla-profesor-especialidad{
    font-family: var(--fuente-titulo);
    font-size: var(--tamaño-fuente-muy-grande);
    font-weight: 500;
    color: var(--color-azul-medio-oscuro);
    line-height: 22px;
}

.nuestros-profesores-titulo{
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-titulos-2);
    font-weight: 500;
    color: var(--color-azul-dark);
}

.box-profesor{
    min-height: 600px;
}

.profesor-info{
    z-index: 1;
}

.donde-nos-ubicamos{
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-xxl-grande-2);
    font-weight: bold;
    color: var(--color-azul-medio-oscuro);
}

.encuentranos-y-resuelve-tus-dudas{
    font-family: var(--fuente-titulo);
    font-size: var(--tamaño-fuente-medio-2);
    font-weight: 300;
    color: var(--color-azul-oscuro);
}

/* Oculta la barra en navegadores WebKit */
.box-plantilla-profesores::-webkit-scrollbar { display: none; }
/* Ya traes scrollbar-width:none; y -ms-overflow-style:none; en el inline */

/* Suaviza el desplazamiento manual (no aplica al “teletransporte” interno) */
.box-plantilla-profesores { scroll-behavior: smooth; }

.box-plantilla-profesores > [class*="col-xl-"] {
  transition: flex-basis 0.4s ease, max-width 0.4s ease;
}

.box-plantilla-profesores .box-profesor {
  transition: transform 0.3s ease;
}

/* .box-plantilla-profesores > .col-xl-4 .box-profesor {
  transform: scale(1.05);
} */

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.scroll-btn-left { left: 10px; }
.scroll-btn-right { right: 10px; }

.profesor-presentacion{
    /* background-color: #001e42;
    transition: 0.8s ease-in-out; */
}

.box-presentacion .plantilla-profesor-nombre, .box-presentacion .plantilla-profesor-especialidad{
    color: white !important;
}

.profesor-presentacion .plantilla-profesor-presentacion{
    color: white;
    text-align: justify;
}

.box-presentacion .plantilla-profesor-presentacion{
    color: white;
    text-align: justify;
}

.box-presentacion{
    background-color: #001e42;
    z-index:100;
    bottom:-600px;
    border-radius: 15px;
    transition: all 0.9s ease-in-out 0s;
}

.box-presentacion-show{
    bottom: 0;
}

.profesor-seleccionado{
    border-radius: 15px;
    padding: 0 0;
    overflow: hidden;
}

.nosotros-arrow-sticky-left, .nosotros-arrow-sticky-right{
        position: absolute;
        margin-top: auto;
        margin-top: auto;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        cursor: pointer;
        user-select: none;
        padding-left: 0px;
        padding-right: 0px;
        background: #0018FF 0% 0% no-repeat padding-box;
    }

    .nosotros-arrow-sticky-left::after, .nosotros-arrow-sticky-right::after{
        content: "";
        display: block;
        width: 12px;
        height: 12px;
        border-right: 3px solid white;
        border-bottom: 3px solid white;
    }

.nosotros-arrow-sticky-right {
        right: 0;
        bottom: 50%;
    }

    .nosotros-arrow-sticky-left {
        left: 0;
        bottom: 50%;
    }

    .nosotros-arrow-sticky-right::after{
        transform: rotate(-45deg);
    }

    .nosotros-arrow-sticky-left::after{
        transform: rotate(135deg);
    }

    

@media (max-width: 576px) {
  .nuestra-universidad-titulo {
   font-size: 2.8rem;
  }

  .nuestra-mision-titulo{
    font-size: 36px;
  }

  .plantilla-profesor-nombre{
    /* font-size: 24px; */
  }

  .mapa-nosotros {
    height: 580px;
  }
  .rstl .timeline .timeline-year {
  margin-bottom: 10px !important;
  }
}









/* ===== RSTL Scoped Styles ===== */
.rstl .rstl-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}

.rstl .rstl-title {
  font-size: 38px;
  color: #616161; /* $gray */
  font-style: italic;
  font-weight: 800;
}

/* Timeline */
.rstl .timeline {
  width: 100%;
  box-shadow: 0 5px 25px 5px rgba(0, 0, 0, 0.2);
}

.rstl .timeline .swiper-container {
  height: 600px;
  width: 100%;
  position: relative;
}

.rstl .timeline .swiper-wrapper {
  transition: 2s cubic-bezier(.68,-0.4,.27,1.34) .2s;
}

.rstl .timeline .swiper-slide {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  aspect-ratio: 1920 / 500;
}
.rstl .timeline .swiper-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -115%;
  bottom: -10%;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  /* box-shadow: -230px 0 150px 60vw rgba(0,0,0,0.7); */
  border-radius: 100%;
}

.rstl .timeline .swiper-slide-content {
  position: absolute;
  text-align: center;
  width: 80%;
  max-width: 340px;
  right: 50%;
  top: 13%;
  transform: translate(50%, 0);
  font-size: 12px;
  z-index: 2;
}

.rstl .timeline .timeline-year {
  display: block;
  font-size: var(--tamaño-fuente-titulos-extra-grande-2);
  margin-bottom: 50px;
  transform: translate3d(20px, 0, 0);
  color: #92C3FE; /* $primary */
  font-weight: bold;
  opacity: 0;
  transition: .2s ease .4s;
  font-family: var(--fuente-parrafo-2);

}

.rstl .timeline .timeline-title {
  font-weight: 800;
  font-size: 26px;
  margin: 0 0 30px;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: .2s ease .5s;
}

.rstl .timeline .timeline-text {
  line-height: 1.5;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: .2s ease .6s;
}

/* Active state animations */
.rstl .timeline .swiper-slide-active .timeline-year {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: .4s ease 1.6s;
}
.rstl .timeline .swiper-slide-active .timeline-title {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: .4s ease 1.7s;
  font-family: var(--fuente-parrafo-2);
}
.rstl .timeline .swiper-slide-active .timeline-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: .4s ease 1.8s;
  font-family: var(--fuente-parrafo-2);
  font-size: var(--tamaño-fuente-medio-2);
  font-weight: normal;
}

/* Pagination */
.rstl .timeline .swiper-pagination {
  right: 18% !important;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  z-index: 1;
  position: absolute;
}
.rstl .timeline .swiper-pagination::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.rstl .timeline .swiper-pagination-bullet {
  width: auto;
  height: auto;
  text-align: right;
  opacity: 1;
  padding-right: 15%;
  background: transparent;
  color: var(--color-azul-cyan-variante);
  margin: 2px 0 !important;
  position: relative;
  border-radius: 0; /* ensure bullets render text-only */
  font-size: var(--tamaño-fuente-xxl-grande-2);
  font-family: var(--fuente-titulo);
  font-style: normal;
}
.rstl .timeline .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -32.5px;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background-color: #d4a024;
  transform: scale(0);
  transition: .2s;
}
.rstl .timeline .swiper-pagination-bullet-active {
  color: var(--color-azul-medio-oscuro-variante);
}
.rstl .timeline .swiper-pagination-bullet-active::before {
  transform: scale(1);
}

/* Nav arrows */
.rstl .timeline .swiper-button-next,
.rstl .timeline .swiper-button-prev {
  background-size: 20px 20px;
  top: 20%;
  width: 20px;
  height: 20px;
  margin-top: 0;
  z-index: 2;
  transition: .2s;
  background-repeat: no-repeat;
  background-position: center;
}
.rstl .timeline .swiper-button-prev {
  left: 8%;
  background-image: url(../img/arrow-left-blue-2.webp) !important;
  width: 64px !important;
  height: 64px !important; 
}
.rstl .timeline .swiper-button-prev:hover {
  transform: translateX(-3px);
}

.rstl .timeline .swiper-button-next {
  right: 8%;
  background-image: url(../img/arrow-right-blue-2.webp) !important;
  width: 64px !important;
  height: 64px !important;
}
.rstl .timeline .swiper-button-next:hover {
  transform: translateX(3px);
}

  .swiper-pagination.rstl-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    max-height: 50%;
    overflow-y: auto;
    top: 25%;
    scroll-behavior: smooth;

}

@media screen and (max-width: 768px) {
    .rstl .timeline .swiper-button-prev {
  left: 8%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2027%2044'%20stroke='%230018FF'%20stroke-width='3'%20fill='none'%3E%3Cpath%20d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22z'/%3E%3C/svg%3E");
}

.rstl .timeline .swiper-button-next {
  right: 8%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2027%2044'%20stroke='%230018FF'%20stroke-width='3'%20fill='none'%3E%3Cpath%20d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22z'/%3E%3C/svg%3E");
}
}

/* >=768px */
@media screen and (min-width: 768px) {
  .rstl .timeline .swiper-slide::after {
    right: -30%;
    bottom: -10%;
    width: 240px;
    height: 50%;
    /* box-shadow: -230px 0 150px 50vw rgba(0,0,0,0.7); */
  }



  .rstl .timeline .swiper-slide-content {
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    width: 310px;
    font-size: 11px;
    text-align: right;
  }

  .rstl .timeline .timeline-year {
    margin-bottom: 0;
    font-size: var(--tamaño-fuente-titulos-extra-grande-2);
  }

  .rstl .timeline .timeline-title {
    font-size: var(--tamaño-fuente-xxl-grande-2);
    font-family: var(--fuente-titulo) !important;
    font-weight: 600;
    margin: 0;
  }

  .rstl .timeline .swiper-pagination {
    display: flex;
  }

  .rstl .timeline .swiper-button-prev {
    top: 10%;
    left: auto;
    right: 17.5%;
    transform: rotate(90deg) translate(0, 10px);
  }
  .rstl .timeline .swiper-button-prev:hover {
    transform: rotate(90deg) translate(-3px, 10px);
  }

  .rstl .timeline .swiper-button-next {
    top: auto;
    bottom: 10%;
    right: 17.5%;
    transform: rotate(90deg) translate(0, 10px);
  }
  .rstl .timeline .swiper-button-next:hover {
    transform: rotate(90deg) translate(3px, 10px);
  }
}

/* >=1024px */
@media screen and (min-width: 1024px) { 
  .rstl .timeline .swiper-slide::after {
    right: -20%;
    bottom: -12%;
    width: 240px;
    height: 50%;
    /* box-shadow: -230px 0 150px 39vw rgba(0,0,0,0.7); */
  }
  .rstl .timeline .swiper-slide-content {
    right: 25%;
  }
}

.frase-slider-historia {
  color: var(--color-blanco);
  font-size: var(--tamaño-fuente-titulos);
  font-family: var(--fuente-parrafo-2);
  font-weight: bold;
  margin-top: 2%;
  margin-left: 5%;
}

.box-azul-degradado {
  height: 100%;
  border-radius: 24px;
  background: #DFEFFF;
  background: linear-gradient(180deg,rgba(223, 239, 255, 1) 0%, rgba(225, 231, 245, 1) 50%, rgba(255, 255, 255, 1) 100%);
}

.img-rector-section {
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  height: 100%;
}


@media only screen and (max-width: 991px) {
  .section-nuestra-universidad {
    background-image: url('../img/nosotros/bg_r-nosotros.webp');
    aspect-ratio: 336 / 783;  
  }
}


.swiper-pagination.rstl-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-vertical {
  top: 50%;
  padding-top: 14%;
  overflow: hidden;
  max-height: 126px !important;
  overflow-y: auto;
  scrollbar-width: none;
}

/* MOBILE: carrusel horizontal con scroll-snap */
@media (max-width: 767px) {
  /* El track será el propio #timeline */
  #timeline {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;                 /* sin espacios entre slides */
    scroll-behavior: smooth;
  }

  /* Cada item ocupa ancho completo */
  #timeline .tl-item {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: 24px 16px;     /* ajusta márgenes internos si quieres */
  }

  /* Ajustes de texto (opcional) */
  #timeline .tl-year p {
    margin: 0 0 12px;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
  }
  #timeline .tl-content p {
    margin: 0;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.5;
  }

  /* Oculta paginación/flechas de Swiper en móvil si existen en el layout */
  #timeline .rstl .timeline .swiper-button-next,
  #timeline .rstl .timeline .swiper-button-prev,
  #timeline .rstl .timeline .swiper-pagination {
    display: none !important;
  }

  /* Quita sombras/posicionamientos de desktop si afectaran en móvil */
  #timeline .rstl .timeline .swiper-slide::after,
  #timeline .rstl .timeline .swiper-slide-content {
    all: unset;
  }
}

/* Sugerencia visual: desvanecidos en los bordes del scroll (opcional) */
@media (max-width: 767px) {
  #timeline {
    position: relative;
    /* mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%); */
  }
}


.tab-content.border.border-top-0.rounded-bottom {
    border: none;
}





#timeline {
  display: flex;
  background: #001E42;
  background: linear-gradient(0deg,rgba(0, 30, 66, 1) 0%, rgba(31, 55, 140, 1) 100%);

  &:hover {
    .tl-item {
      width: 23.3333%;
    }
  }
}

.tl-item {
  transform: translate3d(0, 0, 0);
  position: relative;
  width: 25%;
  min-height: 540px;
  color: #fff;
  overflow: hidden;
  transition: width 0.5s ease;
  
  &:before, &:after {
    transform: translate3d(0, 0, 0);
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
  }

  &:after {
    background: transparentize(#031625, 0.15);
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  &:before {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 75%);
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  &:hover {
    width: 30% !important;
    
    &:after {
      opacity: 0;
    }

    &:before {
      opacity: 1;
      transform: translate3d(0, 0, 0) translateY(0);
      transition: opacity 1s ease, transform 1s ease 0.25s;
    }
    
    .tl-content {
      opacity: 1;
      transform: translateY(0);
      transition: all 0.75s ease 0.5s;
    }

    .tl-bg {
      filter: grayscale(0);
    }
  }
}

.tl-content {
  transform: translate3d(0, 0, 0) translateY(25px);
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 1.618em;
  top: 55%;
  opacity: 0;
  
  h1 {
    font-family: 'Pathway Gothic One',Helvetica Neue,Helvetica,Arial,sans-serif;
    text-transform: uppercase;
    color: #1779cf;
    font-size: 1.44rem;
    font-weight: normal;
  }
}


.tl-img {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  transition: top 0.5s ease;
}


.tl-item:hover .tl-img {
  top: 20%;
  transition: top 0.5s ease;
}
.tl-item:hover .tl-year {
  top: 40%;
  transition: top 0.5s ease;
}


.tl-year {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  /* border-top: 1px solid #fff; */
  /* border-bottom: 1px solid #fff; */
  width: 80%;
  text-align: center;
  transition: top 0.5s ease;
  p {
    font-family: var(--fuente-parrafo-2);
    font-size: var(--tamaño-fuente-muy-grande-2);
    color: var(--color-azul-azul-claro-3);
    font-weight: bold;
    /* line-height: 0; */
  }
}

.tl-bg {
  transform: translate3d(0, 0, 0);
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background-size: cover;
  background-position: center center;
  transition: filter 0.5s ease;
  filter: grayscale(100%);
}



/* ===========================
   PROFESORES – ESTILOS BASE
   =========================== */

.box-profesor {
  position: relative;
  overflow: hidden;
}

/* Suaviza cambio de ancho en el carrusel horizontal */
.box-plantilla-profesores > [class*="col-"] {
  transition: width .28s ease, flex-basis .28s ease;
}

/* Cuando un profesor está activo, su resumen debe estar visible también en XL */
.box-profesor.is-active > .profesor-info:not(.box-presentacion) {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease;
}

/* Asegura que el overlay no estorbe si sólo queremos ver el resumen al activar la tarjeta */
.box-profesor.is-active .box-presentacion {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Oculta el resumen cuando la presentación está visible */
.box-profesor.is-open > .profesor-info:not(.box-presentacion) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

/* ===============================
   OVERLAY: ANIMACIÓN POR MARGIN
   =============================== */

/* Estado base del overlay: escondido arriba */
.box-profesor .box-presentacion{
  position: absolute;
  inset: 0;
  margin-top: -100%;        /* oculto hacia arriba */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: margin-top, opacity;
  transition:
    opacity .35s ease,
    visibility 0s .8s step-end; /* al cerrar, se oculta al final */
}

/* ABRIR: de -100% a 0 (cae desde arriba) */
.box-profesor.is-open .box-presentacion{
  visibility: visible;
  pointer-events: auto;
  animation: ix-slide-down .8s cubic-bezier(.22,.61,.36,1) both;
  transition:
    opacity .35s ease,
    visibility 0s step-start; /* visible desde el inicio al abrir */
}

/* CERRAR: de 0 a -100% (sube hacia arriba) */
.box-profesor.is-open.is-closing .box-presentacion{
  animation: ix-slide-up .65s cubic-bezier(.22,.61,.36,1) both !important;
  transition:
    opacity .3s ease,
    visibility 0s .65s step-end; /* se oculta al final */
}

/* Keyframes con overshoot sutil */
@keyframes ix-slide-down {
  0%   { margin-top: 100%; opacity: 1; }
  100% { margin-top:   0;   opacity: 1; }
}

@keyframes ix-slide-up {
  0%   { margin-top: 0;     opacity: 1; }
  100% { margin-top: 150%; opacity: 1; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .box-profesor .box-presentacion{
    animation: none !important;
    transition: none !important;
  }
  .box-profesor.is-open > .profesor-info:not(.box-presentacion) {
    transition: none !important;
  }
}


/* 1) Registramos la variable animable (solo para navegadores que soportan @property) */
@property --colw-xl {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 16.6667%;
}

/* 2) En XL haremos que las columnas usen --colw-xl como base de su ancho */
@media (min-width: 1200px) {
  .box-plantilla-profesores > [class*="col-"] {
    /* Importante: usar la variable como flex-basis y max-width */
    flex: 0 0 var(--colw-xl, 16.6667%);
    max-width: var(--colw-xl, 16.6667%);
    transition: --colw-xl 380ms cubic-bezier(.22,.61,.36,1);
    will-change: flex-basis, max-width;
  }

  /* Tamaño “pequeño” (equivalente a col-xl-2) */
  .colxl-w-2 {
    --colw-xl: 16.6667%;
  }

  /* Tamaño “grande” (equivalente a col-xl-4) */
  .colxl-w-4 {
    --colw-xl: 33.3333%;
  }
}

/* Fallback (por si @property no está soportado): animamos flex-basis/max-width igual
   y Bootstrap seguirá aplicando sus clases; no rompe nada. */
.box-plantilla-profesores > [class*="col-"] {
  transition: flex-basis 380ms cubic-bezier(.22,.61,.36,1),
              max-width 380ms cubic-bezier(.22,.61,.36,1);
}




.contacto-box{
    min-height: 278px;
    border-radius: 15px;
    background-color: var(--color-azul-azul-claro-2);
}

.contacto-titulo{
    font-family: var(--fuente-parrafo-2);
    color: var(--color-azul-oscuro-texto-titulo);
    font-size: var(--tamaño-fuente-muy-grande);
    font-weight: bolder; 
}

.contacto-descripcion{
    font-family: var(--fuente-titulo);
    color: var(--color-azul-oscuro-texto-titulo);
    font-size: var(--tamaño-fuente-medio-1);
    font-weight: normal; 
}


.titulo-conoce-nuestras-redes {
    font-size: var(--tamaño-fuente-xxl-grande-2);
    color: var(--color-azul-oscuro);
    font-weight: 900;
    font-family: var(--fuente-parrafo-2);
}

.link-redes-sociales {
    font-family: var(--fuente-parrafo-2);
    text-decoration: none;
    color: var(--color-azul-medio-oscuro);
    font-size: 18px;
}

.link-redes-sociales:hover {
    text-decoration: underline;
}


#section-contacto ul {
	list-style: square;
	color: var(--color-azul-oscuro-texto-titulo);
}

.rstl .timeline .swiper-button-next, .rstl .timeline .swiper-button-prev {
background-size: 40px 40px;
}