*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --cream: #f5ede0;
    --rose: #c4705a;
    --rose-dark: #8c3f2e;
    --rose-pale: #e8a898;
    --muted: #8a7060;
    --page-bg: #120b06;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--page-bg);
    color: var(--cream);
    min-height: 100vh;
    overflow: hidden;
}

#cvs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#app {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.page {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: translateY(30px);
    overflow-y: auto;
}

.page.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.page.out {
    opacity: 0;
    transform: translateY(-28px);
    pointer-events: none;
}

nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    transition: background 0.4s, transform 0.4s;
    cursor: pointer;
}

.nav-dot.active {
    background: var(--rose-pale);
    transform: scale(1.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream);
    background: transparent;
    border: 1px solid rgba(197, 138, 120, 0.35);
    padding: 0.7rem 1.7rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.btn:hover {
    background: rgba(197, 138, 120, 0.12);
    border-color: rgba(197, 138, 120, 0.7);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}

.btn-primary:hover {
    background: var(--rose-dark);
    border-color: var(--rose-dark);
}

.btn-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--rose-pale);
    margin-bottom: 1.2rem;
}

h1.display {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.8rem, 8vw, 5rem);
    line-height: 1.1;
    color: var(--cream);
}

h1.display em {
    font-style: italic;
    color: var(--rose-pale);
}

h2.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 2rem;
}

h2.section-title em {
    font-style: italic;
    color: var(--rose-pale);
}

.body-text {
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    line-height: 2;
    color: rgba(245, 237, 224, 0.6);
    max-width: 480px;
}

.body-text strong {
    color: var(--cream);
    font-weight: 400;
}

.rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.8rem auto;
    width: 180px;
}

.rule::before, .rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 112, 90, 0.4), transparent);
}

.rule-icon {
    font-size: 0.5rem;
    color: var(--rose);
}

.heart-wrap {
    margin-bottom: 1.8rem;
    animation: hb 2.5s ease-in-out infinite;
}

@keyframes hb {
    0%, 100% {
        transform: scale(1)
    }
    15% {
        transform: scale(1.14)
    }
    30% {
        transform: scale(1)
    }
    45% {
        transform: scale(1.08)
    }
    60% {
        transform: scale(1)
    }
}

/* Contador */
.counter {
    display: flex;
    gap: 0;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.c-unit {
    padding: 1rem 1.3rem;
    position: relative;
}

.c-unit + .c-unit::before {
    content: '·';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-60%);
    color: var(--rose);
    font-size: 1.2rem;
}

.c-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    color: var(--cream);
    display: block;
    line-height: 1;
}

.c-lbl {
    font-size: 0.63rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-top: 6px;
}

/* Timeline */
.timeline {
    max-width: 440px;
    width: 100%;
    text-align: left;
    position: relative;
    margin: 1rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(196, 112, 90, 0.3) 20%, rgba(196, 112, 90, 0.3) 80%, transparent);
}

.tl-item {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.tl-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(196, 112, 90, 0.4);
    background: rgba(196, 112, 90, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--rose-pale);
    position: relative;
    z-index: 1;
}

.tl-date {
    font-size: 0.63rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 4px;
}

.tl-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--cream);
    margin-bottom: 4px;
}

.tl-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(245, 237, 224, 0.5);
}

/* Carta */
.letter {
    max-width: 460px;
    text-align: left;
    padding: 2.2rem;
    border: 1px solid rgba(196, 112, 90, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.letter::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: rgba(196, 112, 90, 0.18);
    line-height: 1;
}

.letter p {
    font-size: clamp(0.93rem, 2vw, 1.02rem);
    line-height: 2;
    color: rgba(245, 237, 224, 0.62);
    margin-bottom: 1.1rem;
}

.letter p strong {
    color: var(--cream);
    font-weight: 400;
}

.letter .firma {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--rose-pale);
    margin-top: 0.8rem;
    display: block;
}

/* Cita final */
.quote-final {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    line-height: 1.55;
    color: var(--rose-pale);
    max-width: 500px;
}

.quote-attr {
    margin-top: 1.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-num {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 0.63rem;
    letter-spacing: 0.3em;
    color: rgba(138, 112, 96, 0.35);
    z-index: 10;
    font-family: 'Cormorant Garamond', serif;
}

#curtain {
    position: fixed;
    inset: 0;
    background: var(--page-bg);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#curtain.show {
    opacity: 1;
}

.page::-webkit-scrollbar {
    width: 3px;
}

.page::-webkit-scrollbar-thumb {
    background: rgba(196, 112, 90, 0.3);
    border-radius: 4px;
}