/**
 * ESTILOS PARA SISTEMA DE PROPIEDADES DESTACADAS
 * 
 * Este archivo contiene los estilos CSS para el sistema dinámico
 * de propiedades destacadas.
 */

/* ===== BOTONES DE CRITERIO ===== */
.botones-criterio {
    margin-bottom: 30px;
    text-align: center;
}

.filtros-criterio {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-criterio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-criterio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-criterio.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-criterio i {
    font-size: 16px;
}

/* ===== INDICADOR DE CARGA ===== */
.indicador-carga {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.indicador-carga i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #667eea;
}

.indicador-carga p {
    margin: 0;
    font-weight: 500;
}

/* ===== BADGES ADICIONALES ===== */
.badge-adicional {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.tarjeta-propiedad-destacada .imagen-propiedad-destacada {
    position: relative;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .filtros-criterio {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-criterio {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .indicador-carga {
        padding: 40px 20px;
    }
    
    .indicador-carga i {
        font-size: 24px;
    }
    
    .indicador-carga p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .btn-criterio {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-criterio i {
        font-size: 14px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta-propiedad-destacada {
    animation: fadeInUp 0.6s ease-out;
}

.tarjeta-propiedad-destacada:nth-child(1) { animation-delay: 0.1s; }
.tarjeta-propiedad-destacada:nth-child(2) { animation-delay: 0.2s; }
.tarjeta-propiedad-destacada:nth-child(3) { animation-delay: 0.3s; }
.tarjeta-propiedad-destacada:nth-child(4) { animation-delay: 0.4s; }
.tarjeta-propiedad-destacada:nth-child(5) { animation-delay: 0.5s; }
.tarjeta-propiedad-destacada:nth-child(6) { animation-delay: 0.6s; }

/* ===== MEJORAS EN TARJETAS ===== */
.tarjeta-propiedad-destacada {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tarjeta-propiedad-destacada:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* ===== ESTADOS DE CARGA ===== */
.grid-propiedades-destacadas.cargando {
    opacity: 0.7;
    pointer-events: none;
}

.grid-propiedades-destacadas.cargando::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* ===== MENSAJES DE ESTADO ===== */
.mensaje-estado {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.mensaje-estado.error {
    color: #e74c3c;
}

.mensaje-estado.success {
    color: #27ae60;
}

.mensaje-estado.warning {
    color: #f39c12;
}

/* ===== MEJORAS EN BOTONES ===== */
.boton-ver-propiedad,
.boton-contactar-propiedad {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boton-ver-propiedad:hover,
.boton-contactar-propiedad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.boton-ver-propiedad:active,
.boton-contactar-propiedad:active {
    transform: translateY(0);
}

/* ===== EFECTOS DE HOVER EN IMÁGENES ===== */
.imagen-propiedad-destacada {
    overflow: hidden;
    border-radius: 8px;
}

.imagen-propiedad-destacada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tarjeta-propiedad-destacada:hover .imagen-propiedad-destacada::before {
    opacity: 1;
}

/* ===== MEJORAS EN PRECIOS ===== */
.precio-propiedad-destacada {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
}

/* ===== MEJORAS EN DETALLES ===== */
.detalles-propiedad-destacada span {
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

/* ===== MEJORAS EN UBICACIÓN ===== */
.ubicacion-propiedad-destacada {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

/* ===== MEJORAS EN TÍTULOS ===== */
.tarjeta-propiedad-destacada h3 {
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* ===== MEJORAS EN BADGES ===== */
.badge-destacada {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== MEJORAS EN CONTENEDOR ===== */
.grid-propiedades-destacadas {
    position: relative;
}

/* ===== MEJORAS EN RESPONSIVE ===== */
@media (max-width: 1024px) {
    .filtros-criterio {
        gap: 10px;
    }
    
    .btn-criterio {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .filtros-criterio {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-criterio {
        width: 100%;
        max-width: 200px;
    }
}
