 * {
   box-sizing: border-box;
 }

 body {
   margin: 0;
   font-family: "Poppins", sans-serif;
 }
 li{
  list-style: none;
 }

 /*Menu*/
 header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 15px 30px;
   background-color: #f6f6f6;
   color: white;
   width: 100%;
 }

 .logo-img {
   height: 6rem;
   width: auto;
 }

 nav {
   display: flex;
   gap: 20px;

 }

 nav a {
   color: #000;
   text-decoration: none;
   font-weight: 500;

 }

 .hamburger {
   display: none;
   flex-direction: column;
   cursor: pointer;
 }

 .hamburger div {
   width: 25px;
   height: 3px;
   background-color: #000;
   margin: 4px 0;
 }

 .container {
   display: flex;
   min-height: 100vh;
   background-color: #007bff;

 }

 /*Banners*/

 .carousel {
   position: relative;
   width: 100%;
   aspect-ratio: 1920 / 700;
   /* Mantiene proporción 1920x700 */
   overflow: hidden;
 }

 .slides {
   display: flex;
   height: 100%;
   transition: transform 0.5s ease-in-out;
 }

 .slide {
   flex: 0 0 100%;
   height: 100%;
 }

 .slide .img-d {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
 }

.slide .img-mb{
  display: none;
 }

 
 .nav-buttons {
   position: absolute;
   top: 50%;
   width: 100%;
   display: flex;
   justify-content: space-between;
   transform: translateY(-50%);
   z-index: 10;
 }

 .nav-buttons button {
   background: rgba(0, 0, 0, 0.4);
   border: none;
   color: white;
   font-size: 2rem;
   padding: 10px 15px;
   cursor: pointer;
 }

 .indicators {
   position: absolute;
   bottom: 15px;
   width: 100%;
   text-align: center;
   z-index: 10;
 }

 .dot {
   display: inline-block;
   width: 12px;
   height: 12px;
   margin: 0 6px;
   background-color: rgba(255, 255, 255, 0.5);
   border-radius: 50%;
   cursor: pointer;
 }

.mb{
  display: block;
}

 .dot.active {
   background-color: white;
 }

  @media (max-width: 768px) {

    .carousel {
    aspect-ratio: 750 / 1000;
    
}
  .slide .img-d {
     display: none;
      }

   .slide .img-mb{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    }
   }


 /*Cursos*/

 .course-carousel {
   position: relative;
   width: 100%;
   max-width: 1200px;
   margin: 50px auto;
   overflow: hidden;
 }

 .course-slides {
   display: flex;
   transition: transform 0.5s ease-in-out;
 }

 .course-slide {
   flex: 0 0 100%;
   display: flex;
   justify-content: center;
   gap: 20px;
   padding: 20px;
 }

 .course-card {
   background: white;
   border-radius: 10px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   overflow: hidden;
   width: 300px;
   flex-shrink: 0;
   display: flex;
   flex-direction: column;
 }

 .course-card img {
   width: 100%;
   height: 100%;
   object-fit: contain;
 }

 .course-card-content {
   padding: 15px;
   flex: 1;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }

 .course-card h3 {
   margin: 0 0 10px;
   font-size: 1.1rem;
   color: #333;
 }

 .course-card p {
   flex-grow: 1;
   font-size: 0.9rem;
   color: #555;
   margin-bottom: 15px;
 }

 .course-card button {
   align-self: start;
   padding: 8px 15px;
   border: none;
   background-color: #048cac;
   color: white;
   border-radius: 5px;
   cursor: pointer;
 }

 .course-nav-buttons {
   position: absolute;
   top: 50%;
   width: 100%;
   display: flex;
   justify-content: space-between;
   transform: translateY(-50%);
   z-index: 10;
 }

 .course-nav-buttons button {
   background: rgba(0, 0, 0, 0.4);
   border: none;
   color: white;
   font-size: 2rem;
   padding: 10px;
   cursor: pointer;
 }

 .course-indicators {
   text-align: center;
   margin-top: 10px;
 }

 .course-dot {
   display: inline-block;
   width: 12px;
   height: 12px;
   margin: 0 5px;
   background: #ccc;
   border-radius: 50%;
   cursor: pointer;
 }

 .course-dot.active {
   background: #3498db;
 }

 @media (max-width: 768px) {
   .course-slides {
     display: block;
     transform: none !important;
     transition: none !important;
   }

   .course-slide {
     display: block;
     padding: 0;
   }

   .course-card {
     width: 90%;
     margin: 20px auto;
     margin-top: 4rem;
   }

   .course-nav-buttons,
   .course-indicators {
     display: none;
   }

   .course-carousel {
     position: static;
     margin-top: 20px;
   }
 }


 /* NOS ACOMPAÑAN*/

 .title-encabezado {
   text-align: center;
   font-size: 2rem
 }

 .logo-carousel {
   width: 100%;
   overflow: hidden;
   background: white;
   padding: 20px 0;
 }

 .logo-carousel-track {
   display: flex;
   width: max-content;
   animation: logo-scroll 20s linear infinite;
   gap: 4vw;
   /* Espaciado flexible */
   align-items: center;
   padding-left: 100%;
   /* Para inicio suave del scroll */
 }

 .logo-carousel-track img {
   height: 40px;
   width: auto;
   object-fit: contain;
   filter: grayscale(100%);
   transition: filter 0.3s, transform 0.3s;
 }

 .logo-carousel-track img:hover {
   filter: grayscale(0%);
   transform: scale(1.05);
 }

 @keyframes logo-scroll {
   0% {
     transform: translateX(0);
   }

   100% {
     transform: translateX(-50%);
   }
 }

 /* 📱 Estilos responsivos */
 @media (min-width: 480px) {
   .logo-carousel-track img {
     height: 50px;
   }
 }

 @media (min-width: 768px) {
   .logo-carousel-track img {
     height: 60px;
   }
 }

 @media (min-width: 1024px) {
   .logo-carousel {
     padding: 30px 0;
   }
 }

 /*CONTACTO*/

 i{
    margin-right: 10px;
}
.content-form{
    max-width: 1170px; 
    margin-left: auto;
    margin-right: auto;
    padding: 1.5em;
}

.logo{
    text-align: center;
    font-size: 3em;
    grid-column: 1/3;
}

.contact-wrapper{
    box-shadow: 0 0 20px 0 rgba(0 , 0, 0, .3);
    margin:5rem 0;
    width: 100;
}

.contact-wrapper > *{
    padding: 1em;
}

.contact-form{
    background-color: #f6f6f6;
}
.formulario__contacto{
    background-color: #f6f6f6;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-form .block{
    grid-column: 1/3;
}

.contact-form form, p{
    margin: 0;
    padding: 1em;
}

input,textarea{
    width: 100%;
    padding: .7em;
    border: none;
    background: none;
    outline: 0;
    color: #000;
    border-bottom: 1px solid #0089AB;
}
.btn-form{
    background-color: #0089AB;
    color: #fff;
    border: 0;
    text-transform: uppercase;
    padding: 1em;
    width: 100%;
    padding: .7em;
    border: none;
}


.contact-info{
    background-color: #0089AB;
    color: #fff;
}

.contact-info h4,ul,p{
    text-align: left;
    margin: 0 0 1rem 0;
}

.contact-info ul{
    list-style: none;
    padding: 0;
}

.contact-info ul,li{
    padding: .3em;
}

.redes-sociales{
    display: flex;
    justify-content: space-around;
}

.fa-brands{
   color: #fff;
   font-size: 2rem;
}

/* Medias querys*/
@media screen and (min-width:970px) {
    
    .contact-wrapper{
        display: grid;
        grid-template-columns: 2fr 1fr;
    }
    
    .contact-info h4,ul,p{
        padding: 1em;
        text-align: left;
    }
}

@media  (max-width:768px) {
    .logo{
        font-size: 2rem;
    }
}

/*WSP BUTTON*/

i{
    margin-left: 10px;
}
.btn-wsp{
    align-items: center;
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 30px;
    right: 20px;
    background-color: #0df053;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
    z-index:100 ;
    
}

.btn-wsp:hover{
    text-decoration: none;
    color: white;
    background-color: #0df053;
}

/*FOOTER*/
.site-footer {
  background-color: #f6f6f6;
  color: white;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-logo img {
  max-height: 200px;
  width: auto;
}

.footer-locations,
.footer-social {
  flex: 1;
  min-width: 250px;
}

.footer-locations h4,
.footer-social h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #272727;
}

.footer-locations p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #5c5c5c;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-icon{
  color: #5c5c5c;
}



/* 📱 Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    max-height: 80px;
    margin-bottom: 20px;
  }

  .footer-locations,
  .footer-social {
    margin-bottom: 20px;
  }
}
 /*MEDIA QUERY*/
 @media (max-width: 768px) {
   .container {
     flex-direction: column;
   }

   .imagen {
     height: 300px;
   }

   nav {
     position: absolute;
     top: 60px;
     right: 0;
     background-color: #f6f6f6;
     flex-direction: column;
     align-items: flex-start;
     width: 100%;
     display: none;
     padding: 20px;
     z-index: 1000;
   }

   nav.show {
     display: flex;
   }

   .hamburger {
     display: flex;
   }

   .nav-buttons button {
     font-size: 1rem;

   }

   
 }

/* PAGINA DE CURSOS */

/* ====== CONTENEDOR GRID ====== */
.cursos-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px;
}

/* Card */
.cursos-cards-grid .curso {
  border-radius: 12px;
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  padding: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Animación escalonada */
.cursos-cards-grid .curso:nth-child(1) { animation-delay: 0.1s; }
.cursos-cards-grid .curso:nth-child(2) { animation-delay: 0.3s; }
.cursos-cards-grid .curso:nth-child(3) { animation-delay: 0.5s; }
.cursos-cards-grid .curso:nth-child(4) { animation-delay: 0.7s; }
.cursos-cards-grid .curso:nth-child(5) { animation-delay: 0.9s; }
.cursos-cards-grid .curso:nth-child(6) { animation-delay: 1.1s; }

/* Hover */
.cursos-cards-grid .curso:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Imagen */
.cursos-cards-grid .curso img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.cursos-cards-grid .curso:hover img {
  transform: scale(1.05);
}

/* Texto */
.cursos-cards-grid .descripcion h2 {
  font-size: 1.3em;
  margin: 10px 0;
  color: #222;
}

.cursos-cards-grid .descripcion p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
}

/* Botón */
.cursos-cards-grid .btn-video {
  display: inline-block;
  padding: 10px 18px;
  background-color: #048cac;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cursos-cards-grid .btn-video:hover {
  background-color: #ffffff;
  border: solid 1px #048cac;
  color: #048cac;
}

/* Responsive */
@media (max-width: 768px) {
  .cursos-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cursos-imagen{
    height: auto;
   }
}

@media (max-width: 500px) {
  .cursos-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Animación */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.cursos-section {
  background-color: #f9fafc; /* Fondo claro */
  padding: 50px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.cursos-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

/* ====== IMAGEN ====== */
.cursos-imagen-d {
  max-width: 100%;
  height: 500px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: slideDown 1s ease-out;
}
.cursos-imagen-mb{
  display: none;
}

@media (max-width: 768px) {
  .cursos-imagen-d{
    display: none;
  }

  .cursos-imagen-mb{
    display: block;
    max-width: 100%;
  height: 500px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: slideDown 1s ease-out;
  }
}
/* ====== TÍTULO ====== */
.cursos-titulo {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: #1f2937;
  font-weight: 700;
  animation: fadeInUp 1s ease-out;
}

/* ====== GRID ====== */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  text-align: left;
}

/* ====== ITEM ====== */
.cursos-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-out;
}

.cursos-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ====== ICONO ====== */
.cursos-icono {
  font-size: 1.8em;
  color: #2563eb; /* Color principal, cámbialo según tu marca */
  display: block;
  margin-bottom: 10px;
}

/* ====== ANIMACIONES ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}



/*PAGINA DE CONTACTO*/

.header-contacto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #048cac;
  color: #fff;
}

.header-contacto .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-contacto a {
  margin-left: 1.5rem;
  transition: color 0.3s;
}

.nav-contacto a:hover {
  color: #ffd700;
}

.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.ubicaciones {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 20px;
}

.titulo-animado {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 1s forwards;
}

.sede {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 20px;
}

.sede.reverse {
  flex-direction: row-reverse;
}

.info-sede {
  flex: 1 1 400px;
  background-color: #f6f6f6;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.mapa {
  flex: 1 1 400px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.animar-entrada {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .sede {
    flex-direction: column;
  }

  .sede.reverse {
    flex-direction: column;
  }

  .mapa {
    height: 250px;
  }

  .info-sede {
    margin-bottom: 2rem;
  }
}

/*quienes somos*/

.qs-section {
  background: linear-gradient(135deg, #0b1020, #151a30);
  color: #f7f8ff;
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.qs-contenedor {
  max-width: 1000px;
  margin: 0 auto;
}
.qs-titulo {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.qs-titulo::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.qs-intro, 
.qs-extra {
  color: #cbd2ff;
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 1.5rem auto;
  max-width: 850px;
}
.qs-cards {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0;
}
.qs-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  text-align: left;
  transform: translateY(20px);
  opacity: 0;
  transition: all .8s ease;
}
.qs-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #fff;
}
.qs-card p {
  color: #d2d6f5;
  margin: .5rem 0 0;
  line-height: 1.6;
}
.qs-card.qs-visible {
  transform: translateY(0);
  opacity: 1;
}
@media(min-width:768px){
  .qs-cards {
    grid-template-columns: repeat(3,1fr);
  }
}