/* ===== CSS Variables / Theme ===== */
:root {
    --cream: #f5f0e8;
    --sand: #e8dfd3;
    --teal-dark: #1a3a3a;
    --teal-medium: #2d5a5a;
    --teal-light: #3d7a7a;
    --coral: #d4785c;
    --coral-light: #e8956e;
    --gold: #c4a265;
    --green-dark: #2a4a2a;
    --green-medium: #4a7a4a;
    --green-light: #6a9a5a;
    --text-dark: #2a2a2a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --white: #ffffff;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.95) 0%, rgba(245, 240, 232, 0) 100%);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--teal-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--coral);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%),
        url('images/untitled.png') center 70% / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4rem;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: 7rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-line {
    display: block;
    width: 60px;
    height: 1px;
    background: #ffffff;
    opacity: 0.7;
}

.hero-flower {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.8;
}

.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.hero-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.85;
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: rgba(212, 120, 92, 0.8);
    border: 1.5px solid rgba(232, 149, 110, 0.6);
    color: var(--cream);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: rgba(212, 120, 92, 0.95);
    border-color: var(--coral-light);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.scroll-flower {
    display: inline-block;
    font-size: 1.4rem;
    color: var(--white);
    opacity: 0.85;
    animation: spinSlow 4s linear infinite;
}

.scroll-stem {
    display: block;
    width: 2px;
    height: 20px;
    background: var(--white);
    opacity: 0.7;
    border-radius: 1px;
    animation: growStem 1.5s ease-in-out infinite;
}

.scroll-stem::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg) translateX(-3px);
    margin-top: -2px;
    opacity: 0.7;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes growStem {
    0%, 100% { height: 20px; opacity: 0.7; }
    50% { height: 28px; opacity: 1; }
}

/* ===== Detalles + Itinerario Wrapper ===== */
.detalles-itinerario-wrapper {
    position: relative;
}

.detalles-itinerario-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/itinerario.png') center center / cover no-repeat;
    z-index: 0;
}

.detalles-itinerario-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.82) 0%, rgba(232, 223, 211, 0.82) 100%);
    z-index: 1;
}

.detalles-itinerario-wrapper > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .detalles-itinerario-wrapper::before {
        background-attachment: scroll;
    }
}

/* ===== Detalles Section ===== */
.detalles {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tropical palm/leaf backgrounds for sections */
.tropical-bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    pointer-events: none;
    opacity: 0.12;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 800'%3E%3Cpath d='M0 0 C40 80 80 60 60 200 C40 340 80 400 20 500 C-20 580 40 650 0 800' fill='%232a4a2a'/%3E%3Cpath d='M20 100 C60 150 100 130 80 250 C60 370 100 420 40 520 C10 580 60 680 20 780' fill='%234a7a4a' opacity='0.7'/%3E%3Cpath d='M-10 50 C50 120 30 200 10 300 C-10 400 50 450 0 600' fill='%236a9a5a' opacity='0.5'/%3E%3C/svg%3E") left top / contain no-repeat;
}

.tropical-bg-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 100%;
    pointer-events: none;
    opacity: 0.12;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 800'%3E%3Cpath d='M200 0 C160 80 120 60 140 200 C160 340 120 400 180 500 C220 580 160 650 200 800' fill='%232a4a2a'/%3E%3Cpath d='M180 100 C140 150 100 130 120 250 C140 370 100 420 160 520 C190 580 140 680 180 780' fill='%234a7a4a' opacity='0.7'/%3E%3Cpath d='M210 50 C150 120 170 200 190 300 C210 400 150 450 200 600' fill='%236a9a5a' opacity='0.5'/%3E%3C/svg%3E") right top / contain no-repeat;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 3.3rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--teal-dark);
}

.decorative-line {
    width: 80px;
    height: 1px;
    background-color: var(--teal-dark);
    opacity: 0.4;
}

.detalles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.detalle-card {
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.detalle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 58, 58, 0.12);
}

.detalle-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--teal-dark);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.detalle-card:hover .detalle-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(212, 120, 92, 0.3));
}

.detalle-icon svg {
    width: 100%;
    height: 100%;
}

.detalle-card h3 {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--teal-dark);
    margin-bottom: 1rem;
}

.detalle-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    flex: 1;
}

.ver-mas {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.ver-mas:hover {
    color: var(--coral-light);
}

.cuenta-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.copiar-cuenta {
    cursor: pointer;
}

/* ===== Itinerario Section ===== */
.itinerario {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.itinerario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
    opacity: 0.3;
}

/* Tropical top/bottom border accents */
.itinerario::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--green-dark), 
        var(--green-medium), 
        var(--teal-light), 
        var(--green-medium), 
        var(--green-dark)
    );
    opacity: 0.3;
}

.itinerario-timeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.timeline-item {
    text-align: center;
    padding: 1.5rem 2rem;
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    background: rgba(245, 240, 232, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(26, 58, 58, 0.08);
    backdrop-filter: blur(2px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 58, 58, 0.1);
}

.timeline-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 1rem;
    color: var(--teal-dark);
    background: transparent;
    border-radius: 50%;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.visible .timeline-icon {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Animated drawing connector */
.timeline-connector .connector-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-light), var(--green-medium));
    opacity: 0.4;
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-out;
}

.timeline-connector.visible .connector-line {
    transform: scaleX(1);
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
}

.timeline-item h3 {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.timeline-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 0.4rem;
}

.timeline-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-medium);
}

.timeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding-top: 2.5rem;
}

/* ===== RSVP Particles ===== */
.rsvp-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--cream);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.7; transform: translateY(-20px) scale(1); }
}

/* ===== RSVP Section ===== */
.rsvp {
    padding: 5rem 2rem 3rem;
    background: 
        linear-gradient(180deg, rgba(26, 58, 58, 0.80) 0%, rgba(21, 46, 46, 0.80) 100%),
        url('images/rsvp.png') center bottom / cover no-repeat;
    color: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 0% 100%, rgba(212, 120, 92, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(212, 120, 92, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 0%, rgba(106, 154, 90, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.rsvp-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.rsvp h2 {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 3.9rem;
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 1rem;
}

.rsvp-flower {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.rsvp-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.85);
}

.rsvp-date {
    margin: 0.5rem 0 1.5rem;
    font-size: 1rem !important;
    letter-spacing: 1px;
}

.rsvp-date strong {
    color: var(--cream);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.countdown-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
}

.countdown-item small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 2px;
    color: rgba(245, 240, 232, 0.6);
}

.btn-rsvp {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1.5px solid var(--coral);
    color: var(--cream);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    animation: glowPulse 2.5s ease-in-out infinite;
}

.btn-rsvp:hover {
    background-color: var(--coral);
    color: var(--white);
    animation: none;
    box-shadow: 0 0 20px rgba(212, 120, 92, 0.5);
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 120, 92, 0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 120, 92, 0.5); }
}

.rsvp-alt {
    margin-top: 1.5rem;
    font-size: 0.95rem !important;
}

.rsvp-phone {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* ===== RSVP Footer ===== */
.rsvp-footer {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.rsvp-footer .stamps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

/* Stamp-style Photo Frames */
.stamp {
    width: 150px;
    height: 195px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stamp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 58, 0.35);
    border-radius: 3px;
    transition: opacity 0.4s ease;
}

.stamp:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.stamp:hover::after {
    opacity: 0;
}

.stamp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.stamp[data-tooltip] {
    cursor: pointer;
}

/* Pet popup overlay */
.pet-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pet-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pet-popup {
    background: var(--cream);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pet-popup-overlay.active .pet-popup {
    transform: scale(1);
}

.pet-popup p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--teal-dark);
    margin: 0;
}

.pet-popup-close {
    margin-top: 1.2rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pet-popup-close:hover {
    background: var(--coral-light);
}

.closing-message {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--cream);
    opacity: 0.9;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        height: 100dvh;
        background-size: cover;
        background-position: center 60%;
        padding-bottom: 2rem;
    }

    .hero-text {
        transform: translate(-50%, -50%);
        width: 90%;
    }

    .hero-names {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
    }

    .hero-date {
        font-size: 0.75rem;
    }

    .hero-location {
        font-size: 0.7rem;
    }

    .hero-line {
        width: 40px;
    }

    .hero-cta {
        font-size: 0.6rem;
        padding: 0.7rem 1.8rem;
    }

    .countdown {
        gap: 0.8rem;
        flex-wrap: nowrap;
    }

    .countdown-item span {
        font-size: 0.9rem;
    }

    .countdown-item small {
        font-size: 0.4rem;
        letter-spacing: 1px;
    }

    .detalles {
        padding: 3.5rem 1.5rem;
    }

    .detalles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .itinerario {
        padding: 3.5rem 1.5rem;
    }

    .itinerario-timeline {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .timeline-item {
        width: 100%;
        max-width: 320px;
    }

    .timeline-connector {
        transform: rotate(90deg);
        padding-top: 0;
        margin: 0.5rem 0;
    }

    .timeline-connector .connector-line {
        transform-origin: center;
    }

    .rsvp {
        padding: 3.5rem 1.5rem 2rem;
    }

    .closing-message {
        font-size: 1.8rem;
    }

    .rsvp-footer .stamps-container {
        flex-direction: row;
        gap: 1.5rem;
    }

    .closing-message {
        font-size: 1.8rem;
        order: -1;
    }

    .stamp {
        width: 80px;
        height: 105px;
    }

    .tropical-bg-left,
    .tropical-bg-right {
        width: 80px;
        opacity: 0.08;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        height: 100dvh;
        background-size: cover;
        background-position: center 55%;
        padding-bottom: 1.5rem;
    }

    .hero-names {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.6rem;
    }

    .hero-line {
        width: 30px;
    }

    .countdown {
        gap: 0.6rem;
    }

    .countdown-item span {
        font-size: 0.85rem;
    }

    .countdown-item small {
        font-size: 0.35rem;
        letter-spacing: 1px;
    }

    .section-header h2 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .decorative-line {
        width: 35px;
    }

    .detalle-card {
        padding: 1.5rem 1rem;
    }

    .detalle-card p {
        font-size: 0.95rem;
    }

    .stamp {
        width: 70px;
        height: 90px;
    }

    .closing-message {
        font-size: 1.5rem;
    }

    .btn-rsvp {
        padding: 0.7rem 1.8rem;
        font-size: 0.6rem;
    }

    .closing-message {
        font-size: 1.5rem;
    }

    .tropical-bg-left,
    .tropical-bg-right {
        display: none;
    }
}

/* ===== Timeline Click Effects ===== */
.click-particle {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 9999;
    animation: particleFly 1.5s ease-out forwards;
}

@keyframes particleFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(var(--rot)); }
}
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for detail cards */
.detalle-card.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.detalle-card.scroll-reveal:nth-child(2) { transition-delay: 0.25s; }
.detalle-card.scroll-reveal:nth-child(3) { transition-delay: 0.4s; }
.detalle-card.scroll-reveal:nth-child(4) { transition-delay: 0.55s; }

/* Staggered delays for timeline items */
.timeline-item.scroll-reveal:nth-of-type(1) { transition-delay: 0.1s; }
.timeline-item.scroll-reveal:nth-of-type(2) { transition-delay: 0.3s; }
.timeline-item.scroll-reveal:nth-of-type(3) { transition-delay: 0.5s; }

/* Connectors fade in between timeline items */
.timeline-connector.scroll-reveal {
    transform: translateY(0) scaleX(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-connector.scroll-reveal.visible {
    transform: translateY(0) scaleX(1);
}

/* RSVP section elements */
.rsvp-content.scroll-reveal { transition-delay: 0.1s; }
.stamps-container.scroll-reveal { transition-delay: 0.3s; }
.rsvp-footer.scroll-reveal { transition-delay: 0.5s; }
