.page {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.main {
  max-width: var(--max-width);
  width: 100%;
  overflow: hidden;
}

.section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  &.section--1 {
    height: 48rem;
  }

  &.section--2 {
    height: var(--max-width);
  }

  &.section--3 {
    height: 32rem;
  }

  &.section--4 {
    padding-block: 1.5rem;
    background-color: #554334;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  &.section--5 {
    padding-block: 1rem;
  }

  &.section--6 {
    padding-block: 2rem;
    background-color: #554334;
    color: white;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  &.section--7,
  &.section--8 {
    height: 22rem;
    padding-block: 2rem;
    color: white;
  }

  &.section--9 {
    height: 45rem;
  }

  &.section--10,
  &.section--11 {
    background-color: white;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 0.75rem;
  }

  &.section--10 {
    padding-top: 0.75rem;
    padding-right: 0.75rem;
  }

  &.section--11 {
    padding-left: 0.75rem;
  }

  &.section--12 {
    background-color: #534234;
  }

  &.section--13 {
    padding-block: 0.25rem 3rem;
  }

  &.section--15 {
    width: 100%;
    display: block;
    background-color: #f6f6ef;
    padding-block: 0.5rem 2rem;
    color: #000000aa;
  }

  &.section--16 {
    padding-block: 2.25rem;
    display: block;
  }

  &.section--17 {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem;
    background-color: #534234;
    color: #dfdfdf;
    text-align: center;
    line-height: 1.25rem;
    font-size: min(1rem, 4vw);
  }
}

.section__background {
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.section__backdrop {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #13131369;
}

/** Section 1 */

.section1__icon {
  aspect-ratio: 1;
  width: 5rem;
  position: absolute;
  z-index: 10;
  top: 5rem;
  left: 50%;
  translate: -50% 0;
}

.section1__wrapper {
  width: 50%;
  height: 100%;
  position: absolute;
  z-index: 20;
  top: 0;
  object-fit: cover;

  &.section1__wrapper--left {
    left: 0;
    object-position: 100% center;
    animation: section1-left 1s ease-in-out 0.5s forwards;
  }

  &.section1__wrapper--right {
    right: 0;
    object-position: 0 center;
    animation: section1-right 1s ease-in-out 0.5s forwards;
  }
}

.section1__seal {
  width: 5rem;
  position: absolute;
  z-index: 20;
  top: 50%;
  right: 50%;
  translate: 50% -50%;
  animation: section1-seal 1s ease-in-out 0.5s forwards;
}

/** Section 2 */

.section2__container {
  max-width: 26.75rem;
  width: 105%;
  height: 105%;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: url("../img/second_text.png");
  background-position: center 47.5%;
  background-repeat: no-repeat;
  background-size: 100%;
}

.section2__content {
  width: 50%;
  height: 100%;
  margin-block: auto;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.section2__text {
  text-align: center;
  color: #554334;

  &.section2__text--1 {
    font-size: min(2rem, 7vw);
  }

  &.section2__text--2 {
    font-size: min(2rem, 7vw);
    font-weight: 600;
  }

  &.section2__text--3 {
    flex: 1;
    border-top: 1px solid #554334;
    border-bottom: 1px solid #554334;
    padding-block: 0.2rem;
  }

  &.section2__text--4 {
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  &.section2__text--5 {
    font-size: min(1.5rem, 7vw);
  }
}

.section2__paragraph {
  width: 90%;
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  justify-content: space-evenly;
  align-items: center;
  text-transform: uppercase;
  flex-wrap: wrap;
  font-size: min(0.85rem, 4vw);
}

/** Section 3 */

.section3__envelope {
  width: 100%;
  position: absolute;
  top: 37.5%;
  left: 45%;
  translate: -50% -50%;
}

.section3__card {
  width: 80%;
  height: 50%;
  position: absolute;
  top: 65%;
  left: 50%;
  translate: -50% -50%;
  padding: 4.2rem 3.2rem 0;
  background-image: url("../img/third_message.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.section3__text {
  text-align: center;
  font-size: min(0.85rem, 3.25vw);
}

.section3__seal {
  width: 5.5rem;
  position: absolute;
  z-index: 20;
  top: 45%;
  left: 45%;
  translate: -50% -50%;
}

.section3__photo-border {
  aspect-ratio: 100/115;
  width: 35%;
  background-color: #f2f1eb;
  border-left: 1px solid #554334;
  border-bottom: 1px solid #554334;
  box-shadow: 7px 7px 4px #6e6e6eaa;
  position: absolute;
  top: 34%;
  right: 22.5%;
  translate: 50% -50%;
  z-index: 20;
  rotate: 9deg;
}

.section3__photo {
  max-width: 100%;
  min-width: 0;
  width: calc(100% - 20px);
  height: 75%;
  margin: 8px;
  border: 1px solid #554334;
  object-fit: cover;
}

/** Section 4 */

.section4__title {
  font-size: min(1.85rem, 8vw);
}

.section4__time {
  display: flex;
  gap: 0.5rem;
}

.section4__amount {
  font-size: min(3.5rem, 10vw);
}

.section4__type {
  font-size: min(1.25rem, 4vw);
}

.section4__column {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.section4__divider {
  font-size: min(3.5rem, 10vw);
}

/** Section 5 */

.section5__card {
  width: 90%;
  position: relative;
}

.section5__card-image {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.section5__text {
  width: 68%;
  top: 13.5%;
  left: 55%;
  translate: -50% -50%;
  position: absolute;
  text-align: center;
  line-height: min(1.35rem, 4.5vw);
  font-size: min(0.85rem, 2.25vw);
}

.section5__title {
  font-family: "Pinyon Script";
  font-size: min(1.5rem, 5vw);
  position: absolute;
  left: 50%;
  translate: -50% -50%;

  &.section5__title--1 {
    top: 23%;
  }

  &.section5__title--2 {
    top: 36.75%;
  }
}

.section5__parents {
  width: 80%;
  position: absolute;
  top: 29.5%;
  left: 50%;
  translate: -50% -50%;
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
  font-size: min(0.65rem, 2vw);
}

.section5__block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section5__godparents {
  width: 90%;
  position: absolute;
  top: 64.75%;
  left: 50%;
  translate: -50% -50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section5__subsection {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.section5__subtitle {
  font-family: "Pinyon Script";
  font-size: min(1.35rem, 4vw);
}

.section5__ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: min(0.8rem, 2vw);
}

.section5__li {
  list-style: none;
}

.section5__seal {
  width: 19%;
  position: absolute;
  top: 93%;
  right: -10%;
  translate: -50% -50%;
}

/** Section 6 */

.section6__gallery {
  width: 80%;
  margin-inline: auto;
}

.section6__viewport {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  touch-action: pan-y;
}

.section6__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;

  &.section6__image--hidden {
    opacity: 0;
    pointer-events: none;
  }
}

.section6__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.45);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;

  &:hover {
    background: rgb(0 0 0 / 0.75);
  }

  &:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  &:active {
    transform: translateY(-50%) scale(0.92);
  }
}

.section6__arrow--prev {
  left: 0.75rem;
}

.section6__arrow--next {
  right: 0.75rem;
}

/* Indicadores */
.section6__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.section6__dot {
  width: 0.6rem;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;

  &.section6__dot--active {
    background: #c4c4c4;
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section6__image,
  .section6__arrow,
  .section6__dot {
    transition: none;
  }
}

/** Section 7 and 8 */

.section7__content,
.section8__content {
  width: 70%;
  height: fit-content;
  position: absolute;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section7__content {
  padding-block: 1rem;
  top: 0;
  left: 0;
}

.section8__content {
  padding-block: 3rem;
  bottom: 0;
  right: 0;
}

.section7__text,
.section8__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.section7__span,
.section8__span {
  text-align: center;

  &.section7__span--1,
  &.section8__span--1 {
    font-size: min(0.85rem, 4vw);
    text-transform: uppercase;
  }

  &.section7__span--2,
  &.section8__span--2 {
    font-size: min(1.25rem, 4.5vw);
  }

  &.section7__span--3,
  &.section8__span--3 {
    font-size: min(1.2rem, 4.5vw);
  }
}

.section7__button {
  padding: 0.35rem 0.75rem;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 50px;
  font-size: min(1.5rem, 4.75vw);
}

/** Section 9 */

.section9__content {
  width: 80%;
  height: 80%;
  padding: 1.5rem 1rem;
  background-color: #534234;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  color: white;
}

.section9__title {
  font-size: min(1.75rem, 3rem);
  text-align: center;
}

.section9__itinerary {
  margin-top: 3.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;

  &::after,
  &::before {
    content: "";
    aspect-ratio: 1;
    width: 0.45rem;
    background-color: white;
    border-radius: 50%;
    position: absolute;
  }

  &::after {
    top: -1.7rem;
    left: 50%;
    translate: -50% -50%;
  }

  &::before {
    bottom: -1.7rem;
    left: 50%;
    translate: -50% -50%;
  }
}

.section9__line {
  width: 0.05rem;
  height: 111%;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

.section9__element {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.section9__svgcontainer {
  width: 50%;
  display: flex;
  justify-content: flex-end;
}

.section9__svg {
  width: 3.5rem;
  height: 3.5rem;
  color: white;
}

.section9__point {
  aspect-ratio: 1;
  width: 0.45rem;
  background-color: white;
  border-radius: 50%;
}

.section9__event {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section9__text {
  font-size: min(1rem, 5vw);
  font-family: "Pinyon Script";
}

.section9__hour {
  font-size: min(0.85rem, 3vw);
  font-family: "Libre Baskerville";
}

/** Section 10 and section 11 */

.section10__image,
.section11__image {
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

/** Section 12 */

.section12__content {
  width: 80%;
  margin-inline: auto;
  padding-block: 0.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-align: center;
}

.section12__svg {
  width: 7.5rem;
  height: 7.5rem;
}

.section12__button {
  margin-block: 0.5rem;
  padding: 0.45rem 1.75rem;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 50px;
  font-family: "Pinyon Script";
  font-size: min(1.5rem, 5vw);
}

/** Section 13 */

.section13__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
  color: #3c3333;
  text-align: center;
}

.section13__svg {
  width: 5.75rem;
  height: 5.75rem;
}

.section13__colors {
  height: 3.25rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section13__color {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  margin-left: -1rem;

  &.section13__color--1 {
    background-color: #ffffff;
    margin-left: 0;
  }

  &.section13__color--2 {
    background-color: #fff8e5;
  }

  &.section13__color--3 {
    background-color: #fde4a7;
  }

  &.section13__color--4 {
    background-color: #bb0c0c;
  }
}

/** Section 14 */

.section14__content {
  width: 100%;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.section14__svg {
  width: 7.5rem;
  height: 7.5rem;
  rotate: 12deg;
}

.section14__title {
  margin-top: -1rem;
  font-size: min(1.75rem);
}

.section14__text {
  width: 72%;
  text-align: center;
  color: #ffffffb9;
  font-size: min(0.95rem, 3vw);
  line-height: 1.25rem;
}

/** Section 15 */

.section15__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section15__svg {
  width: 5.5rem;
  height: 5.5rem;
  rotate: 15deg;
}

.section15__title {
  font-family: "Pinyon Script";
  font-size: min(1.7rem, 6.75vw);
  text-align: center;
}

.section15__hotel {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section15__bento {
  width: 95%;
  height: 20rem;
  margin-inline: auto;
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  grid-template-columns: repeat(9, 1fr);
}

.section15__button {
  width: fit-content;
  margin-top: 1rem;
  margin-inline: auto;
  padding: 0.35rem 0.75rem;
  background-color: transparent;
  border: 1px solid #000000aa;
  border-radius: 50px;
  font-size: min(1.5rem, 5.5vw);
  font-family: "Pinyon Script";
  color: #000000af;
}

.section15__img1 {
  grid-row: 3/11;
  grid-column: 1/5;
  background-image: url("../img/quinta.jpeg");
  background-size: 100% 100%;
  z-index: 10;
}

.section15__img2 {
  grid-row: 1/8;
  grid-column: 4/10;
  background-image: url("../img/quinta_2.jpeg");
  background-size: 100% 100%;
}

.section15__img3 {
  grid-row: 8/11;
  grid-column: 5/10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "Libre Baskerville";
  font-size: min(0.9rem, 3.5vw);
}

.section15__img4 {
  grid-row: 3/11;
  grid-column: 6/10;
  background-image: url("../img/albatros.jpeg");
  background-size: 100% 100%;
  z-index: 10;
}

.section15__img5 {
  grid-row: 1/8;
  grid-column: 1/7;
  background-image: url("../img/albatros_2.jpeg");
  background-size: 100% 100%;
}

.section15__img6 {
  grid-row: 8/11;
  grid-column: 1/6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "Libre Baskerville";
  font-size: min(0.9rem, 3.5vw);
}

/** Section 16 */

.section16__circle {
  width: 110%;
  margin-left: -5%;
}

.section16__content {
  width: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  gap: 0.5rem;
}

.section16__title {
  width: 40%;
  margin-inline: auto;
  font-family: "Pinyon Script";
  font-size: min(1.65rem, 6vw);
  color: #000000da;
}

.section16__text {
  /* width: 90%; */
  margin-inline: auto;
  font-family: "Libre Baskerville";
  color: #0000009d;
  text-align: center;
  font-size: min(0.9rem, 3.5vw);
  line-height: min(1.5rem, 5vw);
}

.section16__button {
  width: fit-content;
  margin-inline: auto;
  margin-block: 0.5rem;
  padding: 0.45rem 1.75rem;
  background-color: transparent;
  border: 1px solid #000000aa;
  border-radius: 50px;
  font-family: "Pinyon Script";
  font-size: min(1.5rem, 5.25vw);
  color: #000000aa;
}
