html,
body {
  margin: 0;
  min-height: 100%;
  background: #f6ede3;
}

.cursos {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 7.5rem 7vw 7rem;
  background-color: #f6ede3;
  background-image:
    linear-gradient(rgba(246, 237, 227, 0.16), rgba(246, 237, 227, 0.16)),
    url("../assets/derived/fondo-interior-iching.png.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.cursos__logo {
  position: absolute;
  top: 2.4rem;
  left: 4.5vw;
  z-index: 1;
  display: block;
  width: 160px;
  height: auto;
  color: inherit;
  text-decoration: none;
}

.cursos__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.cursos__title {
  display: grid;
  grid-template-columns: max-content minmax(18rem, 32rem);
  column-gap: 1.85rem;
  max-width: 72rem;
  margin: 0 auto 4.5rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-align: center;
  color: #161310;
}

.cursos__title::before {
  content: "Básico";
  height: 0;
  overflow: hidden;
  padding-left: calc(10.41rem + 1.45rem);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
}

.curso {
  display: grid;
  grid-template-columns: max-content minmax(18rem, 1fr);
  grid-template-areas:
    ". lead"
    "anchor body";
  align-items: start;
  column-gap: 1.85rem;
  row-gap: 1.85rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.25rem 0;
}

.curso--hex-end {
  grid-template-columns: minmax(18rem, 1fr) max-content;
  grid-template-areas:
    "lead ."
    "body anchor";
}

.curso + .curso {
  padding-top: 5.5rem;
}

.curso__anchor {
  display: flex;
  grid-area: anchor;
  align-items: center;
  align-self: start;
  gap: 1.45rem;
}

.curso--hex-end .curso__anchor {
  justify-content: flex-end;
}

.curso__name {
  margin: 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #161310;
}

.curso__body {
  display: flex;
  flex-direction: column;
  grid-area: body;
  gap: 3.15rem;
  max-width: 32rem;
}

.curso--hex-end .curso__lead,
.curso--hex-end .curso__body {
  justify-self: end;
}

.curso__lead {
  grid-area: lead;
  max-width: 32rem;
  margin: 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: #241f1b;
}

.curso-level {
  display: flex;
  flex-direction: column;
}

.curso-level__name {
  margin: 0 0 1.15rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1612;
}

.curso-level > p,
.curso-block p {
  margin: 0 0 0.95rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: #241f1b;
}

.curso-level > p:last-child,
.curso-block p:last-child {
  margin-bottom: 0;
}

.curso-block {
  margin-top: 1.45rem;
}

.curso-label {
  margin: 0 0 0.55rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1612;
}

.curso-tile {
  position: relative;
  flex: 0 0 10.41rem;
  width: 10.41rem;
  height: calc(10.41rem * 1.004);
}

.curso-tile__face {
  position: absolute;
  inset: 0;
  background: #fcfbf8;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 0.28rem;
  box-shadow:
    0.28rem 0.38rem 0 -0.04rem #e4e0d6,
    0 1.1rem 2.4rem rgba(17, 17, 17, 0.055);
}

.curso-tile__hex {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.curso-hex__seg {
  fill: #111111;
}

.curso-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.1rem;
  padding-top: 2.35rem;
  text-align: center;
}

.curso-contact__text {
  margin: 0 0 1.55rem;
  max-width: 28rem;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: 0.005em;
  text-align: center;
  color: #161310;
}

.curso-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  width: 300px;
  min-height: 76px;
  height: 76px;
  margin: 0;
  padding: 0 1.6rem;
  box-sizing: border-box;
  border: 1px solid #e4d8c8;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%),
    #f7f1e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(90, 72, 52, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.35),
    inset -1px 0 0 rgba(90, 72, 52, 0.05),
    0 5px 0 rgba(90, 72, 52, 0.07),
    0 14px 28px rgba(42, 36, 28, 0.14);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #b60816;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.curso-contact__btn::before {
  content: "";
  display: block;
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18' fill='none' stroke='%23b60816' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.2' y='1.4' width='21.6' height='15.2' rx='1.6'/%3E%3Cpath d='M2 3.2 12 10.2 22 3.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.curso-contact__btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -2px 3px rgba(90, 72, 52, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.4),
    inset -1px 0 0 rgba(90, 72, 52, 0.05),
    0 7px 0 rgba(90, 72, 52, 0.08),
    0 20px 34px rgba(42, 36, 28, 0.18);
  transform: translateY(-3px);
}

.curso-contact__btn:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 2px rgba(90, 72, 52, 0.12),
    0 1px 0 rgba(90, 72, 52, 0.05),
    0 6px 12px rgba(42, 36, 28, 0.1);
  transform: translateY(2px);
}

.curso-contact__btn:focus {
  outline: none;
}

.curso-contact__btn:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(90, 72, 52, 0.08),
    0 5px 0 rgba(90, 72, 52, 0.07),
    0 14px 28px rgba(42, 36, 28, 0.14),
    0 0 0 2px rgba(255, 252, 247, 0.9),
    0 0 0 3px rgba(42, 37, 31, 0.38);
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .cursos {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    padding: 6.25rem 1.25rem 3.75rem;
  }

  .cursos__logo {
    top: 1.35rem;
    left: 1.2rem;
    width: 108px;
  }

  .cursos__title {
    display: block;
    max-width: 100%;
    margin: 0 auto 2.35rem;
    font-size: 1.7rem;
    text-align: center;
  }

  .cursos__title::before {
    content: none;
    display: none;
    padding: 0;
  }

  .curso,
  .curso--hex-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2.15rem 0;
    column-gap: 0;
    row-gap: 0;
    grid-template-columns: none;
    grid-template-areas: none;
  }

  .curso + .curso {
    padding-top: 2.65rem;
  }

  .curso__anchor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 1;
    width: 100%;
    margin: 0 0 1.15rem;
    gap: 0.85rem;
  }

  .curso--hex-end .curso__anchor {
    flex-direction: column-reverse;
    justify-content: center;
  }

  .curso__name {
    margin: 0;
    font-size: 1.12rem;
    text-align: center;
  }

  .curso__lead {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.65rem;
    font-size: 0.94rem;
    line-height: 1.7;
    text-align: left;
    justify-self: stretch;
  }

  .curso__body,
  .curso--hex-end .curso__lead,
  .curso--hex-end .curso__body {
    justify-self: stretch;
  }

  .curso__body {
    order: 3;
    width: 100%;
    max-width: 100%;
    gap: 2.15rem;
  }

  .curso-level__name {
    font-size: 0.8rem;
    text-align: left;
  }

  .curso-level > p,
  .curso-block p {
    font-size: 0.94rem;
    line-height: 1.7;
    text-align: left;
  }

  .curso-label {
    text-align: left;
  }

  .curso-tile {
    flex: 0 0 8.25rem;
    width: 8.25rem;
    max-width: 8.25rem;
    height: calc(8.25rem * 1.004);
    margin: 0 auto;
  }

  .curso-contact {
    width: 100%;
    max-width: 100%;
    margin-top: 0.35rem;
    padding-top: 1.65rem;
  }

  .curso-contact__text {
    width: 100%;
    max-width: 22rem;
    font-size: 1.12rem;
    line-height: 1.5;
  }

  .curso-contact__btn {
    width: min(280px, 100%);
    max-width: 100%;
    min-height: 4.4rem;
    height: auto;
    padding: 0.95rem 1.15rem;
    font-size: 16px;
  }
}
