/* Animaciones básicas */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Clases de animación */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.rotate-in {
    animation: rotateIn 0.3s ease-out forwards;
}

/* Animaciones específicas del modal */
.modal-property.show .modal-content {
    animation: scaleIn 0.3s ease-out;
}

.modal-property .preview-box img {
    transition: transform 0.3s ease;
}

.modal-property .preview-box:hover img {
    transform: scale(1.05);
}

.modal-property .nav-circle {
    transition: all 0.3s ease;
}

.modal-property .nav-circle:hover {
    transform: translateY(-50%) scale(1.1);
    background: white;
}

.modal-property .close-modal {
    transition: transform 0.3s ease;
}

.modal-property .close-modal:hover {
    transform: rotate(90deg);
}

/* Animaciones de la galería */
.full-gallery-container {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-main img {
    transition: opacity 0.3s ease;
}

.gallery-thumbs .thumb {
    transition: all 0.3s ease;
}

/* Transiciones suaves */
.smooth-transition {
    transition: all 0.3s ease;
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-opacity {
    transition: opacity 0.3s ease;
}

.hover-opacity:hover {
    opacity: 0.8;
}

/* Preferencias de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}