/* Header */
.a-logo {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.header-logo {
  width: 150px;
}

@media (max-width: 768px) {
  .header-logo {
    width: 130px;
  }
}

@media (max-width: 576px) {
  .header-logo {
    width: 100px;
  }
}

.logo-title {
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 0px;
}

.logo-slogan {
  font-weight: 600;
  font-size: 0.62rem;
  margin-bottom: 0px;
  color: var(--special);
}

/* Navegación */
.navbar {
  padding: 0;
}

.nav-link-special {
  background-color: var(--white-special);
  border-radius: 0.5rem;
  box-shadow: 2px 2px 1px 0px rgba(243, 115, 53, .2);
}

.nav-link-special:hover {
  background-color: var(--special-light);
}

.navbar-nav li:last-child a {
  margin-right: 0;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark)
}

.navbar-light .navbar-nav .active>.nav-link {
  color: var(--special-light);
  background-color: var(--special);
}

@media (max-width: 767px) {
  .navbar {
    background-color: var(--special-light);
    padding: 0.5rem;
  }

  .nav-link-special {
    padding-left: 1rem !important;
  }

  .navbar-nav li:last-child a {
    margin-right: 0.5rem;
  }
}

/* Main */
.carousel-inner {
  background-color: #00336952;
}

.carousel-item {
  height: 100%;
}

.carousel-item>img {
  height: 70vh;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 768px) {
  .carousel-item>img {
    height: 25vh;
  }
}

.carousel-caption {
  height: 100%;
  bottom: 0;
  padding-top: 150px
}

.cont-caption {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.carousel-caption h1,
.carousel-caption h2 {
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 3rem;
  line-height: 1.1;
}

.carousel-caption p {
  font-weight: 600;
  margin-bottom: 0px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.titulo {
  text-align: center;
  padding: 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
}

h2.title-banner {
  color: var(--white-special);
  font-size: clamp(1.3rem, 5vw, 5rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0px;
}

p.subtitle-banner {
  color: var(--white-special);
  font-size: clamp(.05rem, 3vw, 1.5rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.background-overlay {
  background-color: var(--special-overlay);
  background-image: url(../img/overlay.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}

.background-overlay-2 {
  background-color: rgba(243, 115, 53, 0.3);
  /* background-image: url(../img/overlay.svg); */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}

/* Cards nivel */
.card-nivel {
  background-color: var(--white-special);
  border: none;
  border-radius: 0.6rem;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: center;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  max-width: 30rem;
}

.bg-preescolar,
.bg-primaria,
.bg-secundaria,
.bg-preparatoria,
.bg-after {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 230px;
  height: 70vh;
}

.bg-preescolar p,
.bg-primaria p,
.bg-secundaria p,
.bg-preparatoria p,
.bg-after p {
  width: 80%;
}

/* banners niveles*/

.card-nivel-img {
  width: 18%;
  margin-bottom: 0.8rem;
}

.title-nivel {
  font-size: 2rem;
}

/* Noticias */
.card-blog {
  border: unset;
  background-color: transparent;
  transition: .4s;
}

.card-body-blog {
  background-color: var(--white-special);
  border-radius: 0.6rem;
  min-height: 208px;
}

.card-actividades {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card-blog-img {
  height: 320px;
  overflow: hidden;
  border-radius: 0.6rem;
}

.card-blog-img>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.card-title {
  color: var(--special);
  font-size: var(--fsize-xs2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.card-date {
  color: var(--special);
  font-size: var(--fsize-xxs2);
  font-weight: 700;
}

.card-img-calendario {
  height: 18px;
  vertical-align: text-bottom;
}

.card-text {
  color: var(--dark);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.card-blog:hover .btn-mas>img {
  animation: .9s arrowMove ease alternate infinite;
}

.card-blog:hover .card-blog-img>img {
  animation: .9s imgZoom ease both;
}


.card-blog-img,
.card-body-blog {
  box-shadow: 0px 4px 10px 1px rgb(0, 0, 0, .1);
}

.card-blog:hover .card-blog-img,
.card-blog:hover .card-body-blog {
  box-shadow: 0px 4px 10px 1px rgb(0, 0, 0, .3);
}

.publicado_por {
  font-size: .7rem;
  color: var(--dark-50);
  line-height: 1.8;
}

.btn-mas {
  color: var(--special);
  font-weight: bold;
}

.btn-mas:hover {
  color: var(--special-dark);
}

/* Leer blog */

.leer {
  max-width: 900px;
  margin: 3rem auto;
}

.leer-img {
  /* height: 350px; */
  overflow: hidden;
  border-radius: 0.25rem;
}

.leer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.leer-titulo {
  font-size: var(--fsize-xs);
  color: var(--color-special-dark);
}

.leer-subtitulo {
  color: var(--color-special-dark);
}

/* Marcas */

.clientes {
  background-position: center;
  background-size: 280px 110px;
  border-radius: 20px 20px 20px 20px;
}

.clientes-box img {
  width: 100%;
  max-width: 100px;
}

.clientes-box img:hover {
  transition: .5s all;
  transform: scale(1.2);
  cursor: pointer;
}

.clientes-sector {
  font-weight: bold;
  color: var(--special);
}

.flickity-viewport {
  height: 210px !important;
}

.carousel-cell {
  min-width: 90px;
  height: 180px;
  margin-right: 10px;
  padding: 1.5rem;
  border-radius: 5px;
  counter-increment: carousel-cell;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.carousel-cell-galeria {
  max-width: 300px;
  height: 180px;
  margin: 10px;
  counter-increment: carousel-cell;
  border-radius: 30px;
  background-color: #FFFFFF;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-cell:hover {
  animation: .5s bottomTop2 forwards;
  opacity: 1;
}

.carousel-cell:before {
  display: block;
  text-align: center;
  content: counter(carousel-cell);
  line-height: 200px;
  font-size: 80px;
  color: white;
}

.a-carousel {
  display: flex;
  align-items: center;
}

/* Card */
.titulo-card {
  color: #2B64AD;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
}

.card-body {
  padding: 1rem;
}

.card-text {
  font-weight: 500;
}

.card-img-top {
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}

/* General */

.wrap-words-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.dropdown-toggle {
  white-space: unset;
}

.video-responsive {
    width: 100%;
    max-width: 500px; /* tamaño grande en desktop */
    height: auto;
    border-radius: 10px;
}