/**
 * Estilos Personalizados
 * deNuchi Propiedades
 */

/* ===========================
   Configuración Base
   =========================== */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Animaciones
   =========================== */

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Slow Zoom Animation for Hero Background */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-slow-zoom {
    animation: slowZoom 20s infinite alternate ease-in-out;
}

/* Pulse Animation for Badge Dot */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation for Scroll Indicator */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* ===========================
   Glassmorphism
   =========================== */

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===========================
   Efectos de Hover
   =========================== */

/* Underline Effect for Navigation Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #135bec;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Hover Effects */
.btn-hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
}

/* ===========================
   Gradientes Personalizados
   =========================== */

.gradient-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
}

.gradient-text {
    background: linear-gradient(to right, #93c5fd, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===========================
   Scrollbar Personalizado
   =========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #135bec;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f4ac6;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

/* ===========================
   Utilidades Adicionales
   =========================== */

/* Shadow personalizado para elementos flotantes */
.shadow-float {
    box-shadow: 0 10px 40px rgba(19, 91, 236, 0.2);
}

/* Transición suave para todos los elementos interactivos */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay oscuro para modales */
.overlay-dark {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* ===========================
   Responsive Utilities
   =========================== */

/* Ocultar en mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Ocultar en desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ===========================
   Loading States
   =========================== */

.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .no-print {
        display: none !important;
    }
}

/* Card Zoom Effect */
.card-zoom-image {
    transition: transform 0.5s ease;
}

.group:hover .card-zoom-image {
    transform: scale(1.1);
}
/* Estilos para sistema de favoritos */
.favorite-btn.favorited {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

.favorite-btn.favorited:hover {
    background-color: #fecaca !important;
}

.favorite-btn.not-favorited {
    background-color: white;
    color: #64748b;
}

.favorite-btn.not-favorited:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Animación para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-enter {
    animation: slideInRight 0.3s ease-out;
}

.notification-exit {
    animation: slideOutRight 0.3s ease-in;
}
/* Efecto de zoom para imágenes de propiedades */
.card-zoom-image {
    transition: transform 0.7s ease-out;
}

.group:hover .card-zoom-image {
    transform: scale(1.05);
}

/* Efecto de línea de texto truncado */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}