* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background-color: #F4F6F0;
    transition: background-color 0.4s ease;
}

@font-face {
    font-family: 'Domine';
    src: url('../assets/fonts/Domine-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BlackSignature';
    src: url('../assets/fonts/Robert/BlackSignature.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'High_Empathy';
    src: url('../assets/fonts/Laura/High_Empathy.otf') format('opentype');
    font-style: normal;
}


@font-face {
    font-family: 'CustomRobertFont';
    src: url('../assets/fonts/NRobert/TNanti.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'CustomLauraFont';
    src: url('../assets/fonts/NLaura/Classic_Market.otf') format('opentype');
    font-style: normal;
}


.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #95A37D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 9999;
    clip-path: circle(150% at 50% 50%);
    will-change: clip-path, transform;
    overflow: hidden;
}

#rings-svg {
    opacity: 0;
}

.ethereal-font {
    font-family: 'Domine', serif;
    color: #FFFFFF;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.4;
    padding: 0 20px;
    max-width: 800px;
}

.svg-container {
    width: 250px;
    height: auto;
}

.draw-path {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 10px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-content {
    opacity: 0;
    visibility: hidden;
}

.audio-control {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(74, 93, 35, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    color: #4A5D23;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.audio-control:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(74, 93, 35, 0.3);
    transform: scale(1.05);
}

.audio-paths {
    transform-origin: center;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-paths {
    opacity: 0;
    transform: scale(0.7) rotate(-15deg);
}

.pause-paths {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.audio-control.is-paused .play-paths {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.audio-control.is-paused .pause-paths {
    opacity: 0;
    transform: scale(0.7) rotate(15deg);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 12vh 20px 8vh 20px;
    text-align: center;
    color: #4A5D23;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.hero-element {
    position: relative;
    z-index: 1;
}

.subtitle,
.location-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
}

.title-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.name-wrapper {
    overflow: hidden;
    padding: 10px 20px;
    margin: -10px -20px;
}

.name-block {
    display: block;
    transform: translateY(110%);
    line-height: 1.1;
}

.robert-font {
    font-family: 'CustomRobertFont', serif;
    font-size: clamp(3.5rem, 8vw, 4.8rem);
    color: #1A1A1A;
    transform: translateY(-100px);
}

.laura-font {
    font-family: 'CustomLauraFont', cursive;
    font-size: clamp(3.2rem, 10vw, 5.8rem);
    color: #1A1A1A;
}

.ampersand-inline {
    font-family: 'High_Empathy', cursive;
    font-size: clamp(2rem, 6vw, 3.8rem);
    color: #95A37D;
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-size: 1.6rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
}

.time-box small {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

.scroll-indicator {
    margin-top: 35px;
    opacity: 0.4;
}

.story-editorial {
    position: relative;
    min-height: 180vh;
    padding: 15vh 4vw;
    overflow: hidden;
    background-color: transparent;
}

.editorial-marquee {
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translate(-50%, 0);
    width: 150vw;
    display: flex;
    flex-direction: column;
    gap: 4vh;
    pointer-events: none;
    z-index: 3;
}

.marquee-line {
    font-family: 'Domine', serif;
    font-size: clamp(2.2rem, 12vw, 9rem);
    font-weight: 400;
    color: rgba(74, 93, 35, 0.6);
    white-space: nowrap;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center; 
}

@media (max-width: 768px) {
    .editorial-marquee {
        width: 125vw;
        gap: 2vh;
    }
    
    .marquee-line {
        letter-spacing: -0.01em;
    }
}

.editorial-gallery {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 140vh;
    z-index: 2;
}

.gallery-photo {
    position: absolute;
    object-fit: cover;
    background-color: #F4F6F0;
    will-change: transform;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.photo-1 {
    width: 32%;
    height: 48vh;
    top: 5vh;
    left: 34%;
}

.photo-2 {
    width: 26%;
    height: 38vh;
    top: 25vh;
    right: 2%;
}

.photo-3 {
    width: 30%;
    height: 45vh;
    top: 60vh;
    left: 2%;
}

.photo-4 {
    width: 28%;
    height: 38vh;
    top: 65vh;
    left: 38%;
}

.photo-5 {
    width: 25%;
    height: 42vh;
    top: 85vh;
    right: 5%;
}

@media (max-width: 768px) {
    .story-editorial {
        min-height: auto;
        padding-bottom: 0;
    }

    .editorial-gallery {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
        padding: 5vh 0 0 0;
        margin-bottom: -15vh;
    }

    .gallery-photo {
        position: relative;
        height: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        border-radius: 4px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .photo-1 {
        width: 75% !important;
        align-self: flex-start;
    }

    .photo-2 {
        width: 65% !important;
        align-self: flex-end;
        margin-top: -15%;
    }

    .photo-3 {
        width: 85% !important;
        align-self: center;
        margin-top: -10%;
    }

    .photo-4 {
        width: 70% !important;
        align-self: flex-start;
        margin-top: -15%;
    }

    .photo-5 {
        width: 80% !important;
        align-self: flex-end;
        margin-top: -20%;
    }

    .editorial-marquee {
        /* Se hereda top: 5vh */
    }

    .marquee-line {
        font-size: 2.8rem;
    }
}

.story-carousel {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #FFFFFF;
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14vh 0 8vh 0;
}

.carousel-title-wrapper {
    width: 100%;
    padding: 0 8vw;
    text-align: left;
}

.carousel-title-text {
    font-family: 'Domine', serif;
    color: #1A1A1A;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.accent-title {
    font-family: 'High_Empathy', cursive;
    color: #95A37D;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    display: inline-block;
    margin-top: 8px;
}

.carousel-track-wrapper {
    width: 100%;
    overflow: visible;
    margin-top: auto;
    margin-bottom: 4vh;
}

.carousel-track {
    display: flex;
    gap: 4vw;
    padding-left: 95vw;
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    width: clamp(280px, 25vw, 380px);
    height: 52vh;
    border-radius: 2px;
    overflow: hidden;
    background-color: #F4F6F0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease;
}

.carousel-slide:nth-child(even) {
    transform: translateY(4vh);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 6vh 0 8vh 0;
        justify-content: center;
        gap: 5vh;
    }

    .carousel-title-wrapper {
        padding: 0 6vw;
    }

    .carousel-track {
        padding-left: 85vw;
        gap: 6vw;
    }

    .carousel-slide {
        width: 250px;
        height: 40vh;
    }

    .carousel-slide:nth-child(even) {
        transform: translateY(2vh);
    }
}

.wedding-invitation {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-color: #FFFFFF;
    padding: 16vh 8vw;
    display: flex;
    justify-content: center;
}

.invitation-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

.invitation-header {
    width: 100%;
    text-align: left;
}

.invitation-subtitle {
    font-family: 'Domine', serif;
    color: #4A5D23;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.invitation-body {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4vh;
}

.editorial-paragraph {
    font-family: 'Domine', serif;
    color: #1A1A1A;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.8;
    text-align: justify;
    font-weight: 300;
}

.editorial-paragraph::first-letter {
    font-family: 'Domine', serif;
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 700;
    float: left;
    line-height: 0.85;
    padding-top: 4px;
    padding-right: 12px;
    padding-left: 2px;
    color: #1A1A1A;
}

@media (max-width: 768px) {
    .wedding-invitation {
        padding: 10vh 6vw;
    }

    .invitation-container {
        gap: 5vh;
    }

    .editorial-paragraph {
        text-align: left;
    }
}

.wedding-details-wrapper {
    width: 100vw;
    background-color: #FFFFFF;
}

.info-block {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
}

.info-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    will-change: transform, border-radius, width, height, top;
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 5vh;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    max-width: 520px;
    width: 90%;
    border: 1px solid rgba(74, 93, 35, 0.08);
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.info-card-title {
    font-family: 'Domine', serif;
    font-size: 1.6rem;
    color: #1A1A1A;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.info-card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4A4A4A;
    font-weight: 300;
}

.dress-code-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-top: 5px;
}

.premium-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border: 1px solid #4A5D23;
    background-color: transparent;
    color: #4A5D23;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 22px;
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-outline-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4A5D23;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-outline-btn:hover {
    color: #FFFFFF;
}

.premium-outline-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 768px) {
    .info-card-content {
        padding: 24px 20px;
        margin-bottom: 6vh;
    }

    .info-card-title {
        font-size: 1.35rem;
    }

    .info-card-text {
        font-size: 0.82rem;
    }

    .premium-outline-btn {
        padding: 11px 22px;
        font-size: 0.75rem;
        width: 100%;
    }
}

.pinterest-helper {
    margin-top: 30px;
    border-top: 1px solid rgba(74, 93, 35, 0.1);
    padding-top: 20px;
}

.helper-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #4A5D23;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    font-weight: 400;
}

.helper-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.premium-outline-btn.dress-btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 0.75rem;
    flex: 1;
    max-width: 160px;
}

.dress-note {
    font-size: 0.8rem;
    opacity: 0.8;
    display: inline-block;
    margin-top: 4px;
    font-style: italic;
}

@media (max-width: 480px) {
    .helper-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .premium-outline-btn.dress-btn {
        max-width: 100%;
    }
}

.rsvp-card {
    min-height: 280px;
    transition: min-height 0.4s ease;
}

.rsvp-state-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.premium-outline-btn.is-loading {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.trigger-container {
    z-index: 3;
    margin-top: 10px;
    will-change: opacity, transform;
}

.premium-trigger-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 32px;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.4s, border-color 0.4s;
    animation: btnBreathing 2.5s ease-in-out infinite;
}

.premium-trigger-btn .btn-text {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.premium-trigger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes btnBreathing {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
    100% { transform: scale(1); opacity: 0.8; }
}

.scroll-hint {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(74, 93, 35, 0.12);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4A5D23;
    font-weight: 500;
}

.scroll-icon {
    width: 12px;
    height: 12px;
    color: #4A5D23;
    display: flex;
    align-items: center;
    animation: scrollChevronBounce 1.6s infinite ease-in-out;
}

@keyframes scrollChevronBounce {
    0% { transform: translateY(-3px); opacity: 0.4; }
    50% { transform: translateY(3px); opacity: 1; }
    100% { transform: translateY(-3px); opacity: 0.4; }
}

.preloader-memories {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.memory-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    filter: grayscale(100%) contrast(1.05) brightness(1.15);
    will-change: transform, opacity;
}

.preloader-blend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #95A37D;
    z-index: 2;
    mix-blend-mode: multiply; 
    pointer-events: none;
}

.preloader-content,
.trigger-container {
    z-index: 3 !important;
}

.trigger-container {
    margin-top: 15px;
    will-change: opacity, transform;
}

.premium-trigger-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 32px;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.4s, border-color 0.4s;
    animation: btnBreathing 2.5s ease-in-out infinite;
}

.premium-trigger-btn .btn-text {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.premium-trigger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes btnBreathing {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
    100% { transform: scale(1); opacity: 0.8; }
}