/* Estilos para el visor y panel de Invitaciones Digitales */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@500;700;900&family=Dancing+Script:wght@600;700&family=Great+Vibes&family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,600&display=swap');

:root {
    --inv-fondo: #39122d;
    --inv-tarjeta: #4c1a3d;
    --inv-acento: #c4a5e0;
    --inv-texto: #ffffff;
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

/* Teléfono móvil en Desktop */
.mobile-device-frame {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow-x: hidden;
    background-color: var(--inv-fondo);
    color: var(--inv-texto);
}

@media (min-width: 640px) {
    .mobile-device-frame {
        border-radius: 40px;
        min-height: 844px;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

/* Botón flotante de audio */
.floating-audio-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.floating-audio-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

/* Efecto sobre de apertura */
.envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--inv-fondo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-overlay.opened {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

/* Countdown cards */
.countdown-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 12px 8px;
    text-align: center;
    min-width: 68px;
}

/* Barra de scroll estilizada */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}
