/*!
 * Start Bootstrap - Resume (Customized)
 * Improved readability & academic layout
 */

/* =====================
   BASE
===================== */

body {
font-family: 'Montserrat', sans-serif;
  padding-top: 54px;
  color: #495057;
  background-color: #ffffff;
  line-height: 1.6;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

/* =====================
   HEADINGS
===================== */
/* Fuerza a las pestañas a estar en una sola fila en móviles */
/* Contenedor del video */
.video-wrapper {
    width: 100%;
    text-align: center; /* Centra el video en PC */
    margin-bottom: 1rem;
}

/* La magia del responsive */
.video-responsive {
    width: 100%;           /* En móvil ocupa todo el ancho */
    height: auto;
    max-width: 650px;      /* En PC no se hace gigante, se queda en un tamaño elegante */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: inline-block; /* Para que responda al text-align: center */
}

/* Opcional: Ajuste de márgenes para el botón en móvil */
@media (max-width: 768px) {
    .see-more-btn {
        display: block;    /* El botón ocupa todo el ancho para ser fácil de tocar */
        text-align: center;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto; /* Permite scroll horizontal si son muchas */
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-item {
        flex: 0 0 auto; /* Evita que las pestañas se encojan */
    }

    .nav-tabs .nav-link {
        padding: 8px 12px; /* Ajusta el espacio para que quepan más */
        font-size: 14px;   /* Texto ligeramente más pequeño en móvil */
    }
}
h1, h2, h3, h4, h5, h6 {font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #343a40;
  letter-spacing: 0.04em;
}

h1 {
  font-size: 3rem;
  line-height: 5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 1.3rem;
  text-transform: none; /* 🔴 clave: evita fatiga visual */
}

h5 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
}

/* =====================
   SUBHEADINGS
===================== */

.subheading {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.15rem;
  color: #6c757d;
}

.subheading-custom {
font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 0.25rem;
}

/* =====================
   RESUME SECTIONS
===================== */

section.resume-section {
  border-bottom: 3px solid #e9ecef;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

@media (min-width: 768px) {
  section.resume-section {
    min-height: 100vh;
  }
}

@media (min-width: 992px) {
  section.resume-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* =====================
   CUSTOM BLOCKS (NEW)
===================== */

.resume-block {
  margin-bottom: 3.5rem;
}

.block-title {
  font-size: 1.9rem;
  border-bottom: 2px solid #1c60ff;
  padding-bottom: 0.4rem;
  margin-bottom: 2rem;
}

.sub-block-title {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  color: #343a40;
}

/* =====================
   TEACHING ITEMS
===================== */

.teaching-item {
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  border-left: 4px solid #1c60ff;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
}

.teaching-item:hover {
  background-color: #f2fbff;
}

/* Asegurar que la card sea un bloque y respete el ancho si es necesario */
.card1 {
  text-decoration: none;
  color: #404040; /* Tu color base */
  transition: all 0.3s ease-out;
}

/* Ajuste para el título dentro de la card1 */
.card1 h3.item-title {
  color: #00838d; /* Color inicial del título */
  margin-bottom: 8px;
  font-size: 1.25rem;
  transition: color 0.3s ease-out;
}

/* Estilo para los párrafos de detalle */
.card1 p {
  font-size: 15px; /* Un poco más pequeño para que quepa bien */
  font-weight: 400;
  line-height: 22px;
  color: #666;
  margin-bottom: 10px;
}

/* Ajuste de la fecha */
.card1 p.small {
  font-size: 13px;
  color: #999;
}

/* EFECTO HOVER: Todo el texto a blanco cuando el círculo crece */
.card1:hover h3.item-title,
.card1:hover p,
.card1:hover .subheading-custom,
.card1:hover p.small {
  color: #ffffff !important;
  transition: all 0.3s ease-out;
}

/* Quitamos el border-left azul del estilo anterior para que luzca la card limpia */
.teaching-item.card1 {
  border-left: none;
  margin-bottom: 1.5rem;
}
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.item-title {
  margin: 0;
  font-weight: 600;
}

.item-title a {
  text-decoration: none;
}

.item-title a:hover {
  text-decoration: underline;
}

.item-date {
font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  color: #007bff;
  white-space: nowrap;
}

.item-meta {
  font-size: 0.95rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.item-details {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

/* =====================
   LINKS & COLORS
===================== */

a {
  color: #001E62;
}

a:hover,
a:focus,
a:active {
  color: #824027;
}

.text-primary {
  color: #03329f !important;
}

.bg-primary {
  background-color: #001E62 !important;
}

/* =====================
   SIDENAV (UNCHANGED, REFINED)
===================== */

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }

  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: .5rem;
  }

  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: .5rem solid rgba(255,255,255,.2);
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }

  #sideNav .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
}

/* =====================
   ICONS
===================== */

.list-social-icons a {
  color: #495057;
}

.list-social-icons a:hover {
  color: #001E62;
}

.list-social-icons a .fa-lg {
  font-size: 1.6rem;
}

.list-icons {
  font-size: 2.8rem;
}

.list-icons .list-inline-item i:hover {
  color: #001E62;
}
/* =====================
   MEDIA & PUBLICATIONS
===================== */

.media-item {
  margin-bottom: 3rem;
}

.media-meta {
  font-size: 0.85rem;
  color: #868e96;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1rem;
}
.media-btn.see-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fdfeff; /* Azul oscuro profesional */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #2c3e50; /* Borde del mismo color que el fondo */
    border-bottom: 3px solid #1a252f; /* Borde inferior más oscuro */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.media-btn.see-more-btn:hover {
    background-color: #cee7ff; /* Azul más claro en hover */
    border-color: #34495e;
    border-bottom-color: #1a252f; /* Mantener el borde inferior oscuro en hover */
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.media-btn.see-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* Button – académico y sobrio */
.media-btn {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  border: 1px solid #001E62;
  border-radius: 2px;
  color: #001E62;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.media-btn:hover {
  background-color: #001E62;
  color: #ffffff;
}

/* =====================
   PDF / PRINT FRIENDLY
===================== */

@media print {
  .media-btn {
    border: none;
    padding: 0;
    color: #000;
    font-size: 0.9rem;
  }

  .media-btn::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    color: #555;
  }
}
/* =====================
   CV LISTS
===================== */

.section-subtitle {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #343a40;
}

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

.cv-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cv-meta {
  color: #868e96;
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.cv-paragraph {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

/* =====================
   PRINT / PDF
===================== */

@media print {
  a {
    color: #000;
    text-decoration: none;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    color: #555;
  }
}
.photo-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}
.field-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}



/* Imagen de perfil grande, centrada y responsive */
.img-profile {
  width: 200px !important;
  height: 200px !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  margin: 0 auto;
  border-radius: 50%; /* manteniendo circular */
  border: 0.5rem solid rgba(255,255,255,0.2); /* igual que antes */
}

.cv-special-link {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    background: rgba(231, 76, 60, 0.1) !important;
    border-radius: 10px !important;
    margin: 5px 10px !important;
    border-left: 4px solid #ffffff !important;
}

.cv-special-link:hover {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #fff2f1 !important;
}

.cv-text {
    position: relative;
}
/* Estilo base de la barra (Transparente al inicio) */
#mainNav {
  background-color: rgba(0, 0, 0, 0.7); /* O transparente: transparent; */
  backdrop-filter: blur(10px); /* Efecto de desenfoque moderno */
  transition: background-color 0.3s ease;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Ajustes para el nombre y foto */
.navbar-brand img {
  border: 2px solid #fff;
}

/* Asegurar que el contenido no quede debajo de la barra */
body {
  padding-top: 70px; /* Ajusta según el grosor de tu barra */
}

/* Estilo para los links */
#mainNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: #fff;
}

/* En móviles, fondo sólido para que se lea el menú */
@media (max-width: 991.98px) {
  #mainNav {
    background-color: #007bff; /* Color sólido de tu elección */
  }
}

/* Elimina el margen lateral que empuja el contenido a la derecha */
body,
#sideNav,
.container-fluid,
#wrapper {
    padding-left: 0 !important;
    margin-left: 0 !important;
}


/* Ajuste de la miniatura de imagen */
.navbar-brand img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

#mainNav {
    /* Azul oscuro con transparencia equilibrada */
    background-color:  rgba(1, 33, 105, 0.9) !important;
    /* Esto evitará que el texto del fondo moleste a la lectura */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

/* Espaciado para los enlaces del menú */
.nav-link {
    margin-left: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 991.98px) {
    /* Fondo del área desplegable */
    .navbar-collapse {
    background-color: rgba(1, 33, 105, 0.95) !important;
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    /* Asegurar que los links se vean blancos y grandes en móvil */
    .navbar-nav .nav-link {
        color: white !important;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
}


@import url(https://fonts.googleapis.com/css?family=Raleway:400,900);

body{
  font-family: 'Raleway', sans-serif;
  color: #333;
}

header h1{
  text-align: center;
  font-weight: bold;
  margin-top: 0;
}

 header p{
   text-align: center;
   margin-bottom: 0;
 }

.hexa{
  border: 0px;
  float: left;
  text-align: center;
  height: 35px;
  width: 60px;
  font-size: 22px;
  background: #f0f0f0;
  color: #3c3c3c;
  position: relative;
  margin-top: 15px;
}

.hexa:before{
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-bottom: 15px solid #f0f0f0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  top: -15px;
}

.hexa:after{
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 15px solid #f0f0f0;
  bottom: -15px;
}

.timeline {
  position: relative;
  padding: 0;
  width: 100%;
  margin-top: 20px;
  list-style-type: none;
}

.timeline:before {
  position: absolute;
  left: 50%;
  top: 0;
  content: ' ';
  display: block;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgb(213,213,213);
  background: -moz-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
  background: -webkit-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
  background: -o-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
  background: -ms-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
  background: linear-gradient(to bottom, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
  z-index: 5;
}

.timeline li {
  padding: 2em 0;
}

.timeline .hexa{
  width: 16px;
  height: 10px;
  position: absolute;
  background: #00c4f3;
  z-index: 5;
  left: 0;
  right: 0;
  margin-left:auto;
  margin-right:auto;
  top: -30px;
  margin-top: 0;
}

.timeline .hexa:before {
  border-bottom: 4px solid #00c4f3;
  border-left-width: 8px;
  border-right-width: 8px;
  top: -4px;
}

.timeline .hexa:after {
  border-left-width: 8px;
  border-right-width: 8px;
  border-top: 4px solid #00c4f3;
  bottom: -4px;
}

.direction-l,
.direction-r {
  float: none;
  width: 100%;
  text-align: center;
}

.flag-wrapper {
  text-align: center;
  position: relative;
}

.flag {
  position: relative;
  display: inline;
  background: rgb(255,255,255);
  font-weight: 600;
  z-index: 15;
  padding: 6px 10px;
  text-align: left;
  border-radius: 5px;
}

.direction-l .flag:after,
.direction-r .flag:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  height: 0;
  width: 0;
  margin-left: -8px;
  border: solid transparent;
  border-bottom-color: rgb(255,255,255);
  border-width: 8px;
  pointer-events: none;
}

.direction-l .flag {
  -webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  -moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

.direction-r .flag {
  -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

.time-wrapper {
  display: block;
  position: relative;
  margin: 4px 0 0 0;
  z-index: 14;
  line-height: 1em;
  vertical-align: middle;
  color: #fff;
}

.direction-l .time-wrapper {
  float: none;
}

.direction-r .time-wrapper {
  float: none;
}

.time {
  background: #00c4f3;
  display: inline-block;
  padding: 8px;
}

.desc {
  position: relative;
  margin: 1em 0 0 0;
  padding: 1em;
  background: rgb(254,254,254);
  -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
  -moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
  box-shadow: 0 0 1px rgba(0,0,0,0.20);
  z-index: 15;
}

.direction-l .desc,
.direction-r .desc {
  position: relative;
  margin: 1em 1em 0 1em;
  padding: 1em;
  z-index: 15;
}

@media(min-width: 768px){
  .timeline {
    width: 660px;
    margin: 0 auto;
    margin-top: 20px;
  }

  .timeline li:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
  }

  .timeline .hexa {
    left: -28px;
    right: auto;
    top: 8px;
  }

  .timeline .direction-l .hexa {
    left: auto;
    right: -28px;
  }

  .direction-l {
    position: relative;
    width: 310px;
    float: left;
    text-align: right;
  }

  .direction-r {
    position: relative;
    width: 310px;
    float: right;
    text-align: left;
  }

  .flag-wrapper {
    display: inline-block;
  }

  .flag {
    font-size: 18px;
  }

  .direction-l .flag:after {
    left: auto;
    right: -16px;
    top: 50%;
    margin-top: -8px;
    border: solid transparent;
    border-left-color: rgb(254,254,254);
    border-width: 8px;
  }

  .direction-r .flag:after {
    top: 50%;
    margin-top: -8px;
    border: solid transparent;
    border-right-color: rgb(254,254,254);
    border-width: 8px;
    left: -8px;
  }

  .time-wrapper {
    display: inline;
    vertical-align: middle;
    margin: 0;
  }

  .direction-l .time-wrapper {
    float: left;
  }

  .direction-r .time-wrapper {
    float: right;
  }

  .time {
    padding: 5px 10px;
  }

  .direction-r .desc {
    margin: 1em 0 0 0.75em;
  }
}

@media(min-width: 992px){
  .timeline {
    width: 800px;
    margin: 0 auto;
    margin-top: 20px;
  }

  .direction-l {
    position: relative;
    width: 380px;
    float: left;
    text-align: right;
  }

  .direction-r {
    position: relative;
    width: 380px;
    float: right;
    text-align: left;
  }
}