/* Animaciones personalizadas para diseño moderno */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(10px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15) rotate(-5deg);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease-out forwards, float 5s ease-in-out infinite;
}

.slide-in {
    opacity: 0;
    animation: slideIn 1.8s ease-out forwards;
}

.pulse {
    opacity: 0;
    animation: pulse 3s ease-in-out infinite, shimmer 4s ease-in-out infinite;
    animation-fill-mode: forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.5s; }
.delay-6 { animation-delay: 1.8s; }
.delay-7 { animation-delay: 2.1s; }
.delay-8 { animation-delay: 2.4s; }
.delay-9 { animation-delay: 2.7s; }

/* Mejoras visuales */
::selection {
    background: rgba(236, 72, 153, 0.3);
    color: #ffffff;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Scrollbar personalizado */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.5);
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.7);
}

/* Animaciones del modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideFromBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes imageZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes romanticFade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.02);
    }
    20%, 40% {
        transform: scale(0.98);
    }
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

.image-enter {
    animation: romanticFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-exit {
    animation: romanticFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) reverse;
}

.letter-enter {
    animation: letterReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.letter-show {
    display: block !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Estilos para el carrusel */
#galleryModal.show {
    display: flex !important;
    animation: modalFadeIn 0.3s ease-out;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.01);
}

#carouselContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    width: 30px;
    border-radius: 5px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}
