/* ==============================
   SPLIT LAYOUT
============================== */
.split-container {
  position: relative;
  overflow: hidden;
}

.split-item {
  width: 50%;
  float: left;
}

.split-item-left {
  position: relative;
  z-index: 1;
}

.split-item-right {
  position: relative;
  z-index: 2;
}

.split-item-left:after {
  content: "";
  position: absolute;
  top: 0;
  right: -7%;
  bottom: 0;
  width: 14%;
  background: white;
  transform: skewX(-8deg);
  z-index: 0;
}

.carousel.slide.carousel.slide.bot {
  display: none;
}

/* ==============================
   GENERAL
============================== */
body {
  font-family: 'Libre Baskerville', serif;
}

/* ==============================
   CABECERA SOCIAL
============================== */
#social {
  position: relative;
  top: 0;
  z-index: 1050;
  background: #377eda !important;
  margin: 0;
  padding: 0;
}

/* ==============================
   NAVBAR
============================== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #377eda !important;
  margin: 0;
  box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.5);
}

/* ---- FIX CENTRADO Y ESTILO ---- */
#navbar .navbar-nav {
  width: 100%;
  justify-content: center; /* centra el menú */
}

#navbar .nav-item {
  margin: 0; /* elimina márgenes que desalineaban */
}

#navbar .navbar-nav .nav-link {
  padding: .6rem 1rem;
  font-weight: 500;
  letter-spacing: .2px;
  border-radius: 10px;
}

#navbar .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, .08);
}

/* Dropdown */
#navbar .dropdown-menu {
  background: #377eda !important;
  border: none;
  border-radius: 12px;
  padding: .5rem;
}

#navbar .dropdown-item {
  color: aliceblue;
  border-radius: 10px;
  padding: .55rem .8rem;
}

#navbar .dropdown-item:hover {
  background: rgba(255, 255, 255, .12);
  color: aliceblue;
}

/* Toggler (corrige padding:none) */
.navbar-toggler {
  outline: none !important;
  box-shadow: none !important;
  padding: .25rem .5rem !important;
}

/* ==============================
   CARRUSEL
============================== */
.carousel-inner .carousel-item {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-inner .carousel-item::before {
  content: '';
  background-color: rgba(12, 11, 11, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.carousel-inner .carousel-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 37%;
  left: 0;
  right: 0;
}

.carousel-inner .carousel-caption h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 600;
  width: 80%;
  margin: 0px auto 10px auto;
}

.carousel-inner .carousel-caption p {
  font-size: 20px;
  width: 80%;
  margin: 0px auto 20px auto;
}

/* ==============================
   CARDS / PROGRAMAS
============================== */
.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card {
  height: 100%;
}

.course .box {
  padding: 10px 10px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

/* ==============================
   GOOGLE MAP
============================== */
.google-map {
  padding-bottom: 50%;
  position: relative;
}

.google-map iframe {
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  position: absolute;
}

/* ==============================
   MEDIA QUERIES
============================== */
@media (max-width: 768px) {
  .carousel-inner .carousel-caption h2 {
    font-size: 38px;
  }
}

@media (max-width: 872px) {
  .split-item-left:after {
    right: -05%;
    width: 10%;
    bottom: -250%;
    transform: skewX(-2.5deg);
  }
}

@media (max-width: 577px) {
  .carousel-inner .carousel-caption h2 {
    font-size: 25px;
  }

  .carousel-inner .carousel-caption p {
    font-size: 13px;
  }
}

@media (min-width: 0px) and (max-width: 425px) {
  #social {
    display: none;
  }

  .text-white.text-center.text-lg-start.bg-dark.mt-lg-5 {
    display: none;
  }

  .carousel-inner .carousel-caption h2 {
    font-size: 25px;
  }

  .carousel-inner .carousel-caption p {
    font-size: 13px;
  }

  /* en móvil centrado también */
  #navbar .navbar-nav {
    justify-content: center;
  }
}

@media (min-width: 1399px) and (max-width: 3000px) {
  .navbar-expand.navbar-brand {
    font-size: 1.3vw;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .row.mt-5 {
    display: none;
  }

  .carousel.slide.bot {
    max-width: 50%;
  }

  .carousel.slide.carousel.slide.bot {
    display: inline-block;
  }
}