@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;800&display=swap");

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: #121212;
  font-family: "Outfit", sans-serif;
  background-color: #f9ffe7;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1440px;
  padding: 2rem;
  width: 100%;
  margin: 0 auto;
}

.spacer {
  width: 100%;
  height: 30vh;
}

.arch {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  max-width: 1100px;
  margin-inline: auto;
  width: 100%;
  padding: 0 20px;
}

.arch__left {
  display: flex;
  flex-direction: column;
  min-width: 300px;

  .arch__info {
    max-width: 356px;
    height: 100vh;
    display: grid;
    place-items: center;

    h2.header {
      font-family: Outfit;
      font-size: 42px;
      font-weight: 800;
      letter-spacing: -0.84px;
    }

    p.desc {
      color: rgba(18, 18, 18, 0.8);
      font-size: 18px;
      letter-spacing: -0.54px;
      margin-block: 6px 28px;
      line-height: 1.6;
    }

    p.desc strong {
      color: rgba(18, 18, 18, 1);
      font-weight: 700;
    }

    p.desc br {
      content: "";
      display: block;
      margin: 8px 0;
    }

    a.link {
      text-decoration: none;
      padding: 16px 18px;
      color: inherit;
      border-radius: 40px;
      display: flex;
      gap: 4px;
      width: fit-content;
      align-items: center;
    }
  }
}

.arch__right {
  flex-shrink: 1;
  height: 100vh;
  width: 100%;
  max-width: 540px;
  position: relative;
  display: flex;
  flex-direction: column;

  .img-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 400px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;

    img {
      /*       border: 1px solid red; */
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
  }
}

@media (max-width: 900px) {
  .arch {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .arch {
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
  }

  .arch__left {
    min-width: 100%;
  }

  .arch__right {
    width: 100%;
    height: auto;
    max-width: 100%;
    position: relative;
  }

  .arch__right .img-wrapper {
    position: static;
    transform: none;
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
  }

  .arch__left .arch__info {
    height: auto;
    padding: 30px 20px;
    max-width: 100%;
    min-height: auto;
  }

  .arch__left .arch__info h2.header {
    font-size: 28px;
  }

  .arch__left .arch__info p.desc {
    font-size: 16px;
  }

  .arch__info {
    animation: none !important;
  }

  .img-wrapper {
    animation: none !important;
  }
}

@media (max-width: 560px) {
  .arch {
    gap: 12px;
  }

  .container {
    padding: 10px;
    max-width: 100%;
  }

  .arch__right .img-wrapper {
    border-radius: 10px;
    height: 250px;
    margin-bottom: 15px;
  }

  .arch__left .arch__info {
    padding: 20px 15px;
  }

  .arch__left .arch__info h2.header {
    font-size: 24px;
  }

  .arch__left .arch__info p.desc {
    font-size: 14px;
  }

  .arch__left .arch__info a.link {
    padding: 12px 16px;
    font-size: 14px;
  }

  .spacer {
    height: 5vh;
  }

  /* Asegurar que no hay overflow en mobile */
  .arch__right {
    overflow: visible;
  }

  .arch__left {
    overflow: visible;
  }
}
