@import url("https://fonts.googleapis.com/css2?family=Cal+Sans&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&display=swap");
.prel {
  position: relative;
}
.calsans {
  font-family: "Cal Sans", sans-serif;
}
.montserrat {
  font-family: "Montserrat", sans-serif;
}
.outfit {
  font-family: "Outfit", sans-serif;
}
.navbar {
  .navbar-brand {
    font-family: "Cal Sans", sans-serif;
    font-size: 24px;
  }
  .enlaces {
    .nav-item {
      padding-inline: 20px;
      .nav-link {
        color: #000;
        font-weight: bolder;
        font-size: 18px;
        font-family: "Outfit", sans-serif;
        border-radius: 4px;
        padding-inline: 20px;
        &:hover {
          background-color: #f0f0f0;
          color: #0e4ae2;
        }
      }
    }
  }
}

#arriba {
  position: fixed;
  bottom: 2rem;
  right: 50%;
  translate: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  border: 0;
  display: none;
  border-radius: 100%;
  z-index: 1;
  background-color: #fff;
  box-shadow: 0 0 0 4px #081bc8, 0 0 0 6px #fff;
  transition: all 120ms ease-in-out;
  &:hover {
    color: #fff;
    background-color: #081bc8;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgb(8, 27, 200);
  }
}

#cara {
  width: 25%;
  aspect-ratio: 1/1;
  background-repeat: no-repeat;
  background-size: contain;
  animation: giño 5s steps(1) infinite, flotando 10s ease-in-out infinite;
}
@keyframes giño {
  0% {
    background-image: url("../img/Cara1.png");
  }
  70% {
    background-image: url("../img/Cara3.png");
  }
}
@keyframes flotando {
  0% {
    transform: rotateZ(-3deg);
  }
  50% {
    transform: rotateZ(3deg);
  }
  100% {
    transform: rotateZ(-3deg);
  }
}
.imagen-borde {
  filter: drop-shadow(2px 2px 0px #fff) drop-shadow(-2px -2px 0px #fff)
    drop-shadow(2px -2px 0px #fff) drop-shadow(-2px 2px 0px #fff);
}
.texto-borde {
  text-shadow: 0px 0px 4px #333;
}
.texto-borde-white {
  text-shadow: 0px 0px 1px #fff;
}
#bienvenida {
  padding-bottom: 14rem;
}
#mensaje {
  background-color: #1e3799;
  box-shadow: 0px -6px 0px 0px #ff9884;
  color: #fff;
  font-family: "Outfit", sans-serif;
  padding-block: 10px;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  text-align: center;
  overflow: hidden;
  span {
    left: 100%;
    position: relative;
    &:nth-child(1) {
      animation: mensaje 12s linear infinite;
    }
    &:nth-child(2) {
      animation: mensaje 12s linear infinite 3s;
    }
  }
}
@keyframes mensaje {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

.texto-naranja {
  color: #ffe942;
}

#back {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(1.4) hue-rotate(228deg);
  opacity: 0.6;
}

.btn-rounded {
  padding-inline: 2rem;
  border-radius: 2rem;
}

.aspecto-1 {
  /* aspect-ratio: 1/1; */
  object-fit: contain;
}

#identidad {
  position: relative;
  top: -10vw;
  width: 20vw;
}
#texto-inicial {
  position: relative;
  top: -7vw;
}

#personalidad {
  position: relative;
  padding-block: 4rem;
  .caracteristica {
    max-width: 14rem;
    margin: 2rem;
    text-align: center;
    img {
      width: 100%;
      aspect-ratio: 1/1;
      object-fit: contain;
    }
    h5 {
      font-weight: bold;
    }
    &:nth-child(odd) {
      h5 {
        color: #ff6e14;
      }
    }
    &:nth-child(even) {
      h5 {
        color: #49494f;
      }
    }
  }

  &::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 30vw;
    top: 0;
    z-index: -1;
    left: 0;
    background-size: 100vw;
    background-position: top;
    background-attachment: local;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231e3799" fill-opacity="1" d="M0,96L48,106.7C96,117,192,139,288,144C384,149,480,139,576,160C672,181,768,235,864,240C960,245,1056,203,1152,197.3C1248,192,1344,224,1392,240L1440,256L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
  }
}

#comunicacion {
  .comunicacion {
    position: relative;
    margin-block: 0.5rem;
    display: grid;
    grid-template-columns: auto 3fr;
    gap: 1rem;
    overflow: hidden;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
    img {
      width: 10rem;
      object-fit: contain;
      aspect-ratio: 1/1;
    }
    .texto {
      display: flex;
      flex-direction: column;
      justify-content: center;
      h5 {
        font-weight: bold;
      }
    }
    border: 2px solid #222;
  }
}

#valores {
  margin-block: 6rem;
  padding-block: 6rem;
  background-color: #1e3799;
  position: relative;
  #arco {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    .valor {
      box-shadow: 0px 0px 0px 4px #fff;
      border-radius: 8px;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      position: relative;
      color: #fff;
      img {
        width: 80%;
        aspect-ratio: 1/1;
        object-fit: contain;
      }
      @media (width <= 956px) {
        .imagen-borde {
          filter: drop-shadow(1px 1px 0px #fff) drop-shadow(-1px -1px 0px #fff)
            drop-shadow(1px -1px 0px #fff) drop-shadow(-1px 1px 0px #fff);
        }
      }
      .texto {
        font-size: 1.5rem;
        font-weight: bold;
      }
      &:nth-child(even) {
        background-image: radial-gradient(
          circle farthest-corner at 10% 20%,
          rgba(30, 3, 237, 1) 20.8%,
          rgba(1, 134, 242, 1) 74.4%
        );
      }
      &:nth-child(odd) {
        background-image: radial-gradient(
          circle farthest-corner at 10% 20%,
          rgba(237, 3, 32, 1) 20.8%,
          rgba(242, 121, 1, 1) 74.4%
        );
      }

      @media (width > 956px) {
        &:nth-child(1),
        &:nth-child(5) {
        }
        &:nth-child(2),
        &:nth-child(4) {
          top: 4rem;
        }
        &:nth-child(3) {
          top: 8rem;
        }
      }

      .texto {
        display: block;
        padding-inline: 10px;
        font-size: clamp(20px, 1.25vw, 28px);
      }
    }
    @media (width <= 956px) {
      grid-template-columns: repeat(1, 1fr);
      .valor {
        img {
          width: 30%;
        }
      }
    }
  }
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -20vw;
    z-index: -1;
    width: 100%;
    height: 20vw;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231e3799" fill-opacity="1" d="M0,128L1440,32L1440,0L0,0Z"></path></svg>');
  }
}

#interaccion {
  margin-block: 8rem;
  padding-block: 6rem;
  position: relative;

  #mensajes {
    column-count: 2;
    @media (width <= 960px) {
      column-count: 1;
    }
    column-gap: 1rem;
    .mensajes {
      border: 2px solid #2a2b2d;
      background: #fff;
      border-radius: 12px;
      padding: 20px;
      position: relative;
      margin-bottom: 1rem;
      break-inside: avoid;
      .mensaje {
        border-radius: 15px;
        padding: 20px 30px;
        display: inline-block;
        position: relative;
        width: 45%;
        &.usuario {
          background-color: #e7e7e7;
        }
        &.ociel {
          left: calc(100% - 45%);
          color: #fff;
          background-color: #3870ff;
        }
      }
      &:nth-child(odd) {
        .ociel {
          background-color: #3870ff;
        }
      }
      &:nth-child(even) {
        .ociel {
          background-color: #ff7a38;
        }
      }
      .datos {
        border: 1px solid #ccc;
        margin-top: 30px;
        padding: 10px;
        border-radius: 10px;
        position: relative;
        ul {
          display: grid;
          grid-template-columns: 2fr 2fr 1fr;
          font-size: 18px;
          align-items: center;
          li:nth-child(3) {
            text-align: end;
            img {
              max-width: 4vw;
              aspect-ratio: 1/1;
            }
          }
        }
      }
    }
  }
}

#conocelo {
  margin-bottom: 20rem;
  position: relative;
  text-align: center;
  z-index: 2;
  #chatwoot_live_chat_widget {
    width: 100%;
    height: 80dvh;
    border-radius: 8px;
    box-shadow: 0px 0px 8px 0px rgba(0, 43, 235, 0.485);
    background-color: #fff;
    @media (width < 768px) {
      width: 100%;
      height: 90dvh;
    }
  }
  .ociel-saludo {
    @media (width <= 960px) {
      display: none !important;
    }
  }
}

.img-white {
  filter: brightness(0) invert(1);
}
.img-line {
  filter: contrast(150%);
}

footer {
  background-image: linear-gradient(
    177.6deg,
    #000b76 15.3%,
    rgba(1, 0, 62, 1) 91.3%
  );
  position: relative;
  #pie-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    img {
      width: 100%;
      aspect-ratio: 2/1;
      object-fit: contain;
    }
  }

  &::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 20vw;
    top: -20vw;
    z-index: -1;
    left: 0;
    background-size: 100vw;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000b76" fill-opacity="1" d="M0,128L80,160C160,192,320,256,480,240C640,224,800,128,960,96C1120,64,1280,96,1360,112L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>');
  }
}

body:has(.woot-widget-holder.woot-elements--right:not(.woot--hide)) {
  &::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000c;
    backdrop-filter: blur(4px);
    z-index: 2;
  }
  overflow-y: hidden;
}

.woot-widget-holder.woot-elements--right:not(.woot--hide) {
  @media (width >= 768px) {
    max-height: 100% !important;
    max-width: 60% !important;
    width: 60% !important;
  }
}

.woot-widget-bubble.woot-elements--right.woot-widget--expanded:not(
    .woot--hide
  ) {
  background-image: radial-gradient(
    circle 975px at 2.6% 48.3%,
    rgba(0, 8, 120, 1) 0%,
    rgba(95, 184, 224, 1) 99.7%
  ) !important;
  animation: woot 2s ease-in-out infinite;
}
@keyframes woot {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.04;
  }
  100% {
    scale: 1;
  }
}
