/* =============================================
   CHAMPAGNE NOIR EDITORIAL
   Invitación de Boda — Ruben & Marisol
   Sistema de Diseño Premium
   ============================================= */

/* --- Design Tokens --- */
:root {
    /* Paleta */
    --noir:       #0A0A0A;
    --smoke:      #1A1A1A;
    --charcoal:   #2A2A2A;
    --champagne:  #C9A96E;
    --champagne-light: #D4B896;
    --champagne-glow: rgba(201, 169, 110, 0.25);
    --ivory:      #FAF6F0;
    --pearl:      #E8E0D4;
    --blush:      #D4B896;

    /* Tipografía */
    --font-display: 'Cormorant Garamond', serif;
    --font-body:    'Jost', sans-serif;
    --font-accent:  'Pinyon Script', cursive;

    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Transiciones */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-normal: 0.6s;
    --duration-slow: 0.9s;
    --duration-slower: 1.2s;

    /* Bordes */
    --border-hairline: 1px solid rgba(201, 169, 110, 0.3);
    --border-gold: 1px solid var(--champagne);

    /* Sombras */
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(201, 169, 110, 0.15);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--ivory);
    background-color: var(--noir);
    line-height: 1.7;
    overflow-x: hidden;
    /* Textura sutil de noise */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

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

a {
    color: var(--champagne);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-out-quart);
}

a:hover {
    color: var(--ivory);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.font-accent {
    font-family: var(--font-accent);
    font-weight: 400;
}

.text-champagne { color: var(--champagne); }
.text-ivory { color: var(--ivory); }
.text-pearl { color: var(--pearl); }
.text-noir { color: var(--noir); }

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75em;
    font-family: var(--font-body);
    font-weight: 400;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
    z-index: 9999;
    transition: none;
    pointer-events: none;
}

/* --- Welcome Screen / Entrada Inmersiva --- */
#welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--noir);
    overflow: hidden;
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

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

#welcome-screen.hidden {
    display: none;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-md);
}

.welcome-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo) 0.2s, transform 0.8s var(--ease-out-expo) 0.2s;
}

.welcome-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.1;
    color: var(--ivory);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo) 0.5s, transform 1s var(--ease-out-expo) 0.5s;
}

.welcome-ampersand {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--champagne);
    display: block;
    margin: var(--space-xs) 0;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.8s var(--ease-out-expo) 0.9s, transform 0.8s var(--ease-out-expo) 0.9s;
}

.welcome-date {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--pearl);
    margin-top: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo) 1.2s, transform 0.8s var(--ease-out-expo) 1.2s;
}

#welcome-screen.animate .welcome-subtitle,
#welcome-screen.animate .welcome-name,
#welcome-screen.animate .welcome-ampersand,
#welcome-screen.animate .welcome-date,
#welcome-screen.animate .welcome-cta {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.welcome-cta {
    margin-top: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo) 1.6s, transform 0.8s var(--ease-out-expo) 1.6s;
}

/* --- Botones --- */
.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--noir);
    background: var(--champagne);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--champagne);
    background: transparent;
    border: var(--border-gold);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-quart);
}

.btn-outline:hover {
    background: var(--champagne);
    color: var(--noir);
    box-shadow: var(--shadow-glow);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: #25D366;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-quart);
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    color: #fff;
}

/* --- Ornament Separator --- */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) 0;
    gap: 1.5rem;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--champagne);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* --- Main Container --- */
.invitation-body {
    max-width: 100%;
    overflow: hidden;
}

/* --- Section Base --- */
.invitation-section {
    position: relative;
    padding: var(--space-xl) var(--space-md);
    overflow: hidden;
}

.invitation-section .section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title h2 {
    color: var(--champagne);
    margin-bottom: var(--space-xs);
}

.section-title .section-label {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--pearl);
    display: block;
    margin-bottom: var(--space-sm);
}

/* --- Hero / Header --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    will-change: transform;
}

@media (min-width: 768px) {
    .hero-bg {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.2) 40%,
        rgba(10, 10, 10, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-md);
}

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 6rem);
    color: var(--ivory);
    line-height: 1.1;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero-ampersand {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--champagne);
    display: block;
    margin: 0.2em 0;
    text-shadow: 0 0 30px var(--champagne-glow);
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-top: var(--space-md);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--pearl);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    animation: scrollHintPulse 2s infinite ease-in-out;
}

.hero-scroll-hint .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--champagne), transparent);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Section: Pensamiento / Quote --- */
.quote-section {
    background: var(--noir);
    text-align: center;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 0.5;
    color: var(--champagne);
    opacity: 0.3;
    display: block;
    margin-bottom: var(--space-sm);
    user-select: none;
}

.quote-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.8;
    color: var(--pearl);
    max-width: 650px;
    margin: 0 auto;
}

/* --- Section: Countdown --- */
.countdown-section {
    background: var(--smoke);
    border-top: var(--border-hairline);
    border-bottom: var(--border-hairline);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.countdown-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 120px;
    background: rgba(201, 169, 110, 0.05);
    border: var(--border-hairline);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    transition: border-color 0.4s var(--ease-out-quart);
}

.countdown-card:hover {
    border-color: var(--champagne);
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--champagne);
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--champagne);
    line-height: 1;
    transition: transform 0.3s var(--ease-out-quart);
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-top: 0.5rem;
}

/* --- Section: Lugares --- */
.venues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .venues-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

.venue-card {
    background: var(--smoke);
    border: var(--border-hairline);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: all 0.5s var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}

.venue-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out-expo);
}

.venue-card:hover {
    border-color: var(--champagne);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.venue-card:hover::after {
    transform: scaleX(1);
}

.venue-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--champagne);
}

.venue-type {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-bottom: var(--space-xs);
}

.venue-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ivory);
    margin-bottom: var(--space-xs);
}

.venue-address {
    font-size: 0.85rem;
    color: var(--pearl);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.venue-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

/* --- Section: Gallery --- */
.gallery-section {
    background: var(--noir);
    padding-left: 0;
    padding-right: 0;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    scrollbar-width: none;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-scroll:active {
    cursor: grabbing;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex-shrink: 0;
    width: 280px;
    height: 380px;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: var(--border-hairline);
    transition: border-color 0.4s var(--ease-out-quart);
}

.gallery-item:hover {
    border-color: var(--champagne);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.6) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-quart);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding: 0 var(--space-md);
}

.gallery-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: var(--border-hairline);
    color: var(--champagne);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s var(--ease-out-quart);
}

.gallery-btn:hover {
    background: var(--champagne);
    color: var(--noir);
}

.gallery-dots {
    display: flex;
    gap: 6px;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    background: rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out-quart);
}

.gallery-dot.active {
    background: var(--champagne);
    transform: scale(1.3);
}

/* --- Section: Familia / Padrinos --- */
.familia-section {
    background: var(--smoke);
    border-top: var(--border-hairline);
    border-bottom: var(--border-hairline);
}

.familia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .familia-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.familia-card {
    text-align: center;
    padding: var(--space-md);
    transition: transform 0.5s var(--ease-out-quart);
}

.familia-card:hover {
    transform: translateY(-4px);
}

.familia-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-sm);
    border: 2px solid var(--champagne);
    padding: 3px;
    background: var(--noir);
    transition: box-shadow 0.4s var(--ease-out-quart);
}

.familia-card:hover .familia-photo {
    box-shadow: 0 0 25px var(--champagne-glow);
}

.familia-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ivory);
    margin-bottom: 0.3rem;
}

.familia-role {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--champagne);
}

/* --- Section: Timeline / Itinerario --- */
.timeline-section {
    background: var(--noir);
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--champagne), transparent);
}

.timeline-event {
    position: relative;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: calc(-40px - 6px);
    top: 4px;
    width: 13px;
    height: 13px;
    background: var(--champagne);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--noir), 0 0 15px var(--champagne-glow);
}

.timeline-node::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--champagne);
    opacity: 0.4;
    animation: nodePulse 3s infinite ease-in-out;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.6); opacity: 0; }
}

.timeline-time {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 0.3rem;
}

.timeline-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ivory);
}

.timeline-icon {
    position: absolute;
    left: calc(-40px - 24px);
    top: -2px;
    width: 18px;
    height: 18px;
    display: none; /* Shown on larger screens */
}

@media (min-width: 768px) {
    .timeline {
        padding-left: 80px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-node {
        left: calc(-50px - 6px);
    }
}

/* --- Section: RSVP --- */
.rsvp-section {
    background: var(--smoke);
    border-top: var(--border-hairline);
    border-bottom: var(--border-hairline);
}

.rsvp-whatsapp {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-message {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--pearl);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.rsvp-message strong {
    color: var(--champagne);
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

@media (min-width: 480px) {
    .whatsapp-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* --- Section: Dress Code --- */
.dresscode-section {
    background: var(--noir);
    text-align: center;
}

.dresscode-tag {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--champagne);
    margin-bottom: var(--space-sm);
}

.dresscode-desc {
    font-size: 0.95rem;
    color: var(--pearl);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Section: Gift Registry --- */
.gifts-section {
    background: var(--smoke);
    border-top: var(--border-hairline);
    border-bottom: var(--border-hairline);
}

.gifts-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.gift-card {
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    border: var(--border-hairline);
    background: rgba(201, 169, 110, 0.03);
    transition: all 0.4s var(--ease-out-quart);
    min-width: 160px;
}

.gift-card:hover {
    border-color: var(--champagne);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.gift-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ivory);
}

/* --- Footer --- */
.invitation-footer {
    background: linear-gradient(180deg, var(--noir) 0%, rgba(10,10,10,0.95) 100%);
    text-align: center;
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
    position: relative;
}

.footer-monogram {
    font-family: var(--font-accent);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--champagne);
    opacity: 0.15;
    margin-bottom: var(--space-md);
    user-select: none;
}

.footer-message {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--pearl);
    margin-bottom: var(--space-sm);
}

.footer-names {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--champagne);
}

/* --- Floating Buttons --- */
.float-btn {
    position: fixed;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--smoke);
    border: var(--border-hairline);
    color: var(--champagne);
    cursor: pointer;
    z-index: 40;
    transition: all 0.4s var(--ease-out-quart);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.float-btn:hover {
    background: var(--champagne);
    color: var(--noir);
    box-shadow: var(--shadow-glow);
}

#toTopBtn {
    bottom: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart),
                background 0.4s var(--ease-out-quart), color 0.4s var(--ease-out-quart);
}

#toTopBtn.visible {
    opacity: 1;
    pointer-events: all;
}

#musicToggleBtn {
    bottom: 1.5rem;
    left: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart),
                background 0.4s var(--ease-out-quart), color 0.4s var(--ease-out-quart);
}

#musicToggleBtn.visible {
    opacity: 1;
    pointer-events: all;
}

.float-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-quart);
}

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

.lightbox-overlay img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out-expo);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: var(--border-hairline);
    color: var(--ivory);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.lightbox-close:hover {
    background: var(--champagne);
    color: var(--noir);
    border-color: var(--champagne);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: var(--border-hairline);
    color: var(--ivory);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.lightbox-nav:hover {
    background: var(--champagne);
    color: var(--noir);
    border-color: var(--champagne);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-quart);
}

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

.modal-content {
    background: var(--smoke);
    border: var(--border-gold);
    padding: var(--space-lg);
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.5s var(--ease-out-expo);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--champagne);
    margin-bottom: var(--space-md);
}

.modal-body {
    text-align: left;
    color: var(--pearl);
    font-size: 0.95rem;
    line-height: 1.8;
}

.modal-body strong {
    color: var(--ivory);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

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

/* --- Responsive Refinements --- */
@media (max-width: 480px) {
    .invitation-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .countdown-card {
        width: 75px;
        height: 95px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .familia-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .familia-photo {
        width: 75px;
        height: 75px;
    }

    .gallery-item {
        width: 240px;
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        width: 320px;
        height: 420px;
    }

    .countdown-card {
        width: 130px;
        height: 150px;
    }

    .countdown-number {
        font-size: 3.5rem;
    }
}
