* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* todo cont-main-sections */
.cont-main-sections {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.banner {
  height: 80vh;
  background: url("../../images/nosotros/equipo.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2em;
  background-color: #333;
}
.banner h1 {
  background-color: #004d7ac5;
  padding: 10px;
}

.info-section {
  display: flex;
  padding: 40px;
  gap: 40px;
  margin-bottom: 30px;
  align-items: center;
}

.images {
  margin-top: 50px;
  width: 45%;
  position: relative;
  margin-left: 15%;
  display: flex;

}
.founding-story {
  padding: 10px 40px;
  border-radius: 12px;
  max-width: 90%;
  margin: 10px auto;
  color: #2c2c2c;
  font-family: 'Georgia', serif;
  line-height: 1.75;
  font-size: 1.1em;
}

.founding-story h1 {
  font-size: 2.4em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #004d7a;
  font-family: 'Segoe UI', sans-serif;
}

.founding-story p {
  margin-bottom: 20px;
}


.image-container {
  /* position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between; */
}

.main-img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  align-self: flex-end;
}

.overlay-img {
  position: absolute;
  top: 20%;
right: 50%;
  width: 300px;
  height: 300px;
  border: 5px solid white; /* ← Aquí está el borde blanco */
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
  transform: translate(-120px, 100px); /* superpone solo una esquina */
}

.overlay-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-img:hover,
.overlay-img img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.details {
    width: 50%;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
  }
.gradient-text {
  font-size: 50px;
  font-weight: bold;
  background: linear-gradient(90deg, blue, yellow, red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.certification {
  margin-top: 20px;
  background-color: #e0f7fa;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
}

.years {
  display: block;
  margin-top: 10px;
  font-size: 1.2em;
  color: #00796b;
}

.cert-card {
  background-color: white;
  border-radius: 12px;
  padding: 10px;
  width: 45%;
  min-width: 180px;
  min-height: 200px;
  max-width: 220px;
  max-height: 220px;
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.cert-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.cert-text .years {
  font-size: 1.2em;
  font-weight: bold;
  color: #004d7a;
}

.founders-container {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cont-detail-about-school {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 24px 8%;
}

.founder-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 45%;
  gap: 20px;
  font-family: 'Gotham', sans-serif;
}

.founder-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
  position: relative;
}

.founder-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
  transition: opacity 0.3s ease;
  border-right: 2px solid #fac018;
}


.founder-card h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #004d7a;
}


/* Hover efecto */
.founder-content:hover .founder-img {
  opacity: 0.3;
}



.founder-img:hover {
  filter: brightness(80%);
}

.founder-content::after {
  content: '+';
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #d72327;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.founder-content:hover::after {
  opacity: 0.5;
}
#lema1, #lema2 {
  font-style: italic;
  color: #d72327;
}
/* Texto a la derecha */
.founder-content p {
  padding: 0 20px;
  font-size: 1em;
  color: #06177e;
}

@keyframes moveToCenter {
  0% { left: -50px; opacity: 0; }
  50% { left: 0px; opacity: 1; }
  100% { left: 0px; opacity: 1; }
}

.mas-icon {
  position: relative;
  animation: moveToCenter 1s ease-out forwards;
}



.features-certification {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0px;
  gap: 10px;
  font-family: 'Georgia', serif;
}
.features ul {
  list-style: none;
}
.features ul li {
  margin-bottom: 12px;
  padding-left: 40px;
  position: relative;
  
  line-height: 1.1;
  font-size: 1.1em;
  color: #333;
}

.features ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffd700; /* Amarillo dorado */
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.about-us {
  background: linear-gradient(135deg, #ff0000 0%, #ffd700 50%, #0033a0 100%);
  color: white;
  padding: 60px 30px;
  text-align: center;
  border-radius: 12px;
}

.features {
  width: 45%;
}

.certification-box {
  width: 45%;
  
  text-align: center;
  border-radius: 15px;
}

/* Por defecto: mostrar overlay, ocultar imagen móvil */
.overlay {
  display: block;
}

.mobile-img {
  display: none;
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  align-self: flex-end;
}
.accordion-section {

      border-radius: 8px;

      overflow: hidden;
      max-width: 100%;
      padding:0 8%;
      
    }

    .accordion-header {
      background-color:  #06177e;
      padding: 7px 24px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 1em;
      font-weight: bold;
      color: white;
    }
    .accordion-header {
      font-size: 0.8rem;
    }

    .accordion-toggle {
      font-size: 1.5em;
      transition: transform 0.3s ease;
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease;
    }
    


    .accordion-section.active .accordion-content {
      max-height: 2000px;
    }
 

   
    .accordion-section.active .accordion-toggle {
      transform: rotate(180deg); /* flecha hacia arriba */
    }
    .accordion-section.active .accordion-header {
  background-color: #d72327; /* rojo de tu identidad visual */
  color: white;
}
.accordion-header {
  transition: background-color 0.3s ease, color 0.3s ease;
}


    .founding-story {
      padding:15 30px;
      line-height: 1.7;
      font-size: 1.1em;
      color: #2c2c2c;
    }

    .founding-story h1 {
      font-size: 2em;
      margin-bottom: 20px;
      color: #004d7a;
    }

    .cont-img-about-school {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding: 0 8%;
}

.cont-img-about-school img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(6, 23, 126, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.cont-img-about-school img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(215, 35, 39, 0.3); /* sombra roja al hacer hover */
}


/* todo section about school */
.about-school-section {
  /* background-color: red; */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cont-detail-about-school {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 24px 8%;
}
.title-about-school {
  font-size: 30px;
  text-align: center;
  margin-bottom: 20px;
}
.sub-title-about-school {
  /* background-color: #0033a0; */
  font-size: 17px;
  font-weight: 600;
  width: 90%;
  line-height: 1.2;
}
.text-about-shool {
  font-size: 17px;
  line-height: 1.5;
  width: 90%;
}

.cont-img-about-school {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cont-img-about-school img {
  width: 300px;
  padding: 10px;
  object-fit: cover;
}

/* * Animación para secciones al hacer scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}





@media (max-width: 1500px) {
  .info-section {
    padding: 10px;
  }
}
/*todo  responsiv */
@media (max-width: 1350px) {
  header{
    padding: 0 20px;
  }
  .founder-card {
    max-width: 400px;
  }
.overlay-img{
  left: 5%;
}
.cert-card{
  max-height: 250px;
  margin-top: 150px;
}
  .details{
    width: 45%;
    margin-right: 50px;
  }

 
  .logo{
    width: 20%;
    max-height: 70%;
  }
  .logo img{
    max-width: 80%;
    max-height: 70%;
    margin: 0 10px;
  }
}
@media (max-width: 1050px) {
   header{
    padding: 0 10%;
    height: 10vh;
  }
  .banner{
    height: 50vh;
  }
  .logo{
    width: 30%;
    max-height: 85%;

  }
  .info-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
  }
  .images{
    margin-left: 20%;
  }
  .overlay-img {
  transform: translate(-190px, 80px); /* superpone solo una esquina */
}
.details{
  width: 70%;
  margin: 0 auto;
}
.founder-card{
  min-width: 390px;
}
.cont-detail-about-school {
  padding: 10px;
}


}

@media (max-width: 768px) {
  
.accordion-content {
    max-height: none !important;
    overflow: visible;
    padding: 16px;
  }

  .cont-detail-about-school {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .founder-card {
    width: 100%;
    text-align: center;
  }

  .founder-img {
    width: 80%;
    height: auto;
    max-width: 280px;
  }

  .accordion-header h1 {
    font-size: 1.2em;
  }
  .banner {
    background: url("../../images/nosotros/equipo_miniatura.jpg") center/cover no-repeat;
    
  }
  
  .logo{
    width: 40%;
  }
  .logo img{
    width: 90%;
    height: 80%;
  }
  .menu a{
    color: white;
  }
  .menu ul li:hover {
  border-bottom: 2px solid white;
}
  .info-section {
    flex-direction: column;
  }
  .banner h1{
    font-size: 25px;
  }
  .image-container {
    display: flex;
    flex-direction: column;
  }
  .details {
    width: 100%;
    flex-direction: column;
  }
  .main-img {
    top: 20px;
  }
  .features-certification {
    min-width: 100%;
    flex-direction: column;
    align-content: center;
    padding: 20px;
  }

  .features,
  .certification-box {
    width: 100%;
    min-width: 100%;
    margin-bottom: 30px;
  }

  .features ul li {
    font-size: 1em;
  }
  .cert-card {
    width: 100%;
    margin: 0 auto;
  }

  .cert-img {
    max-width: 120px;
  }

  .cert-info {
    font-size: 0.95em;
  }


  .images {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: 0;
    padding: 10px;
  }

  .image-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 10px;
  }

  .main-img {
    max-width: 300px;
    height: 250px;
  }

  .overlay-img {
    display: none;
    width: 100px;
  }

  .mobile-img {
    display: block;
    max-width: 300px;
    height: 250px;
    margin: 0 auto;
    object-fit: cover;
  }
}
