@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Montserrat:wght@300;400;500;600;700&display=swap');


/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
}


/* =====================================================
   FONDO
===================================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 60, 100, 0.06),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(180, 40, 100, 0.05),
            transparent 30%
        );

    pointer-events: none;
    z-index: -1;
}


/* =====================================================
   PROGRESS BAR
===================================================== */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: rgba(255,255,255,0.05);

    z-index: 1000;
}

.progress-fill {
    height: 100%;
    width: 0%;

    background: rgba(255,255,255,0.8);

    transition: width 0.15s ease;
}


/* =====================================================
   SECCIONES
===================================================== */

section {
    position: relative;

    min-height: 100vh;

    padding: 90px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* =====================================================
   INTRO
===================================================== */

.intro {
    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 50, 100, 0.13),
            transparent 45%
        ),
        #050505;
}

.intro-content {
    max-width: 700px;
}

.tiny-heart {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.7;

    animation: heartbeat 2.5s infinite;
}

.eyebrow,
.chapter-title,
.proposal-label,
.transition-small,
.yes-small {
    font-size: 0.68rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.45);
}

.intro h1 {
    font-family: 'DM Serif Display', serif;

    font-size: clamp(2.8rem, 10vw, 5.5rem);

    font-weight: normal;
    line-height: 1.08;

    margin: 25px 0;

    animation: introAppear 1.5s ease;
}

.intro-line {
    width: 60px;
    height: 1px;

    margin: 30px auto;

    background: rgba(255,255,255,0.4);
}

.intro-text {
    color: rgba(255,255,255,0.65);

    line-height: 2;

    animation: introAppear 2s ease;
}

.scroll-indicator {
    position: absolute;

    bottom: 30px;

    text-align: center;

    color: rgba(255,255,255,0.35);

    font-size: 0.65rem;

    letter-spacing: 3px;
}

.scroll-arrow {
    margin-top: 10px;

    font-size: 1.3rem;

    animation: bounce 2s infinite;
}


/* =====================================================
   CAPÍTULOS
===================================================== */

.memory {
    background: #080808;
    text-align: center;
}

.chapter-number {
    font-size: 0.7rem;

    letter-spacing: 4px;

    color: rgba(255,255,255,0.25);

    margin-bottom: 10px;
}

.chapter-title {
    margin-bottom: 25px;
}


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

.photo {
    width: min(100%, 820px);

    margin: 30px auto;

    overflow: hidden;

    border-radius: 18px;

    box-shadow:
        0 25px 80px rgba(0,0,0,0.65),
        0 0 50px rgba(255,60,100,0.05);

    opacity: 0;

    transform:
        translateY(70px)
        scale(0.96);

    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.photo.visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.photo img {
    display: block;

    width: 100%;

    max-height: 700px;

    object-fit: cover;

    transition:
        transform 8s ease;
}

.photo.visible img {
    transform: scale(1.035);
}


/* =====================================================
   FOTO 1
===================================================== */

.photo1 img {
    height: auto;

    max-height: none;

    object-fit: contain;
}


/* =====================================================
   DOBLE FOTO
===================================================== */

.double-photo .photo {
    margin-bottom: 20px;
}


/* =====================================================
   TEXTOS
===================================================== */

.memory-text {
    max-width: 720px;

    margin: 25px auto 80px;

    text-align: center;

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

.memory-text.visible {
    opacity: 1;

    transform: translateY(0);
}

.memory-text p {
    color: rgba(255,255,255,0.78);

    font-size: 0.98rem;

    line-height: 1.95;

    margin-bottom: 22px;
}

.memory-text .highlight {
    font-family: 'DM Serif Display', serif;

    font-size: 1.35rem;

    color: rgba(255,255,255,0.95);

    margin-top: 35px;
}


/* =====================================================
   SEPARACIÓN
===================================================== */

.separation {
    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.025),
            transparent 50%
        ),
        #030303;

    text-align: center;
}

.separation-content {
    max-width: 650px;
}

.separation-symbol {
    margin: 45px 0;

    font-size: 1.5rem;

    color: rgba(255,255,255,0.2);
}

.separation p {
    color: rgba(255,255,255,0.5);

    line-height: 2;

    margin-bottom: 20px;
}

.time-pause {
    margin: 70px 0;

    font-family: 'DM Serif Display', serif;

    font-size: 2rem;

    color: rgba(255,255,255,0.75);
}

.time-pause span {
    animation: slowFade 4s ease infinite;
}

.soft-text {
    font-size: 0.9rem;

    color: rgba(255,255,255,0.32) !important;
}


/* =====================================================
   PAUSA
===================================================== */

.quiet {
    background: #030303;

    text-align: center;
}

.quiet-content {
    max-width: 650px;
}

.quiet p {
    color: rgba(255,255,255,0.4);

    line-height: 2;

    margin: 25px 0;
}

.quiet .strong {
    font-family: 'DM Serif Display', serif;

    font-size: clamp(1.6rem, 6vw, 2.5rem);

    color: rgba(255,255,255,0.85);

    line-height: 1.5;
}

.quiet-line {
    width: 1px;

    height: 70px;

    margin: 45px auto;

    background: rgba(255,255,255,0.2);
}


/* =====================================================
   REENCUENTRO
===================================================== */

.reunion {
    background:
        radial-gradient(
            circle at center,
            rgba(255,60,110,0.07),
            transparent 50%
        ),
        #070707;
}


/* =====================================================
   ARGENTINA
===================================================== */

.argentina {
    background:
        radial-gradient(
            circle at center,
            rgba(100,150,255,0.05),
            transparent 50%
        ),
        #070707;
}


/* =====================================================
   TRANSICIÓN
===================================================== */

.transition {
    background:
        linear-gradient(
            180deg,
            #080808,
            #050505
        );

    text-align: center;
}

.transition-content {
    max-width: 700px;
}

.transition h2 {
    font-family: 'DM Serif Display', serif;

    font-size: clamp(2.3rem, 9vw, 4rem);

    font-weight: normal;

    margin: 30px 0;
}

.transition-line {
    width: 50px;
    height: 1px;

    background: rgba(255,255,255,0.3);

    margin: 35px auto;
}

.transition p {
    color: rgba(255,255,255,0.48);

    margin: 18px 0;

    line-height: 1.8;
}

.transition .strong {
    font-family: 'DM Serif Display', serif;

    font-size: 1.5rem;

    color: rgba(255,255,255,0.9);

    margin-top: 40px;
}


/* =====================================================
   PRESENTE
===================================================== */

.present {
    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255,50,100,0.12),
            transparent 48%
        ),
        #060606;
}

.present-content {
    max-width: 650px;
}

.present h2 {
    font-family: 'DM Serif Display', serif;

    font-size: clamp(3rem, 12vw, 5rem);

    font-weight: normal;

    margin: 25px 0 40px;
}

.present p {
    color: rgba(255,255,255,0.55);

    line-height: 2;

    margin: 8px 0;
}

.present-heart {
    margin-top: 50px;

    font-size: 1.8rem;

    animation: heartbeat 2s infinite;
}


/* =====================================================
   PRE PROPUESTA
===================================================== */

.pre-proposal {
    background: #040404;

    text-align: center;
}

.pre-proposal-content {
    max-width: 700px;
}

.proposal-whisper {
    font-family: 'DM Serif Display', serif;

    font-size: clamp(1.4rem, 5vw, 2.2rem);

    line-height: 1.6;

    color: rgba(255,255,255,0.72);

    margin: 20px 0;

    opacity: 0;

    transform: translateY(30px);

    animation: whisperAppear 1.5s ease forwards;
}

.proposal-whisper:nth-child(1) {
    animation-delay: 0.3s;
}

.proposal-whisper:nth-child(3) {
    animation-delay: 1s;
}

.proposal-whisper:nth-child(5) {
    animation-delay: 1.8s;
}

.proposal-whisper:nth-child(6) {
    animation-delay: 2.6s;
}

.proposal-whisper:nth-child(7) {
    animation-delay: 3.4s;
}

.proposal-pause {
    height: 40px;
}

.proposal-pause.big {
    height: 70px;
}


/* =====================================================
   PROPUESTA FINAL
===================================================== */

.proposal {
    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(255,30,90,0.16),
            transparent 42%
        ),
        #030303;

    text-align: center;
}

.proposal-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(255,40,100,0.08);

    filter: blur(100px);

    animation: proposalGlow 5s ease-in-out infinite;

    pointer-events: none;
}

.proposal-content {
    position: relative;

    z-index: 2;
}

.proposal-heart {
    font-size: 1.6rem;

    margin-bottom: 30px;

    animation: heartbeat 2s infinite;
}

.proposal-label {
    margin-bottom: 30px;
}

.proposal h2 {
    font-family: 'DM Serif Display', serif;

    font-size: clamp(3.2rem, 13vw, 6rem);

    font-weight: normal;

    line-height: 1.05;

    margin-bottom: 35px;

    text-shadow:
        0 0 50px rgba(255,60,100,0.12);
}

.proposal-divider {
    width: 50px;
    height: 1px;

    background: rgba(255,255,255,0.25);

    margin: 0 auto 45px;
}


/* =====================================================
   BOTONES
===================================================== */

.buttons {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    min-height: 70px;
}

.buttons button {
    border: none;

    border-radius: 100px;

    padding: 17px 30px;

    font-family: 'Montserrat', sans-serif;

    font-size: 0.9rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#yesBtn {
    background: #fff;

    color: #111;

    box-shadow:
        0 0 25px rgba(255,255,255,0.2);
}

#yesBtn:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 45px rgba(255,255,255,0.5);
}

#noBtn {
    background: rgba(255,255,255,0.07);

    color: rgba(255,255,255,0.75);

    border:
        1px solid rgba(255,255,255,0.12);
}


/* =====================================================
   YES SCREEN
===================================================== */

.yes-screen {
    display: none;

    min-height: 100vh;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255,30,100,0.25),
            transparent 45%
        ),
        #040404;
}

.yes-screen.active {
    display: flex;
}

.celebration-glow {
    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    background: rgba(255,40,100,0.12);

    filter: blur(120px);

    animation: proposalGlow 4s infinite;

    pointer-events: none;
}

.yes-content {
    position: relative;

    z-index: 2;

    width: 100%;
}

.yes-heart {
    font-size: 2rem;

    margin-bottom: 25px;

    animation: heartbeat 1.5s infinite;
}

.yes-small {
    margin-bottom: 25px;
}

.yes-screen h1 {
    font-family: 'DM Serif Display', serif;

    font-size: clamp(3.5rem, 14vw, 7rem);

    font-weight: normal;

    line-height: 1;

    margin-bottom: 35px;
}

.yes-line {
    width: 60px;
    height: 1px;

    margin: 0 auto 30px;

    background: rgba(255,255,255,0.3);
}

.yes-subtitle {
    color: rgba(255,255,255,0.65);

    font-size: 0.95rem;
}


/* =====================================================
   CARTA
===================================================== */

.letter {
    width: min(100%, 700px);

    margin: 60px auto 0;

    padding: 40px 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.025)
        );

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 22px;

    box-shadow:
        0 30px 90px rgba(0,0,0,0.5);

    text-align: left;
}

.letter p {
    color: rgba(255,255,255,0.75);

    line-height: 2;

    margin-bottom: 20px;
}

.letter .letter-intro {
    font-family: 'DM Serif Display', serif;

    font-size: 1.6rem;

    color: white;

    margin-bottom: 30px;
}


/* =====================================================
   FINAL DE LA CARTA
===================================================== */

.letter-final {
    font-family: 'DM Serif Display', serif;

    font-size: 1.25rem;

    line-height: 1.6 !important;

    text-align: center;

    margin-top: 40px;
}

.letter-goodbye {
    font-family: 'DM Serif Display', serif;

    font-size: 1.4rem !important;

    text-align: center;

    color: rgba(255,255,255,0.95) !important;

    margin-top: 45px;
}


/* =====================================================
   ANIMACIONES
===================================================== */

@keyframes introAppear {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes whisperAppear {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes heartbeat {

    0%, 100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.08);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.05);
    }

}

@keyframes bounce {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }

}

@keyframes slowFade {

    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }

}

@keyframes proposalGlow {

    0%, 100% {
        transform: scale(0.85);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

}


/* =====================================================
   CORAZONES FLOTANTES
===================================================== */

.floating-heart {
    position: fixed;

    bottom: -50px;

    pointer-events: none;

    z-index: 900;

    opacity: 0;

    animation:
        floatHeart linear forwards;
}

@keyframes floatHeart {

    0% {
        transform:
            translateY(0)
            scale(0.7)
            rotate(0deg);

        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        transform:
            translateY(-110vh)
            translateX(var(--drift))
            scale(1.2)
            rotate(25deg);

        opacity: 0;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    section {
        padding: 75px 18px;
    }

    .photo {
        border-radius: 14px;
    }

    .photo img {
        max-height: 650px;
    }

    .photo1 img {
        max-height: none;
    }

    .memory-text {
        margin-bottom: 55px;
    }

    .memory-text p {
        font-size: 0.92rem;
    }

    .buttons {
        flex-direction: column;

        width: 100%;
    }

    .buttons button {
        width: min(85%, 300px);
    }

    .letter {
        padding: 30px 22px;
    }

    .proposal-pause.big {
        height: 50px;
    }

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}