body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  background-color: #fff;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px;
  border: 0;
  margin: 0;
  padding: 0;
  
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #0e0f2e;
}

p {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased !important;
  line-height: 26px;
  font-size: 15px;
}


h1 {
  font-size: 36px;
  line-height: 48px;
}

h2 {
  font-size: 28px;
  line-height: 36px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

h3 {
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -.5px;
}

h4 {
  font-size: 18px;
  line-height: 28px;
  text-transform: uppercase;
  letter-spacing: -.2px;
}

h5 {
  font-size: 14px;
  line-height: 24px;
}

/* Global styles
================================================== */
html {
  overflow-x: hidden !important;
  width: 100%;
  height: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.body-inner {
  position: relative;
  overflow: hidden;
}


a:link,
a:visited {
  text-decoration: none;
}

a {
  color: inherit;
  transition: .2s ease;
}

a:hover {
  text-decoration: none;
  color: #000;
}


section,
.section-padding {
  padding: 30px 0;
  position: relative;
}


.gap-60 {
  clear: both;
  height: 60px;
}

.gap-40 {
  clear: both;
  height: 40px;
}

.gap-30 {
  clear: both;
  height: 30px;
}

.gap-20 {
  clear: both;
  height: 20px;
}


a:focus {
  outline: 0;
}

.ts-padding {
  padding: 60px;
}

.solid-bg {
  background: #f9f9f9;
}

.dark-bg {
  background: #252525;
  color: #fff;
}

.dark-bg h2,
.dark-bg h3 {
  color: #fff;
}


.white-bg {
  background: #fff;
  color: #252525;
}


.solid-row {
  background: #f0f0f0;
}

.bg-overlay {
  position: relative;
}

.bg-overlay .container {
  position: relative;
  z-index: 1;
}

.bg-overlay:after {
  background-color: rgba(0, 46, 91, 0.8);
  z-index: 0;
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.content-hidden {
  position: absolute;
  height: 1px;
  width: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  border: 0;
  overflow: hidden;
}

/* Title */
.title {
  font-size: 32px;
  line-height: 36px;
  margin-bottom: 20px;
}

/* Title Border */
.section-title {
  font-size: 36px;
  line-height: 28px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 300;
}

.section-sub-title {
  font-weight: 900;
  font-size: 36px;
  line-height: 46px;
  color: #0e0f2e;
}


/* Column title */
.column-title {
  margin: 0 0 40px;
}

.column-title-small {
  font-size: 20px;
  margin: 0 0 25px;
}

/* Page content title */
.page-content-title.first {
  margin-top: 0;
}



/* =========================================
   SECCIÓN: Organigrama
   ========================================= */

.team-row .col-lg-4,
.team-row .col-md-6 {
  display: flex;
  align-items: stretch;
}

/* Card general */
.team-card {
  background-color: #f2f2f2;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  width: 100%;
  padding: 25px 25px 35px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.team-card:hover,
.programa-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(67, 26, 4, 0.12);
}

/* Imagen dentro del card */
.team-image {
  margin: 0 auto 18px;
}

.team-image img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid #fff;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

/* Info */
.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b2040;
  margin-bottom: 5px;
}


.team-role {
  color: #444;
  margin: 12px 0;
  text-transform: uppercase;
}

/* =========================================
   SECCIÓN: CENTRO DE INVESTIGACIÓN
   ========================================= */
/* Fondo general */
.research-section {
  background-color: #000;
  color: #f1f1f1;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Título */
.research-section .section-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;

}

.research-section .section-title::after {
  content: "";
  display: block;
  width: 50%;
  /* ancho relativo al contenedor */
  max-width: 150px;
  /* opcional: ancho máximo */
  height: 3px;
  background: linear-gradient(90deg, #00d1ff, #0077ff);
  margin: 10px;
  /* centrado horizontal */
  border-radius: 3px;
}

/* Descripción */
.section-description {
  color: #d0d0d0;
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
  margin-bottom: 25px;
}

/* Lista */
.list-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.research-list {
  list-style: none;
  padding-left: 0;
}

.research-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  transition: transform 0.3s ease;
}

.research-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #00d1ff;
  font-weight: bold;
  font-size: 1.1rem;
}

.research-list li:hover {
  transform: translateX(8px);
  color: #00d1ff;
}

/* Imagen */
.image-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-container img {
  width: 100%;
  height: auto;

}

.image-container:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 209, 255, 0.4);
}


/* =========================================
   SECCIÓN: REGISTRO HISTÓRICO DE ACTIVIDADES en el index
   ========================================= */

.courses-section {
  background-color: #fff;
  padding: 80px 0;
  color: #0a0a0a;
}

/* === Tarjetas === */
.course-card {
  background-color: #f8f8f8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* fuerza que la card ocupe todo el alto del slide */
}

/* === Imagen === */
.course-img {
  position: relative;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 250px;
  /* altura fija */
  object-fit: cover;
  /* recorta si hace falta */
}

/* Overlay sutil en hover */
.course-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px 18px 0 0;
}

.course-card:hover .course-img::after {
  opacity: 1;
}

/* === Contenido === */
.course-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.course-content h3 {
  color: #090c49;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.course-content p {
  color: #1b1b1b;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  flex: 1;
}

.course-date {
  font-size: 0.9rem;
  color: #555;
  margin-top: 12px;
}

/* === Botón Ver más === */
.btn-view-more {
  display: inline-block;
  padding: 12px 30px;
  background: #091549;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(2, 12, 77, 0.4);
}

.btn-view-more:hover {
  background: #fff;
  color: #000;
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(68, 81, 222, 0.5);
}

/* === Swiper.js Config === */
.mySwiper {
  padding-bottom: 60px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #ffd700;
  transition: transform 0.3s ease, color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.2);
  color: #fff;
}

.swiper-slide {
  display: flex;
}


.swiper-wrapper {
  display: flex;
  align-items: stretch;
  /* fuerza que todos los slides tengan la misma altura */
}


/*SECCION REGISTRO HISTORICO en pagina registroh.html*/
.educacion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* === CARD === */
.educ-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.educ-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === IMAGEN === */
.educ-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f1efef;
  padding: 10px;
}

/* === INFO === */
.educ-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.educ-info p {
  text-transform: uppercase;
}

/*SECCION DE CONTACTANOS*/
/* Contact cards */
.ts-service-box-bg {
  background: #fff;
  border-radius: 15px;
  padding: 20px 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(21, 104, 239, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hover */
.ts-service-box-bg:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(16, 175, 233, 0.12);
}

/* Icon */
.ts-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #0e0f2e;
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.ts-service-box-content a:hover {
  color: #0077b6;
  text-decoration: underline;
}

.google-map iframe {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  border: none;
}

/**************************/

@media (max-width: 746px) {
  .section-sub-title {
    font-size: 28px;
  }
  .educacion-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Responsivo */
@media (max-width: 992px) {
  .row>[class*='col-'] {
    margin-bottom: 15px;
  }

  .educacion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-section {
    padding: 60px 20px;
  }

  .section-title {
    text-align: center;
  }

  .section-description {
    text-align: justify;
  }

  .image-container {
    margin-top: 30px;
  }

  .curso-card-horizontal {
    flex-direction: column;
  }

  .curso-card-horizontal .curso-img-container {
    order: -1;
    /* La imagen va primero */
  }

  .curso-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .curso-info {
    padding: 20px;
  }

  .research-section .section-title {
    font-size: 2rem;
  }
}

/* === Responsivo === */
@media (max-width: 768px) {
  .course-content h3 {
    font-size: 1.15rem;
  }

  .course-img img {
    height: auto;
  }

  .programa-card {
    padding: 30px 20px;
  }

  .programa-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-image img {
    width: 140px;
    height: 140px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .ts-service-box-bg {
    padding: 15px 10px;
  }

  .ts-service-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .ts-service-box-content h4 {
    font-size: 1rem;
  }

  .ts-service-box-content p,
  .ts-service-box-content a {
    font-size: 0.85rem;
  }

 
}







/*organigrama checar esta por borrasrse*/

/* Contenedor del organigrama */
.org-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cada nivel */
.org-level {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  position: relative;
}

/* Línea vertical entre niveles */
.org-level:not(:first-child)::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  width: 2px;
  height: 60px;
  background-color: #002147;
  transform: translateX(-50%);
}

/* Línea horizontal para el tercer nivel */
.level-3::before {
  content: "";
  position: absolute;
  top: -60px;
  left: calc(50% - 180px);
  width: 360px;
  height: 2px;
  background-color: #002147;
}

/* Tarjetas */
.org-card {
  background-color: #fff;
  border: 2px solid #002147;
  border-radius: 12px;
  padding: 20px 25px;
  margin: 0 20px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.org-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #002147;
  margin-bottom: 10px;
}

.org-card h4 {
  color: #002147;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.org-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Responsive */
@media(max-width:768px) {
  .org-level {
    flex-direction: column;
  }

  .level-3::before {
    width: 2px;
    height: 60px;
    left: 50%;
    top: -60px;
  }

  .org-card {
    margin: 20px 0;
  }
}

/* SECCION DE CONTADORES */

#stats {
  background-color: #0e0f2f;
}

#stats i {
  color: #fff;
  transition: transform 0.3s ease;
}

#stats i:hover {
  transform: scale(1.2);
}

#stats h2 {
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  #stats h2 {
    font-size: 2rem;
  }

  #stats i {
    font-size: 2rem;
  }
}

/* FIN SECCION DE CONTADORES */

/* mision y vision */

.facts-area .card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
  padding: 2rem;
}

/* Línea decorativa bajo título */
.title-line {
  width: 90px;
  height: 4px;
  background: #0a0d73;
  border-radius: 3px;
}

/* Párrafos */
.facts-area p {
  color: #333333;
  line-height: 1.7;
  font-size: 1rem;
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
  .facts-area .card {
    margin-bottom: 20px;
  }

  .title-line {
    width: 60px;
  }
}