/* ═══════════════════════════════════════════ */
/*  DESIGN TOKENS                              */
/* ═══════════════════════════════════════════ */
:root {
    --gold: #b8860b;
    --gold-light: #d4a843;
    --gold-dark: #8b6914;
    --gold-muted: #c9a96e;
    --cream: #faf6f0;
    --cream-dark: #f0e8d8;
    --ivory: #fffef9;
    --text-primary: #2c2420;
    --text-secondary: #5a4e44;
    --text-muted: #8a7e74;
    --bg-section-alt: #f5efe5;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
    --font-script: 'Great Vibes', cursive;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════ */
/*  RESET & BASE                               */
/* ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100lvh;
}

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════ */
/*  ENVELOPE SCREEN                            */
/* ═══════════════════════════════════════════ */
#envelope-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1510 0%, #2c2420 30%, #1a1510 70%, #0f0d0a 100%);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

#envelope-screen.closing {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.envelope-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.envelope-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.envelope-content {
    text-align: center;
    padding: 2rem;
    animation: envelopeFadeIn 1.5s var(--ease-out-expo) both;
}

@keyframes envelopeFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.envelope-ornament-top, .envelope-ornament-bottom {
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 1em;
    opacity: 0.5;
    margin: 1rem 0;
}

.envelope-subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: 1.5rem;
    animation: envelopeFadeIn 1.5s 0.3s var(--ease-out-expo) both;
}

.envelope-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--cream);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    animation: envelopeFadeIn 1.5s 0.5s var(--ease-out-expo) both;
}

.script-text {
    font-family: var(--font-script);
    color: var(--gold-light);
    font-weight: 400;
}

.envelope-date {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--gold-muted);
    margin-bottom: 2.5rem;
    animation: envelopeFadeIn 1.5s 0.7s var(--ease-out-expo) both;
}

.envelope-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    animation: envelopeFadeIn 1.5s 0.9s var(--ease-out-expo) both;
    position: relative;
    overflow: hidden;
}

.envelope-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 0;
}

.envelope-btn:hover::before { transform: scaleX(1); }
.envelope-btn:hover { color: #1a1510; border-color: var(--gold); }
.btn-text, .btn-icon { position: relative; z-index: 1; }

.btn-icon {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ═══════════════════════════════════════════ */
/*  MAIN CONTENT                               */
/* ═══════════════════════════════════════════ */
#main-content.hidden { display: none; }

.section {
    min-height: 100vh;
    min-height: 100lvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08);
}

.section-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
}

.section-label {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.section-icon {
    margin-bottom: 1.5rem;
    color: var(--gold);
    opacity: 0.7;
}

.section-divider-img {
    display: none;
}

.css-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 200px;
}

.css-divider::before,
.css-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.css-divider .ornament {
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
    flex-shrink: 0;
}

.css-divider.small {
    max-width: 140px;
    margin: 1rem auto 1.5rem;
}

/* ═══════════════════════════════════════════ */
/*  HERO SECTION                               */
/* ═══════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    min-height: 100vh;
    min-height: 100lvh;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, var(--gold) 1px, transparent 1px);
    background-size: 60px 60px;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-ring {
    position: absolute;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.06;
}

.float-ring-1 {
    width: 300px; height: 300px;
    top: -50px; right: -80px;
    animation: floatSlow 20s ease-in-out infinite;
}

.float-ring-2 {
    width: 200px; height: 200px;
    bottom: 10%; left: -60px;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.float-ring-3 {
    width: 150px; height: 150px;
    top: 40%; right: 10%;
    animation: floatSlow 18s 3s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 15px) rotate(-3deg); }
}

.hero-content {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-floral {
    width: clamp(180px, 40vw, 280px);
    margin: 0 auto 1.5rem;
    opacity: 0.85;
    border-radius: 50%;
    filter: saturate(0.9);
}

.hero-pre-title {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-number {
    display: block;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(5rem, 15vw, 10rem);
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 2px 30px rgba(184, 134, 11, 0.15);
}

.hero-title-text {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--text-primary);
    font-weight: 400;
    margin-top: 0.5rem;
}

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

.hero-name {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-primary);
}

.hero-ampersand {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
}

.hero-date-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(45deg);
    animation: scrollPulse 2s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) translate(0, 0); }
    50% { opacity: 0.7; transform: rotate(45deg) translate(5px, 5px); }
}

/* ═══════════════════════════════════════════ */
/*  COUNTDOWN                                  */
/* ═══════════════════════════════════════════ */
.countdown-section {
    background: linear-gradient(135deg, #1a1510 0%, #2c2420 50%, #1a1510 100%);
    padding: 5rem 0;
}

.countdown-section .section-label {
    color: var(--gold-muted);
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 3vw, 1.5rem);
    margin: 2rem 0;
}

.countdown-item { text-align: center; }

.countdown-number {
    display: block;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--cream);
    line-height: 1;
    min-width: 2ch;
}

.countdown-label {
    display: block;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-top: 0.5rem;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-weight: 200;
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: var(--gold);
    opacity: 0.4;
    padding-bottom: 1.5rem;
}

.countdown-message {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--gold-muted);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════ */
/*  QUOTE                                      */
/* ═══════════════════════════════════════════ */
.quote-section {
    background: var(--cream);
    padding: 5rem 0;
}

.quote-marks {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 0.5;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════ */
/*  EVENT CARDS (Ceremony & Reception)         */
/* ═══════════════════════════════════════════ */
.ceremony-section {
    background: var(--bg-section-alt);
}

.reception-section {
    background: var(--cream);
}

.event-card {
    background: white;
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-top: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(184, 134, 11, 0.1);
}

.event-venue {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.event-address {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.event-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(184, 134, 11, 0.08);
    border-radius: 100px;
    margin-bottom: 1.5rem;
    color: var(--gold-dark);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 100px;
    color: var(--gold-dark);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-out-expo);
}

.map-btn:hover {
    background: var(--gold);
    color: white;
}

/* ═══════════════════════════════════════════ */
/*  TIMELINE / ITINERARY                       */
/* ═══════════════════════════════════════════ */
.itinerary-section {
    background: var(--bg-section-alt);
}

.timeline {
    position: relative;
    max-width: 400px;
    margin: 2rem auto 0;
    --timeline-gap: 2rem;
    padding-left: var(--timeline-gap);
}

.timeline::before {
    content: '';
    position: absolute;
    left: calc(var(--timeline-gap) / 2);
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: calc(var(--timeline-gap) / -2);
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid var(--cream-dark);
    z-index: 1;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

.timeline-time {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--gold-dark);
    min-width: 60px;
    letter-spacing: 0.05em;
}

.timeline-content {
    text-align: left;
    flex: 1;
}

.timeline-content h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════ */
/*  DRESS CODE                                 */
/* ═══════════════════════════════════════════ */
.dresscode-section {
    background: var(--cream);
    padding: 5rem 0;
}

.dresscode-display {
    margin-top: 1rem;
}

.dresscode-icon {
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.dresscode-text {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Estilos de colores eliminados */

/* ═══════════════════════════════════════════ */
/*  CLOSING SECTION                            */
/* ═══════════════════════════════════════════ */
.closing-section {
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--cream-dark) 100%);
}

.closing-ornament {
    width: clamp(120px, 30vw, 200px);
    margin: 0 auto 2rem;
    opacity: 0.7;
    border-radius: 50%;
    filter: saturate(0.9);
}

.closing-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.closing-text {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.closing-names {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.closing-date {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 2rem;
}

.closing-hashtag {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 1rem;
}

.closing-footer-text {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 3rem;
}

/* ═══════════════════════════════════════════ */
/*  SCROLL REVEAL ANIMATIONS                   */
/* ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-item:nth-child(1) { transition-delay: 0.1s; }
.reveal-item:nth-child(2) { transition-delay: 0.2s; }
.reveal-item:nth-child(3) { transition-delay: 0.3s; }
.reveal-item:nth-child(4) { transition-delay: 0.4s; }
.reveal-item:nth-child(5) { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════ */
/*  RESPONSIVE                                 */
/* ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .section { min-height: auto; }
    .hero-section { min-height: 100vh; min-height: 100dvh; }
    .section-inner { padding: 3rem 1.5rem; }
    .event-card { padding: 2rem 1.5rem; }
    .countdown { gap: 0.3rem; }
    .countdown-separator { font-size: 1.2rem; padding-bottom: 1rem; }
    .timeline { --timeline-gap: 1.5rem; }
}
