* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --color-primary: #e62f32;
  --color-two: #02943f;
  --color-three: #435e80;
  --color-text: rgb(80, 80, 80);
}

body {
  overflow-x: hidden;
  font-family: 'Comic Sans MS';
}

img {
  width: 100%;
  height: auto;
}

.section-my {
  margin: 100px 0;
}

@media screen and (max-width:991px) {
  .section-my {
    margin: 50px 0;
  }
}

.btn {
  border-radius: 30px;
  font-size: calc(0.5rem + .9vw);
}

@font-face {
  font-family: 'Comic Sans MS';
  src: url(../assets/font/Comic\ Sans\ MS.ttf);
  font-display: swap;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  color: rgb(80, 80, 80);
}

h1 {
  font-size: calc(1.6rem + .9vw);
  font-weight: 700;
}

h2 {
  font-size: calc(1.4rem + .9vw);
  font-weight: 500;
}

h3 {
  font-size: calc(1.2rem + .9vw);
}

h4 {
  font-size: calc(1rem + .9vw);
}

h5,
h6 {
  font-weight: 500;
}

a {
  text-decoration: none;
}

p {
  font-size: calc(0.8rem + .9vw);
  color: rgb(56, 56, 56);
  text-align: justify;
}

.btn {
  transform: scale(1);
  transition: transform .2s;
}

.btn:hover {
  transform: scale(1.05);
  transition: transform .2s;
}


picture {
  margin: 0;
  padding: 0;
}

.header-sub-1,
.header-sub-2 {
  width: 100%;
  color: white;
  position: relative;
}

.header-sub-1 {
  height: 4vh;
  background-color: var(--color-primary);
  padding: 20px;
}

.header-sub-1 span:nth-child(2) {
  margin-left: 15px;
}

.icon-socials-header {
  text-align: center;
}

.icon-socials-header a {
  text-decoration: none;
  color: white;
}

.icon-socials-header a i {
  margin: 0 10px;
  font-size: 18px;
}

.icon-socials-header a .icon-aule {
  width: 12%;
  height: auto;
  margin-left: 9.2px;
  margin-bottom: 4px;
}

.header-sub-2 {
  padding: 20px 20px;
  background-color: white;
  height: 9vh;
}

.header-sub-2 img {
  max-width: 100%;
  width: 6%;
}

.header-sub-2 .title-header span {
  padding-left: 10px;
  text-align: center;
  color: var(--color-text);
}

.header-sub-2 .title-header span:nth-child(1) {
  font-size: calc(0.5rem + .9vw);
}

.header-sub-2 .title-header span:nth-child(2) {
  font-size: calc(0.2rem + .9vw);
}

.header-sub-2 .call-me i {
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin-right: 10px;
  padding: 10px;
  border-radius: 100px;
}

.header-sub-2 .text-header {
  color: var(--color-text);
}

.header-sub-2 .text-header span:nth-child(2) {
  color: var(--color-primary);
  font-weight: 600;
}

.header-sub-2 .btn.btn-call-me {
  background-color: var(--color-primary);
  padding: 6px;
  margin-left: 20px;
  border-radius: 50px;
  color: white;
  font-size: calc(0.3rem + .9vw);
}

@media screen and (max-width:764px) {
  .header-sub-1 {
    flex-direction: column;
    padding: 22.5px 0;
  }

  .text-header-sub-1 {
    display: none;
  }

  .header-sub-2 {
    display: none !important;
  }
}



.navbar {
  position: relative;
  background-color: white;
  border-top: 2px solid rgb(225, 225, 225);
  padding-top: 5px;
  padding-bottom: 5px;
}

.navbar .offcanvas .offcanvas-body .nav-item {
  padding: 0 7px;
}

.navbar .offcanvas .offcanvas-body .nav-item .nav-link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 20px;
}

.offcanvas.hiding,
.offcanvas.show,
.offcanvas.showing {
  transition: all .5s;
}

.navbar .nav-item .nav-link.active {
  border-bottom: 2px solid var(--color-primary);
}

.nav-link-aule {
  background-color: var(--color-primary);
  color: #fff !important;
  padding: .7rem 1rem;
  border-radius: 50px;
  transition: transform .3s ease-in-out;
}

.nav-link-aule:hover {
  transform: translateY(-5px);
}


@media screen and (max-width:991px) {

  /* navbar buttons */
  .navbar-toggler {
    font-size: 23px;
    border: none;
  }

  .navbar-toggler i {
    color: var(--color-primary);
  }

  .nav-link-aule {
    background-color: var(--color-three);
    color: #fff !important;
    padding: .7rem 1rem;
    border-radius: 50px;
    transition: transform .3s ease-in-out;
    text-align: center;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .logo-nav-phone {
    width: 60px;
  }

  /* navbar canvas */
  .offcanvas {
    background-color: var(--color-primary);
    border-left: none !important;
  }

  .offcanvas-header .btn-close {
    margin-right: 0px !important;
    margin-bottom: 0px !important;
  }

  .navbar .offcanvas .offcanvas-body .nav-item .nav-link {
    color: white;
  }

  .navbar .offcanvas .offcanvas-body .nav-item .nav-link.active {
    color: rgb(255, 255, 255);
    text-align: center;
    background-color: var(--color-two);
    border-radius: 50px;
  }

}

@media screen and (max-width:764px) {
  .navbar {
    border-top: 0px;
    margin-top: 5px;
  }

  .navbar .offcanvas .offcanvas-body .nav-item .nav-link {
    font-size: 18px;
  }
}

@media screen and (max-width:567px) {

  /* width navbar canvas < 567px */
  .offcanvas-end {
    width: calc(300px + 1vw) !important;
  }
}

.coverpage {
  height: 100vh;
  position: relative;
}

.cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.coverpage .container-fluid {
  z-index: 1;
}


@media (max-width: 768px) {
  .coverpage {
    height: auto;
  }

  .cover-img {
    position: static;
    width: 100%;
    height: auto;
  }

  .container-fluid {
    position: static;
    padding: 1rem;
    text-align: center;
  }
}


@media screen and (max-width: 995px) {


  .coverpage .btn {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 1024px) {
  .coverpage {
    height: 40vh;
  }

}

.welcome.section-my {
  margin-top: 100px;
}

.welcome h2 {
  font-weight: 700;
}

.welcome img {
  max-width: 100%;
  width: 80%;
  height: auto;
  border-radius: 50%;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.363);
}

.welcome a {
  color: var(--color-primary);
  font-size: calc(0.6rem + .9vw);
  margin: 0 1rem;
}

.welcome .btn.btn-us {
  background-color: var(--color-primary);
  color: white;
}

@media screen and (max-width:764px) {
  .welcome.section-my {
    margin-top: 50px;
  }

  .welcome img {
    width: 50%;
    display: block;
    margin: auto;
  }
}

@media screen and (max-width:995px) {
  .container-publicity {
    display: block;
  }

  .publicity .col-publicity {
    width: 100%;
  }
}

@media screen and (max-width:765px) {

  .publicity .col-publicity.col-publicity-1 {
    border-radius: 30px 30px 0px 0px;
  }

  .col-publicity-2 img {
    border-radius: 0px 0px 30px 30px;
  }
}

.us {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333;
  text-align: center;
}

.us h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 10px;
}

.us h1::after {
  content: '';
  width: 60px;
  height: 3px;
  background-color: #e62f32;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  transition: .2s;
}

.us h1:hover::after {
  width: 90px;
  transition: .2s;
  background-color: #e62f32;
}

.us h1:hover {
  transition: .2s;
  color: #e62f32;
}


.us p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #000000;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 10px;
  transition: color 0.3s ease;
}

.us .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 40px;
}

.us .col-lg-6 {
  flex: 1 1 45%;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.us .col-lg-6:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.us .col-lg-12 {
  max-width: 700px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.us .col-lg-12:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.us h1,
.us p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.us h1 {
  animation-delay: 0.2s;
}

.us p {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.choose h2 {
  text-align: center;
  font-weight: 700;
}

.col-choose {
  padding: 12px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.263);
  border-radius: 30px;
  background-color: var(--color-two);
  height: 100%;
  transform: scale(1);
  transition: transform .3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.col-choose:hover {
  transform: scale(1.05);
  transition: transform .3s;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}


.choose img {
  display: block;
  margin: auto;
  text-align: center;
  width: 40%;
}

.choose h3,
.choose p {
  text-align: center;
  color: white;
}

.choose h3 {
  margin-top: 10px;
  font-size: calc(1.2rem + .9vw);
  font-weight: 700;
}

.choose p {
  font-size: calc(0.5rem + .9vw);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.gallery .container-gallery {
  background-color: var(--color-three);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.374);
}

.gallery .container-gallery img {
  border-radius: 20px;
  border: 3px solid white;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.374);
  object-fit: cover;
}

.event-buttons {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  /* Usar flexbox para alinear los botones */
  flex-wrap: wrap;
  /* Permitir que los botones se envuelvan */
  justify-content: center;
  /* Centrar los botones */
}

.event-button {
  background-color: var(--color-two);
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  /* Espaciado entre botones */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1 1 auto;
  /* Permitir que los botones crezcan y se reduzcan */
}

.event-button:hover {
  background-color: var(--color-three);
}

/* Media query para pantallas pequeñas */
@media (max-width: 576px) {
  .event-button {
    flex: 1 1 100%;
    /* Hacer que los botones ocupen el 100% del ancho en pantallas pequeñas */
    margin: 5px 0;
    /* Espaciado vertical entre botones */
  }

  .gallery .container-gallery {
    padding: 20px;
    /* Reducir padding en pantallas pequeñas */
  }

  .gallery .container-gallery img {
    max-width: 100%;
    /* Que las imágenes se adapten al ancho disponible */
    height: auto;
    /* Mantiene la proporción */
  }

}

.courses {
  background-image: url(../assets/slider/slider-1.webp);
  padding: 50px;
  position: relative;
  z-index: 2;
  background-size: cover;
  color: white;
  text-align: center;
}

.courses::after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  content: '';
  background-color: #0000006d;
  z-index: -1;
}

.courses h2 {
  font-weight: 700;
}

.courses h2,
.courses p {
  color: white;

}

.courses .text-courses {
  width: 80%;
  margin: auto;
}

.courses .card.card-courses {
  border: none;
  border-radius: 20px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.304);
}

.courses .card.card-courses .card-body {
  padding: 30px;
}

.courses .card.card-courses img {
  border-radius: 20px 20px 0 0;
}

.courses .card.card-courses .card-body h3 {
  text-align: start;
  font-weight: 700;
  color: var(--color-three);
}

.courses .card.card-courses .card-body p {
  font-size: calc(0.5rem + .9vw);
  color: rgb(56, 56, 56);
  text-align: justify;
  margin-bottom: 0;
}

.courses .card.card-courses .card-body .btn.btn-card-courses {
  margin-top: 15px;
  background-color: var(--color-primary);
  color: white;
}

@media screen and (max-width:995px) {
  .courses {
    padding: 30px;
    background-position: center;
  }

  .courses .text-courses {
    width: 95%;
    margin: auto;
  }

  .courses .card.card-courses img {
    max-width: 100%;
  }

  .courses .card.card-courses .card-body {
    padding: 20px;
  }

}

@media screen and (max-width:557px) {
  .courses .card.card-courses .card-body h3 {
    font-size: 19px;
  }
}

footer {
  margin-top: 100px;
  background-color: var(--color-primary);
}

footer .container-footer {
  padding: 40px 0;
}

footer img {
  width: 15%;
  height: auto;
  display: block;
  margin: auto;
}

footer .container-icon-footer {
  margin-top: 20px;
}

footer .container-icon-footer i {
  color: white;
  padding: 10px;
  border: 2px solid white;
  border-radius: 50%;
  margin: 0 5px;
  font-size: 18px;
}

footer .copyright {
  color: white;
  font-size: 15px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

footer ul a {
  color: white;
}

footer ul a:hover {
  color: white;
}

footer ul li {
  padding: 0 5px;
}

/* media screen footer */
@media screen and (max-width:557px) {
  footer img {
    width: 20%;
  }

  footer .container-icon-footer {
    margin-bottom: 20px;
  }

  footer .container-icon-footer i {
    font-size: 15px;
  }

  footer .copyright {
    text-align: center;
  }

  footer ul {
    justify-content: center;
  }
}




/*promotion books*/
.book-section {
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  margin-bottom: 30px;
}

.book-cover {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
}

.category-tabs .nav-link {
  font-weight: 600;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.category-tabs .nav-link.active {
  color: var(--color-three);
  background-color: rgba(13, 110, 253, 0.1);
  border-bottom: 3px solid var(--color-three);
}

.book-title {
  color: #fff;
  border-left: 4px solid var(--color-three);
  padding-left: 15px;
  margin: 20px 0 15px;
  font-size: 2rem;
}

.book-subtitle {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 20px;
}

.book-text,
.content-highlight p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}


.book-section .btn.btn-books {
  background-color: var(--color-two);
  color: #fff;
  font-size: 18px;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.book-section .btn.btn-books:hover {
  background-color: var(--color-three);
  color: #fff;
}

@media (max-width: 995px) {
  .book-cover {
    margin-bottom: 20px;
    max-width: 90%;
  }

  .book-title {
    font-size: 1.3rem;
  }

  .book-subtitle {
    font-size: 1.1rem;
  }

  .book-text,
  .content-highlight p {
    font-size: 0.95rem;

  }

  .book-section .btn.btn-books {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }
}

/* Estilos generales */
.fundamentos {
  background-color: #f9f9f9;
  padding: 50px 0;
  background-position: 0% 100%;
  background-size: 100% 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.fundamentos .texto {
  margin: 20px;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.fundamentos .texto:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.description {
  font-size: 22px;
  margin-bottom: 25px;
  color: #666;
  line-height: 1.5;
  text-align: justify;
}

.fundamentos .texto .title {
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.fundamentos .texto .title:hover {
  color: #00a954;
  transition: .2s;
}

.fundamentos .texto .title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: #00a954;
  transition: .2s;
}

.fundamentos .texto .title:hover::after {
  width: 150px;
  transition: .2s;
}

.fundamentos .row {
  display: flex;
  flex-wrap: wrap;
}

.fundamentos .texto {
  flex: 1;
}


@media screen and (max-width:768px) {
  .fundamentos .texto {
    margin: 15px 0 0 0px;
  }

  .fundamentos .texto .title {
    font-weight: 800;
    font-size: 20px;
  }
}

/* Sección del equipo */
.team-section {
  text-align: center;
  padding: 60px 20px;
}

.team-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #fff;
}

/* Contenedor de las tarjetas */
.team-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  background: whitesmoke;
  padding: 10px;
}

/* Tarjeta del personero */
.team-member {
  background: #fff;
  width: 260px;
  padding: 20px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  text-align: center;
  color: #333;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
}

/* Imagen */
.team-member img {
  width: 100%;
  height: 310px;
  /* Asegura que todas las imágenes tengan la misma altura */
  object-fit: fill;
  /* Recorta la imagen manteniendo el aspecto */
  display: block;
}

/* Texto */
.team-member h3 {
  font-size: 20px;
  margin: 15px 0 5px;
  color: #444;
}

.team-member p {
  font-size: 14px;
  color: #666;
}