body {
  margin: 0;
  font-family: 'DM Serif Text', serif;
  background-image: url(../image/fondoRojo.avif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  overflow-x: hidden;
}

.vision-expandido1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 0 20px 50px 20px;
  max-width: 1300px;
  margin: auto;
  position: relative;
}

.intro-cursos {
  text-align: center;
  padding: 20px 20px 40px 20px; 
  max-width: 900px;
  margin: 0 auto;
}
.intro-cursos5 {
  color: #ffffff;
  text-align: center;
  padding: 20px 20px 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.intro-cursos5 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}
.intro-cursos1 {
  text-align: center;
  padding: 20px 20px 40px 20px;
  max-width: 900px;
  margin: 400px auto;
}
.intro-subtitulo {
  color: #ff7043;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.95rem;
  display: inline-block;
  position: relative;
  margin-bottom: 18px;
}

.intro-subtitulo::before {
  content: "";
  width: 4px;
  height: 20px;
  background: #e94f37;
  position: absolute;
  left: -14px;
  top: 0;
  border-radius: 2px;
}

.intro-cursos h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}
.intro-cursos1 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}
.intro-cursos .resaltado {
  color: #ff7043;
}

.intro-cursos p {
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.cursos-container {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-left: -170px;
  justify-items: center;
}
.cursos-grid2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: -350px;
  margin-left: 220px;
  justify-items: center;
}
.cursos-grid3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: -350px;
  margin-left: 0px;
  justify-items: center;
}
.cursos-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 350px;
  margin-left: 220px;
  justify-items: center;
}
.intro-cursos5 img{
  position: absolute;
  width: 130px;
  height: 100px;
  margin-top: -100px;
  margin-left: 350px;
  margin-bottom: -100px;
}
.intro-cursos1 img{
  position: absolute;
  width: 130px;
  height: 90px;
  margin-top: -100px;
  margin-left: 350px;
  margin-bottom: -100px;
}
.modal-content {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  width: 320px;
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.modal-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.modal-subtitulo {
  font-weight: 600;
  color: #e94f37;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

h2 {
  font-size: 22px;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}

.curso-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.curso-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 16px;
  object-fit: cover;
  height: 180px;

}
.curso-img-b {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 16px;
  object-fit: cover;
  height: 180px;
  object-position: center bottom; 
}
.curso-img-r {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 16px;
  object-fit: cover;
  height: 180px;
  object-position: center top; 
}
.curso-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.curso-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.curso-info li {
  padding: 10px 0;
  font-size: 15px;
  color: #444;
  border-bottom: 1px solid #eee;
}

.curso-btn {
  background-color: #e94f37;
  color: #000000;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
  align-self: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 79, 55, 0.3);
}

.curso-btn:hover {
  background-color: #fff;
  color: #e94f37;
  border: 2px solid #e94f37;
  box-shadow: none;
}
.transition-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #e94f37;
  background: none;
  border: none;
  font-size: 28px;
  text-decoration: none;
  z-index: 100;
}


.transition-btn:hover {
  opacity: 0.7;
  cursor: pointer;
  color: antiquewhite;
}

.transition-btn.slide-left-red {
  position: absolute;
  top: 20px;
  left: 20px;
}

.bubble {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e94f37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 1000;
}

.bubble img {
  width: 28px;
  height: 28px;
}

.bubble-whatsapp {
  right: 80px;
}

.bubble-whatsapp:hover {
  background: #f0b2a9;
  color: #e94f37;
}

.bubble-chatbot {
  right: 20px;
}

.bubble-chatbot:hover {
  background: #ffb7a8;
  color: #e94f37;
}

.bubble:hover {
  transform: scale(1.1);
}

#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
  transform: translateX(-100%);
  transition: none;
}

#page-transition.slide-right-white,
#page-transition.slide-right-red {
  transform: translateX(-100%);
}

#page-transition.slide-left-white,
#page-transition.slide-left-red {
  transform: translateX(-100%);
}

#page-transition.slide-right-white.active,
#page-transition.slide-right-red.active,
#page-transition.slide-left-white.active,
#page-transition.slide-left-red.active {
  transition: transform 0.7s ease-in-out;
  transform: translateX(0);
}

#page-transition.slide-right-white { background: white; }
#page-transition.slide-right-red { background: rgb(204, 25, 25); }
#page-transition.slide-left-white { background: white; }
#page-transition.slide-left-red { background: white; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-20px);
  }
}

@media (max-width: 1024px) {
  .cursos-grid {
    margin-left: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
    .cursos-grid2 {
    margin-left: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
  .cursos-grid3 {
    margin-left: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
  .cursos-grid4 {
    margin-left: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vision-expandido1 {
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
  }

  .intro-cursos h2 {
    font-size: 1.8rem;
  }

  .intro-cursos p {
    font-size: 1rem;
  }

  .intro-subtitulo::before {
    height: 16px;
    top: 2px;
  }

  .modal-content {
    width: 100%;
    max-width: 90%;
    min-height: auto;
  }

  .transition-btn {
    top: 10px;
    left: 10px;
  }
}

@media (max-width: 600px) {
  .cursos-grid {
    grid-template-columns: 1fr;
  }
  .cursos-grid2 {
    grid-template-columns: 1fr;
  }
  .cursos-grid3 {
    grid-template-columns: 1fr;
  }
  .bubble-whatsapp {
    right: 70px;
    bottom: 15px;
  }

  .bubble-chatbot {
    right: 15px;
    bottom: 15px;
  }
  body{
    overflow: auto
  }
  .curso-wrapper {
  position: relative;
  margin-bottom: 80px;
  text-align: center;
  width: 70%;
  max-width: 100%;
  max-height: 30px;
  margin: auto;
  padding-top: 60px;
  padding-bottom: 300px;
  }
    .intro-cursos{
    margin-top: -100px;
    margin-bottom: 250px;
  }
      .intro-cursos5{
    margin-top: -250px;
    margin-bottom: -100px;
  }
  .intro-cursos1{
    margin-top: auto;
    margin-bottom: 250px;
  }
}.curso-img-out {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;

  
.curso-img-b {
  width: 180px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 20%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 4px solid white;
}

}
.curso-wrapper {
  position: relative;
  margin-bottom: 80px;
  text-align: center;
  width: 80%;
  height: 50px;
}

.curso-img-out {
  position: relative;
  z-index: 2;
  margin-bottom: -60px;
}

.curso-img-b {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 4px solid white;
}

.nuevo-curso {
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  max-width: 90%;
  margin: 0 auto;
  padding-top: 80px; 
  min-height: 100px; 
  text-align: left;
}
.nuevo-curso p{
  font-size: 11px;
  color: #555;
  margin: 10px 0;
}

.curso-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  border-top: 1px solid #ddd;
}

.curso-info li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-family: 'DM Serif Text', serif;
}

.curso-btn {
  background: #e94f37;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 6px 14px rgba(233, 79, 55, 0.2);
}

.curso-btn:hover {
  background: #ffb7a8;
  color: #e94f37;
}

.main-header {
  width: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: none;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.main-nav ul {
  display: flex;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'DM Serif Text', serif;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}

.nav-link.active,
.nav-link:hover {
  color: #e94f37;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 70%;
  height: 2px;
  background: #e94f37;
  border-radius: 2px;
  margin-top: 4px;
}

.header-btn-academia {
  background: #fff;
  color: #e94f37;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: bold;
  border: none;
  border-radius: 28px;
  padding: 12px 36px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(233,79,55,0.08);
  transition: background 0.2s, color 0.2s;
}

.header-btn-academia:hover {
  background: #e94f37;
  color: #fff;
}

.main-footer {
  margin-bottom: -50px;
  margin-top: 300px;
  background: #111;
  color: #fff;
  padding: 28px 0 16px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  min-width: 300%;
}
.footer-top {
  text-align: center;
  margin-bottom: 18px;
}
.footer-logo {
  height: 38px;
  margin-bottom: 8px;
}
.footer-desc {
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.footer-social a {
  display: inline-block;
  margin: 0 8px;
}
.footer-social img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #e94f37;
  padding: 4px;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 10px;
}
.footer-links > div {
  min-width: 140px;
  max-width: 220px;
}
.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #e94f37;
  font-weight: bold;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 6px;
}
.footer-links a, .footer-links span {
  color: #fff;
  text-decoration: none;
  font-size: 0.97rem;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-socio {
  height: 32px;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .main-header {
    height: auto;
    flex-direction: column;
    padding: 10px 8px;
    text-align: center;
  }
  .main-nav {
    flex-direction: column;
    padding: 0 8px;
  }
  .main-nav ul {
    gap: 24px;
  }
  .header-btn-academia {
    margin-top: 12px;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  .main-footer{
    min-width: auto;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}
.main-header {
  width: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: none;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 44px;
  width: auto;
  margin-right: 18px;
}.main-header,
.main-header * {
  color: #fff !important;
  fill: #fff !important;
}