/* styles.css */

body {
  font-family: Arial, sans-serif;
  background-color: #182542;
  color: #61dafb;
}

header {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.profile-pic {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
}

.nav-link {
  color: #d3d3d3;
  cursor: pointer;
}
.nav-link:hover { color: #0056b3; }
.nav-link.active {
  color: #ffffff;
  font-weight: bold;
  position: relative;
}
.nav-link.active::before {
  content: '\f061';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
}

.span-description {
    display: block;
    text-align: justify;
}

.fixed-left {
  position: fixed;
  top: 0; bottom: 0;
  width: 20%;
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
}
.bg-left {
  background-color: #182542;
  color: #61dafb;
  height: 100%;
  width: 100%;
  padding: 20px;
}

.container {
  max-width: 1500px;
}

.course-link,
.course-link:hover,
.course-link:focus {
  text-decoration: none !important;
}

.subsection {
  text-decoration: none !important;
  background-color: #22345c;
  color: #61dafb;
  padding: 20px;
  margin: 0 -12px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.3s;
}
.subsection.hovered {
  background-color: #253d6c;
  transform: scale(1.02);
}

.subsection-title { font-size: 1.5em; margin-bottom: 10px; }
.subsection-date {
  font-size: 0.9em;
  color: #d3d3d3;
  display: block;
  margin-bottom: 5px;
}

h5, h6 { color: #ffffff; }
.nested-list { padding-left: 20px; }

.tech-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-badge {
  background-color: rgba(45,212,191,0.1);
  color: rgb(94 234 212);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9em;
}

.span-description { color: #9aa2ac; }
.label-white {
  color: #fff;
  font-weight: bold;
  margin-right: 4px;
}

.offcanvas-fullscreen {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  border-radius: 0;
  padding: 0 !important;
  background: #182542;
}
.offcanvas-fullscreen .offcanvas-body {
  padding: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#carouselProject1 .carousel-item,
#carouselProject2 .carousel-item {

}

#carouselProject1 .carousel-inner,
#carouselProject2 .carousel-inner {
  background: #222; 
  overflow: hidden; 
}

#carouselProject1 .carousel-item,
#carouselProject2 .carousel-item {
    /* display:flex;   <--- QUITA ESTA LINEA */
    height:90vh;
    min-height:200px;
    width:100%;
    background:#222;
    text-align: center; /* Opcional para centrar horizontal */
}

/* Centrado vertical/horizontal solo en la imagen */
#carouselProject1 .carousel-item img,
#carouselProject2 .carousel-item img {
    object-fit: contain;
    max-width:95vw;
    max-height:80vh;
    width:auto;
    height:auto;
    background:transparent;
    margin: auto;
    display: block;
    vertical-align: middle;
}
.carousel-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.btn[data-bs-toggle="collapse"] .fa-chevron-down {
  transition: transform .3s;
}
.btn.collapsed .fa-chevron-down {
  transform: rotate(-90deg);
}
/* Asegura el menú lateral ocupa todo el ancho en móvil */
@media (max-width: 767.98px) {
  .fixed-left,
  .bg-left {
    position: static !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: unset !important;
    left: 0 !important;
    padding: 20px !important;
    height: auto !important;
    box-shadow: none !important;
  }
  .nav.flex-column {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
  }
  .nav.flex-column .nav-link {
    text-align: left;
    margin: 4px 0;
    font-size: 1.1em;
    font-weight: 400;
  }
  h1, h5 {
    text-align: left !important;
  }
}

@media (min-width: 768px) {
  .fixed-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20vw; /* O col-md-5 según Bootstrap */
    z-index: 1000;
    height: 100vh;
  }
  .bg-left {
    height: 100vh;
    overflow-y: auto;
  }
}

