body {
    font-family: "josefin-sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    background-color: var(--mauve-taupe);
}

.invitation-content {
    display: none;
}

.invitation-content--visible {
    display: block;
}

body.invitation-locked {
    height: 100vh;
    overflow: hidden;
}

.passport-cover__hint:focus {
    outline: none;
}

.passport-cover {
    min-height: 100vh;
    padding: 2rem 1.5rem;
    background-color: var(--mauve-taupe);
    background-image: url("../assets/leather_texture.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    text-align: center;
}

.passport-cover__content {
    width: 100%;
    max-width: 20rem;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.passport-cover__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.passport-cover__title {
    font-family: "alegreya", serif;
    font-style: normal;
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: 0.12em;
    color: var(--soft-ivory);
}

.passport-cover__seal {
    width: 11rem;
    margin-top: 2.5rem;
}

.passport-cover__subtitle {
    margin-top: 2rem;
    max-width: 12rem;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--soft-ivory);
}

.passport-cover__hint {
    margin-top: auto;
    margin-bottom: 1rem;
    font-family: "josefin-sans", sans-serif;
    font-size: 0.75rem;
    color: var(--soft-ivory);
    opacity: 0.9;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.journey {
    background-color: var(--soft-ivory);
}

.journey__background {
    position: relative;
    padding: 2.25rem 0 0;
    background-image: url("../assets/paper_texture.jpg");
    background-repeat: repeat;
    background-size: cover;
    overflow: hidden;
}

.journey__top {
    position: relative;
    height: 38.375rem; /* 614px */
    margin-bottom: 0;
    overflow: hidden;
}

.journey__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.journey__top-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 2rem 1.25rem 0;
}

.journey__intro {
    max-width: 10rem;
    margin: 0;
    font-family: "modish", serif;
    font-size: 2.1875rem; /* 35px */
    line-height: 0.92;
    font-weight: 400;
    color: var(--deep-wine);
    text-align: left;
}

.journey__route {
    position: absolute;
    top: 11.25rem;
    left: 4.4rem;
    width: 15.8rem;
    max-width: none;
    margin: 0;
    z-index: 1;
}

.journey__invite {
    position: absolute;
    right: 1.2rem;
    top: 31.8rem;
    max-width: 13rem;
    margin: 0;
    font-family: "modish", serif;
    font-size: 2.1875rem; /* 35px */
    line-height: 0.95;
    font-weight: 400;
    color: var(--deep-wine);
    text-align: right;
}

.boarding-pass {
    position: relative;
    margin: 0 1rem 0;
    background-color: var(--mauve-taupe);
    border-radius: 1rem;
    overflow: hidden;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.boarding-pass__photo-wrapper {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.boarding-pass__photo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    padding: 0.6rem;
}

.boarding-pass__content {
    position: relative;
    z-index: 1;
    color: var(--soft-ivory);
}

.boarding-pass__title {
    margin: 0 0 1rem;
    padding: 0.65rem 0;
    border-top: 2px dashed rgba(243, 231, 226, 0.9);
    border-bottom: 2px dashed rgba(243, 231, 226, 0.9);
    font-family: "alegreya", serif;
    font-size: 1.5625rem; /* 25px */
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--soft-ivory);
}

.boarding-pass__info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.boarding-pass__group {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.boarding-pass__label {
    margin: 0;
    font-family: "josefin-sans", sans-serif;
    font-size: 1.0625rem; /* 17px */
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--deep-wine);
    padding-bottom: 0.50rem;
}

.boarding-pass__value {
    margin: 0;
    color: var(--soft-ivory);
}

.boarding-pass__value--handwritten {
    max-width: 12rem;
    font-family: "edu-nsw-act-hand-precursive", sans-serif;
    font-size: 0.85rem; /* 15px */
    line-height: 1.2;
    font-weight: 500;
}

#passengers {
    line-height: 1.8;
}

.boarding-pass__note {
    margin: 0.50rem auto 0;
    max-width: 15rem;
    font-family: "josefin-sans", sans-serif;
    font-size: 0.85rem; /* 15px */
    line-height: 1.05;
    font-weight: 400;
    text-align: center;
    color: var(--deep-wine);
}

.boarding-pass__stamp {
    position: absolute;
    right: -1.5rem;
    bottom: 1rem;
    width: 7rem;
    pointer-events: none;
    z-index: 0;
}

.details-section {
    background-color: var(--mauve-taupe);
    position: relative;
}

/* ===== FOTOS ===== */

.details-section__photo {
    position: relative;
    width: 100%;
}

.details-section__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.details-section__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(64, 30, 29, 0.3);
    pointer-events: none;
}

/* ===== ONDAS ===== */

.details-wave {
    position: relative;
    width: 100%;
    z-index: 2;
}

.details-wave__shape {
    display: block;
    width: 100%;
    height: auto;
}

.details-wave--dresscode {
    position: absolute;
    top: 0rem;
    margin-bottom: -7rem;
}

.details-wave--gifts {
    position: absolute;
    top: 32rem;
}

.details-wave--rsvp {
    position: absolute;
    top: 64rem;
}

/* ===== CONTENIDO ===== */

.details-wave__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.details-wave__content--light {
    color: var(--deep-wine);
}

.details-wave__content--dark {
    color: var(--deep-wine);
    top: 3rem;
}

/* ===== DRESS CODE ===== */

.details-wave--dresscode .details-wave__content {
    padding-top: 1.2rem;
    top: 4rem
}

.details-wave--dresscode .details-wave__icon {
    width: 2rem;
    margin-bottom: 0.55rem;
}

.details-wave--dresscode .details-wave__title {
    margin: 0;
}

/* ===== REGALOS ===== */

.details-wave--gifts .details-wave__content {
    padding-top: 1.4rem;
}

.details-wave--gifts .details-wave__icon {
    width: 3.5rem;
    margin-bottom: 0.55rem;
}

.details-wave--gifts .details-wave__title {
    margin: 0;
}

/* ===== RSVP ===== */

.details-wave--rsvp .details-wave__content {
    padding-top: 1.8rem;
    top: 2rem;
}

.details-wave--rsvp .details-wave__title {
    margin: 0;
}

.details-wave--rsvp .details-wave__subtitle {
    margin-top: 0.65rem;
}

/* ===== ELEMENTOS GENERALES ===== */

.details-wave__icon {
    display: block;
    height: auto;
}

.details-wave__title {
    font-family: "modish", sans-serif;
    font-size: 1.5625rem;
    line-height: 1.1;
    font-weight: 500;
}

.details-wave__title--script {
    font-family: "modish", serif;
    font-size: 2.1875rem;
    line-height: 0.95;
    font-weight: 400;
}

.details-wave__subtitle {
    margin-top: 0.35rem;
    font-family: "edu-nsw-act-hand-precursive", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.2;
    font-weight: 500;
}

.details-wave__subtitle--accent {
    color: var(--dusty-rose);
}

.details-wave__subtitle--light {
    color: var(--soft-ivory);
}

.details-wave__text {
    margin-top: 0.95rem;
    max-width: 15rem;
    margin-left: auto;
    margin-right: auto;
    font-family: "josefin-sans", sans-serif;
    font-size: 0.6875rem;
    line-height: 1.35;
    font-weight: 400;
}

.details-wave__text--light {
    color: var(--blush-nude);
}

.details-wave__ticket-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.details-wave__ticket-icon {
    height: auto;
}

.details-wave__hint {
    margin-top: 0.8rem;
    font-family: "josefin-sans", sans-serif;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--deep-wine);
}

.memories-section {
    background-color: var(--mauve-taupe);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 18rem 0 2.5rem;
}

.memories-section__content {
    padding: 0 1.25rem;
}

.memories-section__title {
    margin: 0;
    font-family: "modish", serif;
    font-size: 2.1875rem; /* 35px */
    line-height: 0.95;
    font-weight: 400;
    color: var(--deep-wine);
}

.memories-section__text {
    margin-top: 0.8rem;
    max-width: 22rem;
    font-family: "edu-nsw-act-hand-precursive", sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--soft-ivory);
}

.memories-carousel {
    margin-top: 1.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.memories-carousel::-webkit-scrollbar {
    display: none;
}

.memories-carousel__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding-right: 1.25rem;
}

.memories-carousel__slide {
    flex: 0 0 13.75rem;
    scroll-snap-align: start;
}

.memories-carousel__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.memories-carousel {
    margin-top: 1.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.memories-carousel::-webkit-scrollbar {
    display: none;
}

.memories-carousel__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding-right: 1.25rem;
}

.memories-carousel__slide {
    flex: 0 0 13.75rem;
    scroll-snap-align: start;
}

.memories-carousel__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.memories-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.memories-carousel__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    border: none;
    padding: 0;
    background-color: rgba(243, 231, 226, 0.45);
    cursor: pointer;
}

.memories-carousel__dot.is-active {
    background-color: var(--soft-ivory);
}

.album-section {
    background-image: url("../assets/paper_texture.jpg");
    background-repeat: repeat;
    background-size: cover;
    padding: 3rem 1.5rem 3.5rem;
}

.album-section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.album-section__title {
    margin: 0;
    font-family: "modish", serif;
    font-size: 2.1875rem; /* 35px */
    line-height: 1.15;
    font-weight: 400;
    color: var(--deep-wine);
}

.album-section__text {
    margin: 0;
}

.album-section__text--accent {
    margin-top: 1.5rem;
    max-width: 18rem;
    font-family: "edu-nsw-act-hand-precursive", sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--dusty-rose);
}

.album-section__hashtag {
    margin: 1rem 0 0;
    font-family: "josefin-sans", sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--deep-wine);
}

.album-section__qr {
    display: block;
    width: 12rem;
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
}


.final-card-section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--mauve-taupe);
}

.final-card-section__card {
    width: 100%;
    padding: 1rem;
}

.final-card-section__image {
    display: block;
    width: 100%;
    height: auto;
}

.final-card-section__credit {
    margin: 0;
    width: 100%;
    padding: 0.9rem 0;
    text-align: center;
    font-family: "josefin-sans", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--dusty-rose);
    background-color: var(--soft-ivory);
}

.music-toggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.music-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.music-toggle {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: var(--blush-nude);
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle.is-playing {
  transform: scale(1.05);
}

.music-toggle:active {
  transform: scale(0.96);
}

@media (min-width: 768px) {
    :root {
        --mobile-frame-width: 23.4375rem;
    }

    body {
        background-color: var(--soft-ivory);
    }

    body.invitation-open {
        background-color: var(--mauve-taupe);
    }

    .invitation-content {
        box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.2); 
    }

    .passport-cover,
    #invitationContent {
        width: min(100%, var(--mobile-frame-width));
        margin: 0 auto;
    }

    .passport-cover {
        min-height: 100vh;
    }

    .passport-cover__content {
        max-width: none;
    }

    .details-wave--rsvp {
        top: 60rem;
    }
    .details-wave--rsvp .details-wave__content {
        top: 1.5rem;
    }
    .memories-section {
        padding: 16rem 0 2.5rem;
    }
}