/* ===== 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.4) 0%, rgba(0, 0, 0, 0.4) 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: 48%;
    left: 50%;
    transform: translate(-50%, -55%);
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    width: min(92%, 950px);
}

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

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(5.5rem, 10vw, 10rem);
    line-height: 0.95;
    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: 1.4rem;
    color: #ffffff;
    opacity: 0.8;
}

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

.hero-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 3px;
    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 Section ===== */
.detalles {
    padding: 5rem 2rem;
    background: linear-gradient(-45deg, #f5f0e8, #e8f0e8, #f0ede8, #e8ece8);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.itinerario {
    padding: 5rem 2rem;
    background: linear-gradient(-45deg, #e8dfd3, #dfe8e4, #e8e2d3, #dde6e0);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    animation-delay: -7s;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Leaves (Detalles) */
.floating-leaf {
    position: absolute;
    width: 35px;
    height: 35px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: leafFloat var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-leaf svg {
    width: 100%;
    height: 100%;
}

@keyframes leafFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(var(--tx1), var(--ty1)) rotate(15deg); }
    50% { transform: translate(var(--tx2), var(--ty2)) rotate(-10deg); }
    75% { transform: translate(var(--tx3), var(--ty3)) rotate(8deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Wave Divider (between Detalles & Itinerario) */
.wave-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
    background: transparent;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    animation: waveSlide 8s linear infinite;
}

@keyframes waveSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bubble-1 {
    top: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(106, 154, 90, 0.18) 0%, transparent 70%);
    animation: floatBubble1 8s ease-in-out infinite;
}

.bubble-2 {
    bottom: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 122, 74, 0.14) 0%, transparent 70%);
    animation: floatBubble2 10s ease-in-out infinite;
}

.bubble-3 {
    top: 40%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(106, 154, 90, 0.1) 0%, transparent 70%);
    animation: floatBubble1 12s ease-in-out infinite reverse;
}

.bubble-4 {
    top: -40px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(61, 122, 122, 0.15) 0%, transparent 70%);
    animation: floatBubble3 9s ease-in-out infinite;
}

.bubble-5 {
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(61, 122, 122, 0.12) 0%, transparent 70%);
    animation: floatBubble4 7s ease-in-out infinite;
}

.bubble-6 {
    top: 30%;
    left: 15%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(61, 122, 122, 0.08) 0%, transparent 70%);
    animation: floatBubble3 11s ease-in-out infinite reverse;
}

@keyframes floatBubble1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
}

@keyframes floatBubble2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.05); }
}

@keyframes floatBubble3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 15px) scale(1.08); }
}

@keyframes floatBubble4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* ===== Detalles Section ===== */

.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 Section ===== */

.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; }


/* ===== Hero text size update v3 ===== */
@media (max-width: 768px) {
    .hero-text {
        top: 42%;
        width: 94%;
        transform: translate(-50%, -50%);
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-bottom: 0.4rem;
    }

    .hero-names {
        font-size: clamp(3.6rem, 15vw, 5.2rem);
        line-height: 0.95;
        margin-bottom: 0.8rem;
    }

    .hero-divider {
        margin-bottom: 0.8rem;
    }

    .hero-line {
        width: 55px;
    }

    .hero-flower {
        font-size: 1.2rem;
    }

    .hero-date {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 0.35rem;
    }

    .hero-location {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        top: 40%;
        width: 96%;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2.5px;
    }

    .hero-names {
        font-size: clamp(3.2rem, 17vw, 4.6rem);
        line-height: 0.95;
    }

    .hero-line {
        width: 45px;
    }

    .hero-date {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .hero-location {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
}

/* ===== Hero subtitle position update v5: same size as v3, more separation ===== */
.hero-subtitle {
    font-size: 1.6rem !important;
    letter-spacing: 4px !important;
    margin-bottom: 1.8rem !important;
    line-height: 1.1 !important;
    transform: translateY(-18px);
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem !important;
        letter-spacing: 3px !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.1 !important;
        transform: translateY(-14px);
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.9rem !important;
        letter-spacing: 2.5px !important;
        margin-bottom: 1.1rem !important;
        line-height: 1.1 !important;
        transform: translateY(-12px);
    }
}
