/* ==========================================
   Sara XV Luxury Signature Edition V4
   Archivo 6: animations.css
   ========================================== */

/* ==========================================
   ANIMACIONES DE ENTRADA
   ========================================== */

.fade-section{
    opacity:0;
    transform:translateY(50px);
    transition:
        opacity 1.1s ease,
        transform 1.1s ease;
}

.fade-section.visible{
    opacity:1;
    transform:translateY(0);
}

/* Hero */

.hero-content{
    opacity:0;
    transform:translateY(35px) scale(.98);
    animation:heroReveal 1.8s ease forwards;
    animation-delay:.6s;
}

@keyframes heroReveal{
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

/* ==========================================
   TÍTULOS
   ========================================== */

.section-header h2{
    opacity:0;
    transform:translateY(24px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.fade-section.visible .section-header h2{
    opacity:1;
    transform:translateY(0);
}

/* ==========================================
   TARJETAS
   ========================================== */

.message-card,
.event-card,
.dresscode-card,
.envelope-card,
.count-box{
    transition:
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease;
}

.message-card:hover,
.event-card:hover,
.dresscode-card:hover,
.envelope-card:hover,
.count-box:hover{
    transform:translateY(-8px);
    box-shadow:0 28px 65px rgba(0,0,0,.10);
    border-color:rgba(200,162,74,.40);
}

/* ==========================================
   GALERÍA
   ========================================== */

.gallery-item{
    opacity:0;
    transform:translateY(40px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.gallery-item.visible{
    opacity:1;
    transform:translateY(0);
}

.gallery-item::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,.18) 45%,
        transparent 100%
    );
    transform:translateX(-120%);
    transition:transform .8s ease;
}

.gallery-item:hover::after{
    transform:translateX(120%);
}

/* ==========================================
   BOTONES
   ========================================== */

.btn{
    position:relative;
    overflow:hidden;
}

.btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:120%;
    height:100%;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.25),
        transparent
    );
    transition:left .8s ease;
}

.btn:hover::before{
    left:120%;
}

/* ==========================================
   BRILLO DORADO
   ========================================== */

.glow{
    animation:goldGlow 1.2s ease;
}

@keyframes goldGlow{
    0%{
        box-shadow:0 0 0 rgba(200,162,74,0);
    }
    50%{
        box-shadow:
            0 0 24px rgba(200,162,74,.35),
            0 0 50px rgba(200,162,74,.18);
    }
    100%{
        box-shadow:0 0 0 rgba(200,162,74,0);
    }
}

/* ==========================================
   CONTADOR
   ========================================== */

.flip{
    animation:flipNumber .45s ease;
}

@keyframes flipNumber{
    0%{
        transform:rotateX(-90deg);
        opacity:0;
    }
    100%{
        transform:rotateX(0);
        opacity:1;
    }
}

/* ==========================================
   NOTIFICACIONES
   ========================================== */

.luxury-notification{
    position:fixed;
    top:28px;
    right:28px;
    background:white;
    border:1px solid rgba(200,162,74,.28);
    border-left:4px solid var(--gold);
    border-radius:18px;
    padding:18px 20px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
    transform:translateX(120%);
    opacity:0;
    transition:
        transform .45s ease,
        opacity .45s ease;
    z-index:10000;
}

.luxury-notification.show{
    transform:translateX(0);
    opacity:1;
}

.notification-content{
    display:flex;
    align-items:center;
    gap:14px;
}

.notification-icon{
    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--gold);
    color:white;
    font-weight:700;
}

.luxury-notification.error{
    border-left-color:#C62828;
}

.luxury-notification.error .notification-icon{
    background:#C62828;
}

/* ==========================================
   PÉTALOS FLOTANTES
   ========================================== */

.floating-petal{
    position:fixed;
    top:-40px;
    pointer-events:none;
    z-index:4;
    animation:petalFloat linear forwards;
}

@keyframes petalFloat{
    0%{
        transform:
            translateY(-40px)
            rotate(0deg)
            scale(.8);
        opacity:0;
    }
    10%{
        opacity:.18;
    }
    90%{
        opacity:.12;
    }
    100%{
        transform:
            translateY(110vh)
            translateX(120px)
            rotate(360deg)
            scale(1.2);
        opacity:0;
    }
}

/* ==========================================
   PARTÍCULAS DORADAS
   ========================================== */

.gold-particle{
    position:fixed;
    width:6px;
    height:6px;
    border-radius:50%;
    background:rgba(232,208,138,.85);
    box-shadow:
        0 0 10px rgba(232,208,138,.8),
        0 0 20px rgba(232,208,138,.5);
    pointer-events:none;
    animation:goldFloat linear infinite;
    z-index:3;
}

@keyframes goldFloat{
    0%{
        transform:translateY(100vh) scale(.5);
        opacity:0;
    }
    10%{
        opacity:1;
    }
    90%{
        opacity:1;
    }
    100%{
        transform:translateY(-120px) scale(1.4);
        opacity:0;
    }
}

/* ==========================================
   INDICADOR DE SCROLL
   ========================================== */

.scroll-indicator{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
}

.scroll-indicator span{
    display:block;
    width:24px;
    height:40px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:20px;
    position:relative;
}

.scroll-indicator span::after{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    width:4px;
    height:8px;
    background:rgba(255,255,255,.8);
    border-radius:2px;
    transform:translateX(-50%);
    animation:scrollPulse 2s infinite;
}

@keyframes scrollPulse{
    0%{
        transform:translate(-50%,-4px);
        opacity:0;
    }
    40%{
        opacity:1;
    }
    100%{
        transform:translate(-50%,14px);
        opacity:0;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media(max-width:768px){

    .fade-section{
        transform:translateY(28px);
    }

    .luxury-notification{
        top:16px;
        right:16px;
        left:16px;
        transform:translateY(-20px);
    }

    .luxury-notification.show{
        transform:translateY(0);
    }
	
	.event-live{
    margin-top:40px;
    text-align:center;
    padding:35px;
    background:white;
    border:1px solid rgba(200,162,74,.25);
    border-radius:24px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.event-live h3{
    font-family:'Cinzel', serif;
    color:var(--wine);
    margin-bottom:10px;
}

.event-live p{
    color:var(--text);
    font-size:1.15rem;
}

#luxury-particles{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:2;
    overflow:hidden;
}

.gold-particle{
    position:absolute;
    border-radius:50%;
    background:rgba(232,208,138,.85);
    box-shadow:
        0 0 10px rgba(232,208,138,.7),
        0 0 18px rgba(232,208,138,.35);
}

.floating-petal{
    position:fixed;
    top:-40px;
    pointer-events:none;
    z-index:4;
    opacity:.18;
}
	

}