.seccion-banner {
  position: relative;
  background: white;
  width: 100%;
  margin: auto;
  height: 70vh;
  overflow: hidden;
  max-width: 100vw;
}
.banner {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    url("../../img/teamwork.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.title-banner {
  position: relative;
  font-size: 2rem;
  width: 300px;
  height: 100px;
  display: flex;
  color: #fafafa;
  align-items: start;
  left: -450px;
  top: -120px;
  z-index: 1;
}
.title-banner h1 {
  padding: 0px;
  z-index: 1;
}
.bg-top-directiva {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-color: #3399cc;
  mask-image: url("../../img/grunge-style-top-border-texture-o3ekbeen1cd67vcm.webp");
  mask-position: top;
  mask-repeat: no-repeat;
  mask-size: 100%;
  animation: revealTop 1.5s ease-out forwards;
  z-index: 1;
}
@keyframes revealTop {
  from {
    mask-size: 100% 0%;
  }
  to {
    mask-size: 100% 100%;
  }
}

.bg-bottom-directiva {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: #67b8de;
  mask-image: url("../../img/bottom.webp");
  mask-repeat: no-repeat;
  mask-size: 100%;
  mask-position: bottom;
  pointer-events: none;
  z-index: 1;
}
.seccion-directiva {
  width: 100%;
  height: inherit;
  margin: auto;
  padding: 20px;
  background-color: #67b8de;
  display: flex;
  align-items: center;
  justify-content: center;
}
.directiva {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  justify-content: center;
}
.directiva-persona {
  display: grid;
  grid-template-columns: repeat(2, minmax(500px, 800px));
  padding: 50px;
  grid-template-areas: "text-directiva img-directiva";
  gap: 50px;
  align-items: center;
  justify-content: center;
}
.content-directiva {
  grid-area: text-directiva;
  gap: 50px;
  align-items: center;
  justify-content: center;
}
.img-directiva {
  grid-area: img-directiva;
  display: flex;
  align-items: end;
  justify-content: end;
}
.directiva-persona:nth-child(3) .content-directiva,
.directiva-persona:nth-child(5) .content-directiva {
  grid-area: img-directiva;
  text-align: end;
}
.directiva-persona:nth-child(3) .img-directiva,
.directiva-persona:nth-child(5) .img-directiva {
  grid-area: text-directiva;
  align-items: start;
  justify-content: start;
  padding-bottom: 2rem;
}

.title {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2rem;
  padding-top: 2rem;
}
.title h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}
.content-directiva h1 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}
.content-directiva h2 {
  color: #000000;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.content-directiva p {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 10px 0;
}

.img-directiva img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  box-shadow: 50px 50px 7px rgba(7, 7, 7, 0.342);
}

/* seccion ejecutiva */
.seccion-ejecutiva {
  width: 100%;
  margin: auto;
  background-color: #e8f8ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ejecutiva {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  justify-content: center;
}
.title-ejecutiva {
  padding-top: 2rem;
  font-size: 2rem;
  color: #3399cc;
}
.ejecutivo-persona {
  display: grid;
  grid-template-columns: repeat(2, minmax(500px, 800px));
  padding: 50px;
  grid-template-areas: "text-ejecutiva img-ejecutiva";
  gap: 50px;
  align-items: center;
  justify-content: center;
}
.content-ejecutiva h1 {
  color: #3399cc;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}
.content-ejecutiva h2 {
  color: #000000;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}
.content-ejecutiva p {
  color: #000000;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 10px 0;
}
.img-ejecutiva {
  display: flex;
  align-items: end;
  justify-content: end;
}
.img-ejecutiva img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  box-shadow: 20px 20px 10px rgba(22, 22, 22, 0.795);
}

@media (max-width: 1024px) {
  /* BANNER */
  .seccion-banner {
    height: 40vh;
  }

  .banner {
    background-position: center;
    background-size: cover;
  }
  .bg-top-directiva {
    height: 10vh;
  }
  .title-banner {
    left: -250px;
    top: 10px;
  }
  /* DIRECTIVA */
  .directiva-persona {
    grid-template-columns: 1fr;

    padding: 40px 20px;
    gap: 30px;
  }

  .content-directiva,
  .img-directiva {
    width: 100%;
    text-align: start;

  }

  .img-directiva {
    justify-content: center;
  }

  .img-directiva img {
    width: 400px;
    height: 400px;
    box-shadow: 10px 10px 5px rgba(7, 7, 7, 0.2);
  }

  .content-directiva h1 {
    font-size: 1.8rem;
  }

  .content-directiva h2 {
    font-size: 1.4rem;
  }

  .content-directiva p {
    font-size: 1.1rem;
  }

  /* Cambios para reversa de columnas (alternar orden) */
  .directiva-persona:nth-child(3) .content-directiva,
  .directiva-persona:nth-child(5) .content-directiva,
  .directiva-persona:nth-child(3) .img-directiva,
  .directiva-persona:nth-child(5) .img-directiva {
    text-align: end;
  }

  /* EJECUTIVA */
  .ejecutivo-persona {
    grid-template-columns: 1fr;
    grid-template-areas:
      "img-ejecutiva"
      "text-ejecutiva";
    padding: 40px 20px;
    gap: 30px;
  }

  .img-ejecutiva,
  .content-ejecutiva {
    grid-area: unset;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .img-ejecutiva img {
    width: 400px;
    height: 400px;
    box-shadow: 10px 10px 5px rgba(22, 22, 22, 0.4);
    mask-position: center;
    mask-size: contain;
  }

  .content-ejecutiva h1 {
    font-size: 1.8rem;
  }

  .content-ejecutiva h2 {
    font-size: 1.4rem;
  }

  .content-ejecutiva p {
    font-size: 1.1rem;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  /* BANNER */
  .seccion-banner {
    height: 50vh;
  }
  .banner {
    height: 100%;
    background-position: center;
  }
  .bg-top-directiva {
    height: 100px;
  }
  /* DIRECTIVA */
  .directiva-persona {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  .title-banner {
    left: 0;
    top: 20px;
  }
  .content-directiva,
  .img-directiva {
    width: 100%;
    text-align: center;
    grid-area: unset;
  }

  .img-directiva {
    align-items: center;
    justify-content: center;
  }

  .img-directiva img {
    width: 90%;
    height: 300px;
    max-width: 300px;
    box-shadow: 5px 5px 5px rgba(7, 7, 7, 0.342);
  }

  .title h1 {
    font-size: 2rem;
    text-align: center;
  }

  .content-directiva h1 {
    font-size: 1.6rem;
  }

  .content-directiva h2 {
    font-size: 1.2rem;
  }

  .content-directiva p {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* REVERTIR INVERSIÓN DE COLUMNAS (cuando aplicabas nth-child) */
  .directiva-persona:nth-child(3) .content-directiva,
  .directiva-persona:nth-child(5) .content-directiva,
  .directiva-persona:nth-child(3) .img-directiva,
  .directiva-persona:nth-child(5) .img-directiva {
    grid-area: unset;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  /* EJECUTIVA */
  .ejecutivo-persona {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .content-ejecutiva,
  .img-ejecutiva {
    width: 100%;
    text-align: center;
    grid-area: unset;
  }

  .img-ejecutiva {
    align-items: center;
    justify-content: center;
  }

  .img-ejecutiva img {
    width: 90%;
    height: auto;
    max-width: 300px;
    box-shadow: 5px 5px 5px rgba(22, 22, 22, 0.795);
    mask-position: center;
    mask-size: contain;
  }

  .content-ejecutiva h1 {
    font-size: 1.6rem;
  }

  .content-ejecutiva h2 {
    font-size: 1.2rem;
  }

  .content-ejecutiva p {
    font-size: 1rem;
    padding: 0 10px;
  }
}

/* --- Estilo del botón de WhatsApp --- */
.whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;

  background-color: #25d366; /* Color verde de WhatsApp */
  width: 60px;
  height: 60px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse por encima */
.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Estilo del ícono dentro del botón */
.whatsapp-button img {
  width: 35px;
  height: 35px;
}

/* --- Animación de "sacudida" --- */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Clase que se agregará con JavaScript para activar la animación */
.whatsapp-button.animating {
  animation: shake 0.5s ease;
}
